是仙女ph_init need to be call when wakeup from 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.
是仙女ph_init need to be call when wakeup from sleep?
Is it need to re initialize the peripheral when DA14531 wakeup from extended sleep, just like DA14580? I think we need a reference manual when porting project from DA14580 to DA14531.
The periph_init() is executed in every wake-up. The BLE_WAKEUP_LP_Handler is the ISR which is triggered in every wake up. Then, the CPU will resume from WFI. Please check main() in arch_main.c file. After the WFI, the arch_resume_from_sleep() will be executed which triggers the periph_init(). There isn’t any document for porting SDK5.0.4 to SDK6.0.12, The are is a porting guide for porting an application based on SDK6.0.10 to SDK6.0.12
Hi cgha,
The periph_init() is executed in every wake-up. The BLE_WAKEUP_LP_Handler is the ISR which is triggered in every wake up. Then, the CPU will resume from WFI. Please check main() in arch_main.c file. After the WFI, the arch_resume_from_sleep() will be executed which triggers the periph_init(). There isn’t any document for porting SDK5.0.4 to SDK6.0.12, The are is a porting guide for porting an application based on SDK6.0.10 to SDK6.0.12
http://lpccs-docs.dialog-semiconductor.com/UM-B-118_DA14585-DA14531_SDK_Porting_Guide/index.html
Thanks PM_Dialog