Pages: [1]   Go Down
Author Topic: need help to compile the bootloader  (Read 525 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all. I've modified the original source of the mega2560 in order to do some jobs before the sketch starts....the question is: how to compile it under Windows 7x64? I've absolutely no idea on how to do this. Any suggestions?
Logged

Offline Offline
Edison Member
*
Karma: 17
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://bit.ly/SCrXLp

If you have more specific questions after a quick search, there's lots of people that would be happy to help.
Logged

Poole, Dorset, UK
Offline Offline
Edison Member
*
Karma: 25
Posts: 1873
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why not leave the bootloader alone and put your bits where they belong in setup(). The name setup() is a hint as to its function and use.

OMG - I'm starting to sound like PaulS smiley-eek!

Mark

Logged

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 331
Posts: 16514
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I agree that there is nothing to gain by putting user setup code into the bootloader space. The proper place for such functions is in the setup function of the sketch. But perhaps you could explain why you think it would be best to go with your idea?

Lefty
Logged

Offline Offline
Full Member
***
Karma: 4
Posts: 187
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
OMG - I'm starting to sound like PaulS !

 smiley-cool But it will not make you like PaulS
Logged

From Idea To Invention

Offline Offline
Full Member
***
Karma: 4
Posts: 187
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
holmes4 says
Why not leave the bootloader alone and put your bits where they belong in setup(). The name setup() is a hint as to its function and use.

Quote
Lefty says
I agree that there is nothing to gain by putting user setup code into the bootloader space. The proper place for such functions is in the setup function of the sketch. But perhaps you could explain why you think it would be best to go with your idea?

but in case of watchdog timer?
Logged

From Idea To Invention

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 71
Posts: 3511
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

but in case of watchdog timer?

Depends on the usage, but if the bootloader were an obstacle, I might think it better to simply eliminate the bootloader.
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 331
Posts: 16514
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Or find a copy of mega bootloader that has the WDT problem fixed. Sorry I can't locate it for you but it has been available for over a year now somewhere.

Lefty
Logged

Offline Offline
Full Member
***
Karma: 4
Posts: 187
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Jack Christensen says
Depends on the usage, but if the bootloader were an obstacle, I might think it better to simply eliminate the bootloader.

Can you guide me how to eliminate in case of Zigduino board.

Quote
Lefty says
Or find a copy of mega bootloader that has the WDT problem fixed. Sorry I can't locate it for you but it has been available for over a year now somewhere.

May be it cannot support Zigduino board.
Logged

From Idea To Invention

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Maybe. Maybe not.

This is the first time Zigduino is mentioned in this thread. Perhaps describe the whole requirement in the first post?
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Link to this board?
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This bootloader seems to fix the WDT problems:

https://raw.github.com/arduino/Arduino-stk500v2-bootloader/master/goodHexFiles/stk500boot_v2_mega2560.hex

The bootloader is supposed to load a sketch, not do initial processing for it.
Logged

Pages: [1]   Go Up
Jump to: