Hi,
Wakeup from System OFF mode will trigger a chip reset. If you get a fatal error after calling sd_power_system_off(), this means that the function returned (which it should not). If you are testing this while in debug mode, the chip will enter "Emulated System OFF mode". If you want to test emulated System OFF, you need to put an endeless while-loop after the call to sd_power_system_off() (before APP_ERROR_CHECK), to prevent the application from running any further code.
To test normal System OFF mode, exit the debug-mode and reset the chip.
Best regards,
Jørgen
ticture said:Is it because I don't reset the device after load the program?
Yes, the only safe way to make sure the device is not in debug mode is to power cycle the board after programming.
ticture said:Is it because I don't reset the device after load the program?
Yes, the only safe way to make sure the device is not in debug mode is to power cycle the board after programming.