cancel
Showing results for 
Search instead for 
Did you mean: 

PLL clocks for P-NUCLEO-WB55 sleep

DS.4
Senior II

 

What is the correct way to configure PLL in clocks for the  BLE_HEAR_RATE_FREE_RTOS example ?

 

So that sleep is maintained? 

1 REPLY 1
FDumontKeller
Associate III

Hi @DS.4,

i don't know the BLE_HEAR_RATE_FREE_RTOS example, but this might help you since I got stuck in something similar for some time. 

When writing an BLE application (without FREERTOS) and the CFG_LPM_SUPPORTED is set (and traces are disabled), the sequencer will try to go to sleep or stop2 mode if there are no pending tasks. BUT if the Advertising is still active, then the CPU1 will wake up for short periods since an interrupt has been generated. 

The way I solved it si by stopping the Advertising, setting the RTC to generate an interrupt after a period of time and after that start the Advertising again. 

 

FDumontKeller_1-1711527167756.png

Perhaps in the case of FREERTOS is the same.

Hope this helps. 
Best Regards.