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?