Dialog Semiconductor customer support - button wake-up https://support.dialog-semiconductor.com/resource-keywords/button-wake en Abnormal button wake-up (turning to reset) https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/abnormal-button-wake-turning-reset

Dear Dialog team,

I referenced ble_app_sleepmode project to implement button wake up in ble_app_barebone project. Also I use app_timer_set() to be able to wake up periodically for beacon.
The mode I used to do sleeping is extended sleep mode. The function to start sleeping is as below.

void user_app_adv_undirect_complete(uint8_t status)
{
...
app_timer_set(APP_BEACON_TIMER, TASK_APP, delay);
arch_set_extended_sleep();
arch_ble_ext_wakeup_on();
app_button_enable();
...
}

Now, I can wake up periodically by BLE timer correctly. But when I press the button, the system will be reset.
Is it related to OTP usage as well as Deep Sleep mode? Because I am burning the codes on Flash.

Best regards,
Simon

P.S. app_button_press_cb( ) and app_wakeup_cb( ) are changed slightly so that I don't think they will affect the result.

Keywords: 
Device: 
星期一,2017年8月28日08:27:18 + 0000 Simon WANG 85655 at https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/abnormal-button-wake-turning-reset#comments