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

NRF52 Watchdog Reset When only reset source is soft reset?

I'm working on a battery - operated device where the battery is soldered onto the device, which makes it inconvenient to pull power to the device. I might be able to get to the reset pin on the nRF52, but that's unlikely.

Is there any way (documented, undocumented, whatever) that I can use to reset and reconfigure the WDT besides Pin, Brownout, or Power? I can't pull power and the batteries are designed to last 4+ year. We don't use the pin to reset the chip when programming. We use the SWD reset command, which is interpreted by the NRF52 as a reset.

Are there any options or am I just completely boned here?

Parents
  • @Curtis: What about letting the WDT resets itself ? You can write something to the retention register to tell the chip the next time it wakes up that the reset was on purpose and can reconfigure the WDT.

  • If you configured the WDT to not run while the CPU is asleep (WDT->CONFIG->SLEEP set to 0), then you can't go to sleep while waiting for the WDT to expire because the WDT won't run (which is how we have our WDT configured).

    There's a couple of different options for future designs of the WDT:

    1. Provide an unlock sequence to allow WDT reconfiguration without a reset. Something like "you have to write 0x24 0x44 0x66 0xBE 0x81 in that exact order to the UNLOCK register to reconfigure the WDT"

    or

    1. Reset the WTD as part of a soft reset.
Reply
  • If you configured the WDT to not run while the CPU is asleep (WDT->CONFIG->SLEEP set to 0), then you can't go to sleep while waiting for the WDT to expire because the WDT won't run (which is how we have our WDT configured).

    There's a couple of different options for future designs of the WDT:

    1. Provide an unlock sequence to allow WDT reconfiguration without a reset. Something like "you have to write 0x24 0x44 0x66 0xBE 0x81 in that exact order to the UNLOCK register to reconfigure the WDT"

    or

    1. Reset the WTD as part of a soft reset.
Children
No Data
Related