I cant seem to burn the optiboot bootloader Google Code Archive - Long-term storage for Google Code Project Hosting.
I get stuck at the beginning of the process, i put the optiboot directory in the hardware folder in the sketches folder but the optiboot boards to not appear under Tools>Boards
Instead of burning Optiboot manually use this, it's a lot easier:
This will do all the hard stuff for you. Once it's done you can program your new chip as a "Uno".
Good luck!
There's no need to use optiboot, the current arduino bootloader incorporated some of the changes that made optiboot appear back in the time.
Watchdog timer is working properly now?
I tried the optiloader and its hanging at
OptiLoader Bootstrap programmer.
2011 by Bill Westfield (WestfW)
Target power on! ...
Starting Program Mode
OptiLoader Bootstrap programmer.
2011 by Bill Westfield (WestfW)
Target power on! ...
Starting Program Mode
I am using a MEGA1280 as the programmer and a duemilanove 328 as the chip i wish to program, i saw in the code it defined mosi, sck etc as certain pins so I hooked it up as it said in the comments (11 to 11, 12 to 12, etc.)
Does it output a message when finished programming?
SOLVED:
For future reference hook up the mega to the duemilanove like so:
and put a 100nf cap between reset and 5v on the mega.
mike390:
Watchdog timer is working properly now?
Did you patch it ?
the watchdog timer has always worked "properly" in Optiboot (and all Uno or later m328p-based Arduinos have optiboot.)
I think the question is if the bootloader is disabling the watchdog at boot time.
Because AFAIK this was not happening on previous versions of arduino's bootloader.
I think the question is if the bootloader is disabling the watchdog at boot time.
Yes.
this was not happening on previous versions of arduino's bootloader.
Yes.
And Yes, optiboot has always disabled the watchdog during boot. It uses the watchdog as an integral part of the "run user sketch" procedure, so it HAS to...
If I use Bill Westfield's program on an arduino mega2560, do I need to change anything in the program (like redefine the programming pin numbers from 10,11,12,13 to the corresponding pins on mega2560)?
I know I have to wire it as shown in the picture.
And this will load the optiboot bootloader on a chip that already contains a bootloader right? It does not have to be a clean/blank chip right?
Thanks
Jerry
mike390:
I tried the optiloader and its hanging atOptiLoader Bootstrap programmer.
2011 by Bill Westfield (WestfW)
Target power on! ...
Starting Program Mode
OptiLoader Bootstrap programmer.
2011 by Bill Westfield (WestfW)
Target power on! ...
Starting Program Mode
I am using a MEGA1280 as the programmer and a duemilanove 328 as the chip i wish to program, i saw in the code it defined mosi, sck etc as certain pins so I hooked it up as it said in the comments (11 to 11, 12 to 12, etc.) Does it output a message when finished programming? SOLVED: For future reference hook up the mega to the duemilanove like so: http://i54.tinypic.com/k55pb9.png and put a 100nf cap between reset and 5v on the mega.
I figured it out. I still use same pins 10-13 even on mega, since the program is just bit banging. So if the connection is as in the picture using 50-53, then the corresponding defines for the pins must be changed.
I am able to reload the bootloader on an uno card with this program. And it may help other users to mention that the pullup resistor is from reset for programmer card to +5. I didn't have a small resistor so I just put a bunch of resistors in parallel till I got about 180 ohms. I'd say its very clever programming.
doughboy:
If I use Bill Westfield's program on an arduino mega2560, do I need to change anything in the program (like redefine the programming pin numbers from 10,11,12,13 to the corresponding pins on mega2560)?
I know I have to wire it as shown in the picture.And this will load the optiboot bootloader on a chip that already contains a bootloader right? It does not have to be a clean/blank chip right?
Thanks
Jerrymike390:
I tried the optiloader and its hanging atOptiLoader Bootstrap programmer.
2011 by Bill Westfield (WestfW)
Target power on! ...
Starting Program Mode
OptiLoader Bootstrap programmer.
2011 by Bill Westfield (WestfW)
Target power on! ...
Starting Program Mode
I am using a MEGA1280 as the programmer and a duemilanove 328 as the chip i wish to program, i saw in the code it defined mosi, sck etc as certain pins so I hooked it up as it said in the comments (11 to 11, 12 to 12, etc.) Does it output a message when finished programming? SOLVED: For future reference hook up the mega to the duemilanove like so: http://i54.tinypic.com/k55pb9.png and put a 100nf cap between reset and 5v on the mega.