2020-03-10 10:42 PM
Hello all,
I have an STM32L073 using the HSE to clock and LSE for the RTC. Aalarm A & B interrupt are both activated and the device will wakeup from stop mode by them. It works fine at the most of time, but it returns HAL_ERROR sometimes. I checked the program and found that the macro __HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK in function HAL_RCC_OscConfig(). It is abnormal but I cannot find out the reason.
I think the clock souce will switch to MIS after stop mode and I need to reconfigure it after wakeup. Why it was happened in this case ?
Thanks very much.
2020-05-18 4:13 AM
Hi,
I have the same problem like you. Did you solve?
Thanks!!
2020-06-23 7:30 AM
Same issue here, usually when i wake up quite quick.
2020-06-23 7:44 AM
Cube/HAL is open source. Instrument the function in question and find out where does it throw the error.
JW