I’ve been working on a project to upload arduino sketches over serial from a cloud server, and because of propagation delays it seems like I need to lengthen the optiboot watchdog timer for more consistent performance.
I’ve tried changing the line in optiboot.c:
among other things, including WATCHDOG_OFF just to see if anything happened. No matter what I do, the watchdog timer never seems to change.
I am using an arduino uno r3 with Windows 7. I added a folder in …/Arduino/hardware/arduino/bootloaders/ for the modified optiboot and added entry to my boards.txt.
The build process I am using is:
- Modify optiboot.c
- run ‘omake atmega328’
- using arduino IDE, burn bootloader with the new board selected using arduino leonardo as ISP
I get no errors in the bootloader burn process, but the watchdog behavior never seems to change. I am checking this by pressing the reset button, and expect to see differences in how long it takes for the board led to come back on.
What am I missing here? Thanks in advance!