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

Watchdog timer use case sensitive application

Hi, 

Good day!

Statement of problem: In our application, we are using nrf52832 SoC to control critical components (heater). So I was suggested to use a watchdog timer to control the critical elements. I tried to search online about this watchdog timer application and did not quite get the application part of it.

Query:

How I can use this watchdog timer to clear any application lockup situation so that heater can be set to default state? 

Is it possible to retain the application data after the watchdog timer is reset? If so how it can be implemented?

Thank you,

Aim High!

Parents
  • Hello,

    it's possible (RAM contents is not cleared upon reset), but in general you shouldn't rely on any app state after watchdog reset. You don't know what's happen - there may be power glitch or bug in the code that corrupts some RAM regions. The rule - after reset, put your system in safe state by hardware (for example, ensure pullups/pulldowns on pins that control critical elements).

Reply
  • Hello,

    it's possible (RAM contents is not cleared upon reset), but in general you shouldn't rely on any app state after watchdog reset. You don't know what's happen - there may be power glitch or bug in the code that corrupts some RAM regions. The rule - after reset, put your system in safe state by hardware (for example, ensure pullups/pulldowns on pins that control critical elements).

Children
Related