For nRF52832 SDK 17.0.2 ,How to enter Sleep Mode (Power Off Mode) (Suspend Mode) then press the Button1 for wake up ??
For nRF52832 SDK 17.0.2 ,How to enter Sleep Mode (Power Off Mode) (Suspend Mode) then press the Button1 for wake up ??
#define BTN_ID_WAKEUP 0 /**< ID of button used to wake up the application. */
#define BTN_ID_WAKEUP_BOND_DELETE 1 /**< ID of button used to wake up the application and delete all bonding information. */
I have checked the pins in the correct state(Button1),But it still be reset immediately. Why ?
If the chip is waken from System OFF, it is most likely an issue with the GPIO configurations.
Can you check the RESETREAS register after reset, to make sure that the chip was reset by wake from System OFF/GPIO?
The APP_ERROR_CHECK() could also cause a reset, in case you are in debug mode, as this will cause the chip to enter "Emulated System OFF":
// Go to system-off mode (this function will not return; wakeup will cause a reset). err_code = sd_power_system_off(); APP_ERROR_CHECK(err_code);
If the chip is waken from System OFF, it is most likely an issue with the GPIO configurations.
Can you check the RESETREAS register after reset, to make sure that the chip was reset by wake from System OFF/GPIO?
The APP_ERROR_CHECK() could also cause a reset, in case you are in debug mode, as this will cause the chip to enter "Emulated System OFF":
// Go to system-off mode (this function will not return; wakeup will cause a reset). err_code = sd_power_system_off(); APP_ERROR_CHECK(err_code);