Associate
October 3, 2021
Question
STM32WB55 program was stuck if both BLE and ADC is activated
- October 3, 2021
- 4 replies
- 2308 views
I have an STM32WB55 board. I used the CUBEMX to generate a template that both activates the internal temperature sensor and BLE module.
However, if I ran the program generated, it will be blocked in the "hw_timeserver.c" at line 566, which is:
while(__HAL_RTC_WAKEUPTIMER_GET_FLAG(phrtc, RTC_FLAG_WUTWF) == RESET)If I turn the ADC off, the program will start properly, and I am able to scan and connect. the problem seems relative to the clock configuration, but I have no idea how to debug it.
I attached my CUBEMX setting file. Can anyone helps me find the problem?