2024-03-21 06:22 AM
What is the correct way to configure PLL in clocks for the BLE_HEAR_RATE_FREE_RTOS example ?
So that sleep is maintained?
2024-03-27 01:14 AM
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.
Perhaps in the case of FREERTOS is the same.
Hope this helps.
Best Regards.