Go Down

Topic: need help to compile the bootloader (Read 800 times) previous topic - next topic

sgufa

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?

WizenedEE

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.

holmes4

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


retrolefty

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

Cybernetician

Quote

OMG - I'm starting to sound like PaulS !


8) But it will not make you like PaulS
From Idea To Invention

Cybernetician

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?
From Idea To Invention

Jack Christensen


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.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

retrolefty

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

Cybernetician

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.
From Idea To Invention

Nick Gammon

Maybe. Maybe not.

This is the first time Zigduino is mentioned in this thread. Perhaps describe the whole requirement in the first post?
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Nick Gammon

Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Nick Gammon

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.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up