This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE UART SLEEP

Hi all!

In my example after (i guess) 3 mins with out BLE connection the system goes to sleep mode. ¿Is there any way to avoid this ? 

Thank you so much!


Parents
  • Yes, you can avoid it by checking the context in which your program calls sleep functions (most likely some timer callback) and modify the logic to your needs. Depending on the type of sleep you need to search in your code calls to __WFE() and/or sd_app_evt_wait() and/or sd_power_system_off().

    Put breakpoints at those instances, start your program in debug mode and run the program. When some of those breakpoints are hit, check the function call stack to understand the context of that logic and change it to your needs.

Reply
  • Yes, you can avoid it by checking the context in which your program calls sleep functions (most likely some timer callback) and modify the logic to your needs. Depending on the type of sleep you need to search in your code calls to __WFE() and/or sd_app_evt_wait() and/or sd_power_system_off().

    Put breakpoints at those instances, start your program in debug mode and run the program. When some of those breakpoints are hit, check the function call stack to understand the context of that logic and change it to your needs.

Children
Related