Cannot wake up after enter extened_sleep

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
魏文彬
Offline
Last seen:3 months 1 week ago
Joined:2019-04-10 03:51
Cannot wake up after enter extened_sleep

HI DAteam

i set

---------------------------------------------------------------------------------------------------------------

hw_wkup_init(NULL);
hw_wkup_set_debounce_time(32);
hw_wkup_configure_pin(HW_GPIO_PORT_4, HW_GPIO_PIN_1, true,HW_WKUP_PIN_STATE_HIGH);
hw_wkup_register_interrupt(wkup_handler, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);

---------------------------------------------------------------------------------------------------------------

and the wkup_handler is

----------------------------------------------------------------------------------------------------------------

空白wkup_handler (void) {
pm_system_wake_up();
hw_wkup_reset_interrupt();
}
----------------------------------------------------------------------------------------------------------------

i use "pm_set_sleep_mode(pm_mode_extened_sleep)" enter sleep mode ,

then i can'not wake up !

Is it wrong with me?

if i set wkup_handler as follows:

-----------------------------------------------------------------------------------------------------

空白wkup_handler (void) {
hw_cpm_reboot_system();
}

------------------------------------------------------------------------------------------------------

then i can "wake up",But this is not a real wake up. And this will cause the Bluetooth connection to be interrupted while sleeping.

I need to wake up the device normally. Can you give me some advice? thanks very much!

Device:
PM_Dialog
Offline
Last seen:2 hours 34 min ago
Staff
Joined:2018-02-08 11:03
Hi There,

Hi There,

I would strongly recommend you to have a look at theExternal Interruption Tutorialfrom our support website in order to find steps for how to Set up the Wake-Up Timer. Could you please indicate if you followed the same steps? Also, which project of the SDK you are using?

Thanks, PM_Dialog

魏文彬
Offline
Last seen:3 months 1 week ago
Joined:2019-04-10 03:51
i use SDK is DA1468x_DA15xxx

i use SDK is DA1468x_DA15xxx_SDK_1.0.14.1081

i use chip is DA14682

i use project is ble_sps_peripheral

YES i have followed the same steps, i just not use timer.

but i can't wake up and restoring previous work, i don't know why ,can you tell me why, please ,thanks!

PM_Dialog
Offline
Last seen:2 hours 34 min ago
Staff
Joined:2018-02-08 11:03
Hi There,

Hi There,

You mentioned that you remove the BLE timer, so how do you want to wake up ?

Thanks, PM_Dialog