I started using the watchdog timer (functions
wdt_reset()). I hoped that after the watchdog timer generates the reset I would be able to read the Watchdog Reset Flag (WDRF) from the MCUCSR register (ATmega8A Data Sheet).
However I found that all MSUSR bits are always set to zero after the reset. My understanding from various threads on this forum is that this is the standard behavior of the Arduino bootloader. I guess it is implemented that way for a reason and there is no way I can check the WDRF value?
- The only purpose why WDRF value interests me is to know if there was an error.
- I am using the original Arduino MEGA 2560 Rev3 boards with the default bootloader (stk500v2 is my guess based on this forum thread AZTEEG X3 PRO: ATmega 2560 Bootloader MCUSR always 0).