Hi,
I've been playing around with the attached low power mode example. It seems to be written around the nRF SDK, but I am attempting to build and flash from within VSC using the NRF Connect SDK and Zephyr RTOS. Not sure if this is part of my issue (I'm a bit of a novice at this stage).
End goal is to modify my own project code so that it:
- Enters a RAM retention low power state when not doing anything
- Exits this stage when I get a positive edge trigger on one of three different GPIO
- Determine which GPIO caused the device to come out of low power mode, increment an appropriate counter, then go back into the low power mode.
This example sort of looks like it should do that, but there's a fair bit going on in retention.c/.h that I don't really follow.
Anyway, when I program my nRF52-DK with the code as is, it seems to step through things correctly, and I can see the impact on the current drain on my DK. But in the final step, where its supposed to go into, something goes wrong and it skips past that and into the printk("ERROR: System off failed\n"); statement.
This is the output from the UART:
