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

NRF52 sleep_mode_enter issue

Hi

After the device has been in idling, the sleep_mode_enter function is called which then calls sd_power_system_off().

The device then goes into sleep mode until a event occurs and it goes through the main function again. It all works fine, but what I would need to do is take care of other bits of hardware I have on the board. There are a bunch of I2C devices and there is a PMIC which can adjust the output voltage. So what I was trying to do is that before calling sd_power_system_off() it lowers the PMIC voltage and puts all I2C devices into sleep mode until main is called again which reinitializes everything. The problem is that if I do anything power related before calling sd_power_system_off() it will somehow cause the device to immediately wake up after sd_power_system_off().

What could be causing it?

Parents
  • Hi,

    Does sd_power_system_off() return any codes?

    Note that if you are in debug mode, system OFF will be emulated, and the CPU will be kept on for debugging purposes. See this post and this post for more information about that.


    If you successfully enter System OFF mode, the device can be woken up through one of the following signals:

    • The DETECT signal, optionally generated by the GPIO peripheral
    • The ANADETECT signal, optionally generated by the LPCOMP module
    • The SENSE signal, optionally generated by the NFC module to “wake-on-field”
    • A reset

    When the system wakes up from System OFF mode, it gets reset. More information about that can be found here.

Reply
  • Hi,

    Does sd_power_system_off() return any codes?

    Note that if you are in debug mode, system OFF will be emulated, and the CPU will be kept on for debugging purposes. See this post and this post for more information about that.


    If you successfully enter System OFF mode, the device can be woken up through one of the following signals:

    • The DETECT signal, optionally generated by the GPIO peripheral
    • The ANADETECT signal, optionally generated by the LPCOMP module
    • The SENSE signal, optionally generated by the NFC module to “wake-on-field”
    • A reset

    When the system wakes up from System OFF mode, it gets reset. More information about that can be found here.

Children
No Data
Related