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

use initialized WDT after software reset on a NRF52

Hi, well I struggle with another problem right now. In case of some errors, I use 'sd_nvic_SystemReset' to reset the system. But the WDT is used in the application. Thus, after restart, the WDT is still active.

Is there any possibility to get or set the config of the WDT again as with nrf_drv_wdt_init(&config, wdt_event_handler)? I just want to feed the WDT further after reset.

I know that sd_nvic_SystemReset does not clear the protection of the WDT ... If not do I really have to trigger a WDT timeout after sd_nvic_SystemReset?

P.S. I am using SDK 12.3 so far but that shouldn't make any difference.

Thanks.

Parents
  • Hi Trigerion,

    Soft reset doesn't clear WDT. What you can do is when you booting up, you can read the WDT registers (NRF_WDT->CRV for example) and check if they are not the default reset values. Then you can assign the configuration values according to those in the NRF_WDT registers, call nrf_drv_wdt_init() continue to feed the watch dog from there.

Reply
  • Hi Trigerion,

    Soft reset doesn't clear WDT. What you can do is when you booting up, you can read the WDT registers (NRF_WDT->CRV for example) and check if they are not the default reset values. Then you can assign the configuration values according to those in the NRF_WDT registers, call nrf_drv_wdt_init() continue to feed the watch dog from there.

Children
Related