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

nrf52 wakes from sd_power_system_off() with a DETECT, yet LATCH register shows nothing

The nrf52 is waking from a sd_power_system_off() and resets. The reset reason register indicates it was from a DETECT from GPIO, yet the LATCH register is 0 and all the sense bits of all io pins are disabled.

hellllpppp

Rich

Parents Reply
  • Thanks.  OK, that's not what's causing my issue.

    I'm having problems where, if I get multiple GPIO triggers in quick succession (within a 100msec for example) whilst the device is coming out of System Off, the LATCH register is getting cleared, and so I can't determine which GPIO caused the exit to occur.

    The LATCH register only has valid info if I get one GPIO trigger, and my code has time to come out of System Off, do its thing, then go back into System Off.  If it gets a second trigger on a valid GPIO during the the time between the first, and when it goes back into System Off, the LATCH register gets reset.

    Can't for the life of me work out why its happening :-(

Children
Related