Closed GoogleCodeExporter closed 9 years ago
Count me in.
The reason I want this is because the stock
http://www.avr-developers.com/bootloaderdocs/index.html stk500v2 compatible
boot loader loaded on 2560 chips is currently not watchdog friendly.
I want my watchdog working, and don't need all that extra fluff anyway.
Original comment by justinbe...@gmail.com
on 9 Dec 2011 at 2:41
exactly: http://code.google.com/p/arduino/issues/detail?id=181
I tried to develop the watchdog for the Marlin RepRap firmware, where the 2560
is quite popular.
Original comment by bernhard...@gmail.com
on 9 Dec 2011 at 6:13
The bootloader protocol used by optiboot (STK500v1) will not work for memory
above 64k words, and the implementation is probably broken above 64k bytes, so
it really can't be used the m2560.
Original comment by wes...@gmail.com
on 20 Dec 2011 at 6:42
Please Please Please: Somebody do something about that, there has to be a
solution somehow.
Basically, there is currently no way of having watchdog resets with any
Mega2560 and using any known bootloader.
Original comment by bernhard...@gmail.com
on 20 Dec 2011 at 6:51
I have fixed the stock stk500v2 boot loader source and tested it, it works.
The code adjustment is quite small, I don't have the time right now to include
the diff will do so later.
If you want to experiment with a hex file, here it is. YMMV, it works for me,
etc etc
hey if it doesn't work for you just re-flash the public stk500v2 hex file.
This one is small because the bootloader !!! test mode is not #defined.
Original comment by justinbe...@gmail.com
on 20 Dec 2011 at 7:00
Attachments:
I had contact with a guy named "David A. Mellis", who might be in an upstream
position for arduino. Please send me a private message through github, so we
can exchange mail addresses. https://github.com/bkubicek
If this works, thank you very very much, you might just safe somebody's house
from burning down!
Original comment by bernhard...@gmail.com
on 20 Dec 2011 at 7:10
Hi, just checking you got my email with the source - I'm not a member of
github, so just emailed your google code address.
If anyone else googles up this particular issue topic as it ranks high when
searching for watchdog + 2560 issues, here is the modified stk500v2 code that
generated the hex file above, attached.
Original comment by justinbe...@gmail.com
on 20 Dec 2011 at 10:27
Attachments:
I just tested justinbe's bootloader from the hex file he pointed to. It worked
fine. I tested for both the !!! and the watchdog timer problems. The largest
file I had to upload was around 61K, and it worked fine.
Thank you very much.
Original comment by drayth...@gmail.com
on 15 Feb 2013 at 2:33
somebody help me for Atmega 2560 pro 3.3v bootloader, i was tried with
stk500boot_v2_mega2560.hex it is not working, and one more help for atmega2560
stk500boot_v2_mega2560.hex this is working but if i compile stk500boot.c and
flash that to chip means it is not working , is i required to define any thing
for that ?
Original comment by sanjisri...@gmail.com
on 11 Nov 2014 at 3:10
AFAIK, the watchdog issues with the 2560 bootloader were fixed years ago
(2011), and those fixes are in the source shipped with the Arduino IDE (I'm not
sure whether the fixed bootloader is actually loaded on production Arduino
MEGAs, though, and I have no idea what the status of a "MEGA 2560 Pro 3.3V" is;
ask sparkfun! (presumably it needs to run at 8MHz instead of 16MHz...)
In any case, it has nothing to do with optiboot, which doesn't run on a 2560 at
all. The homepage for the stk500v2 bootloader is
https://github.com/msproul/Arduino-stk500v2-bootloader but it doesn't seem to
be very active.
Original comment by wes...@gmail.com
on 11 Nov 2014 at 6:56
Original issue reported on code.google.com by
bernhard...@gmail.com
on 8 Dec 2011 at 12:00