This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

The max amount of time can be spent in WDT interrupt

Hi! 

As far as understood, there are only 2 clock cycles before the Watchdog timer reset occurs. Is there a way to change/set this to a different value? I need to write in the flash that watchdog is resetting my device. and 2clock cycles are not enough! 

Regards,

Parents
  • Hi,

    You have two 32 kHz clock cycles before the reset occurs. As you write, this means that there is no time for writing to flash, and it is not configurable.

    An alternative is that you could write data to a reserved RAM region instead, and check that region after every reset. The content of the RAM is not guaranteed through a watchdog reset, so you should write a CRC together with the data so that you can verify that the data is intact when you read it back after the reset.

Reply
  • Hi,

    You have two 32 kHz clock cycles before the reset occurs. As you write, this means that there is no time for writing to flash, and it is not configurable.

    An alternative is that you could write data to a reserved RAM region instead, and check that region after every reset. The content of the RAM is not guaranteed through a watchdog reset, so you should write a CRC together with the data so that you can verify that the data is intact when you read it back after the reset.

Children
No Data
Related