Skip to main content
DS.4
Senior
March 21, 2024
Question

PLL clocks for P-NUCLEO-WB55 sleep

  • March 21, 2024
  • 1 reply
  • 673 views

 

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

 

So that sleep is maintained? 

This topic has been closed for replies.

1 reply

FDumontKeller
Associate II
March 27, 2024

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.