Skip to main content
SLevi.1
Associate III
Nov 4, 2025 2:09 PM UTC
Question

stm32wba65, BLE and RTC timer not firing

I have a set of BLE characteristics set up, and working ok. The project uses FreeRTOS. I want to be able to have the stm32wba65 sleep in low power, then wake up at a specific time of day. After wakeup,I have a 5-second RTOS timer to take a series of measurements. Once all measurements are taken, the stm32 should sleep again. I want to set the time of day once from a PC over BLE, then disconnect and have the stm32 go to sleep. I have a 32kHz oscillator providing LSE, which seems to be running ok, as the startup code does not hang waiting for LSE to start. If I try to put the RTC into "Free running BCD calendar and binary mode" in the .ioc file then the RTOS timer no longer fires.

To summarise, I need:

BLE

low power sleep

wake at specific time of day

RTOS timers once awake.

Does anyone have an example of this type of scheme?

This topic has been closed for replies.