NRF9160 watchdog enable during System OFF

Hi,

I have a firmware which need to transit to System-OFF under certain conditions. The startup code of the firmware enables the watchdog timer, which can't be disable once started (register are not available anymore according to NRF9160 specifications).

I observed that the watchdog is still resetting the SoC, even after entering System-OFF. Is it expected behaviour? I didn't found on the NRF9160 specifications if entering System-OFF will disable the watchdog, or keep it running.

Thanks,

Louis

Parents
  • Hey again!

    This is mentioned a bit in the product specification, though I guess it is more centered on allowing it to be awake than the opposite.

     

    This configuration might be what you are looking for.

    Best regards,

    Elfving

  • Hi Elfving,

    Thanks for your inputs.
    I'm aware of this configuration options for the watchdog and it does indeed prevent the SoC from resetting after entering System-OFF.

    However, it does more than this if I understand properly: The watchdog won't count down after each call of `wfi` or `wfe`. This is an issue for me, as our firmware is expected to enter sleep mode regularly to save power. The watchdog won't be able to do is duty and reset the firmware if this one is "stuck", e.g.: in longer than expected sleep state, or simply in Idle loop.

    As this CONFIG.SLEEP can't be configured after the watchdog is started, this will sadly not be an option for me.

    Looking at https://infocenter.nordicsemi.com/topic/ps_nrf9160/pmureset.html, I can see at the bottom "5 Watchdog reset is not available in System OFF." .
    Doesn't it means that watchdog should not be able to get the nrf9160 out of System-OFF?

Reply
  • Hi Elfving,

    Thanks for your inputs.
    I'm aware of this configuration options for the watchdog and it does indeed prevent the SoC from resetting after entering System-OFF.

    However, it does more than this if I understand properly: The watchdog won't count down after each call of `wfi` or `wfe`. This is an issue for me, as our firmware is expected to enter sleep mode regularly to save power. The watchdog won't be able to do is duty and reset the firmware if this one is "stuck", e.g.: in longer than expected sleep state, or simply in Idle loop.

    As this CONFIG.SLEEP can't be configured after the watchdog is started, this will sadly not be an option for me.

    Looking at https://infocenter.nordicsemi.com/topic/ps_nrf9160/pmureset.html, I can see at the bottom "5 Watchdog reset is not available in System OFF." .
    Doesn't it means that watchdog should not be able to get the nrf9160 out of System-OFF?

Children
Related