I had my Mega 2560 replaced and bought another one, so I have 2 boards to start
development. My first project is to replace a PIC uController on a refrigerator because it
is unstable (it resets after a few days).
I tried the 2 boards and they worked fine. Until I tested the watchdog on one board.
Now the board is unusable. It resets every 15ms. Googling I find this is a nasty bug.
Without watchdog, Arduino is unusable for real world applications, like my refrigerator.
Now my problem is how to rescue the bricked board. I opened the ArduinoISP and burned
it into my good board. I did the cabling as suggested on the program:
I successfully re-programmed the bootloader for my Mega2560 using an Arduino Uno: http://www.gammon.com.au/forum/?id=11635. However, when the watchdog timer kicks in on my Mega2560, the Mega2560 still locks up, and is not able to reboot. Is the 100nf capacitor still required with the new V2 bootloader? Any other suggestion?
I successfully re-programmed the bootloader for my Mega2560 using an Arduino Uno: http://www.gammon.com.au/forum/?id=11635. However, when the watchdog timer kicks in on my Mega2560, the Mega2560 still locks up, and is not able to reboot. Is the 100nf capacitor still required with the new V2 bootloader? Any other suggestion?
It works fine in mega2560 with WDT. It does not need the 100nF cap to boot.
That cap was needed as in my case I built an atmel programmer with another mega2560 and the problem was that when trying to burn the bootloader, when the the program started, it opened the serial port... but then the mega2560 that acted as the programmer did the reset (without the cap) and the burning would fail. After the cap, the programmer would not reset and the programming was successful.
I successfully re-programmed the bootloader for my Mega2560 using an Arduino Uno: http://www.gammon.com.au/forum/?id=11635. However, when the watchdog timer kicks in on my Mega2560, the Mega2560 still locks up, and is not able to reboot. Is the 100nf capacitor still required with the new V2 bootloader? Any other suggestion?
It works fine in mega2560 with WDT. It does not need the 100nF cap to boot.
That cap was needed as in my case I built an atmel programmer with another mega2560 and the problem was that when trying to burn the bootloader, when the the program started, it opened the serial port... but then the mega2560 that acted as the programmer did the reset (without the cap) and the burning would fail. After the cap, the programmer would not reset and the programming was successful.