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
Thanks for your answer, I power cycle the board after programming, however, when I touch the touchbar which connects to the pin5 (BUTTON_3) after enter into the sleep mode, the device still recover from the sleep mode.
It is possible that the GPIO is configured by BSP with sense mode enabled. You can try to call nrf_gpio_cfg_default() on the pin before entering System OFF, to reset the configuration of the pin.
It is possible that the GPIO is configured by BSP with sense mode enabled. You can try to call nrf_gpio_cfg_default() on the pin before entering System OFF, to reset the configuration of the pin.