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

how change the watchdog reload value in runtime

Hi,

I am using nRF5_SDK_14.2.0,  I am using the watchdog, but I would like to change the reload value but I cannot do it.

I used this function but it is not working I do not have any idea, why?!

nrf_wdt_reload_value_set(reload_time * 32768 );

could you please guide me to solve this issue?

Thank you in advance

Parents
  • NRF52832 PS 1.4, chapter 40.3:

    "The watchdog must be configured before it is started. After it is started, the watchdog’s configuration
    registers, which comprise registers CRV, RREN, and CONFIG, will be blocked for further configuration."

    CRV is the reload register - you cannot modify this when the WDT is running. Stopping the WDT for reconfiguration requires a reset.

Reply
  • NRF52832 PS 1.4, chapter 40.3:

    "The watchdog must be configured before it is started. After it is started, the watchdog’s configuration
    registers, which comprise registers CRV, RREN, and CONFIG, will be blocked for further configuration."

    CRV is the reload register - you cannot modify this when the WDT is running. Stopping the WDT for reconfiguration requires a reset.

Children
Related