Pages: [1]   Go Down
Author Topic: Manual bootloader  (Read 407 times)
0 Members and 1 Guest are viewing this topic.
Cardiff, UK
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

First post so point me in the right direction if it's in the wrong place.

I'm into Arduino in a pretty big way right now, and have had an idea for a modification that would benefit one of my own projects no end. At present, the bootloader kicks in first, as soon as the Arduino is powered up. Now my suggestion is that it doesn't, but don't remove it. Essentially, have a button, or command etc, that calls the bootloader to allow you to update the 'firmware' for the program.

This would allow the best of both worlds for instant start up of sketches, but also keep the USB programmability.

Thoughts, and any points to anything that may already exist? I've had a look at the bootloader code and it's a bit over my head to be honest, so any help would be much appreciated.

Thanks,

Phil
« Last Edit: November 16, 2011, 02:38:52 pm by Hopelessness » Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can easily change the bootloader delay yourself (optiboot).

Code:
watchdogConfig(WATCHDOG_1S);

You're free to change and recompile.
Logged

• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 106
Posts: 6371
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
At present, the bootloader kicks in first, as soon as the Arduino is powered up. Now my suggestion is that it doesn't, but don't remove it. Essentially, have a button, or command etc, that calls the bootloader to allow you to update the 'firmware' for the program.
Actually, this is known as the "Adafruit fast boot mod" and is already the behavior on Uno Arduinos.
They only enter the bootload on "reset", which is not the same as "poweron."  (or so says the code.)

MEGA has a different bootloader and behaves differently.
Logged

Pages: [1]   Go Up
Jump to: