STM32L476 Nucleo - Cube IDE 1.12.0 - LL_PWR_IsActiveFlag_VOS endless loop
Cube IDE 1.12.0 Build 14980_2023_03_01_1550
OS: Windows 11 Pro 22H2 Build 22621.1413
Project using STM32L476 Nucleo board; low level only (no HAL used at all)
I've build my project IOC file using the previous version of Cube. When I open it, I have 3 options: continue / migrate /..
If I select "migrate" and generate code, the following statement appears in my systemclock init
while (LL_PWR_IsActiveFlag_VOS() == 0) { }
According to the source, this waits for the 10th bit in PWR_CR2 to become '1':
#define PWR_SR2_VOSF_Pos (10U)
This bit seems to be reserved for STM32L471; so why is cube generating this in my project? Fact is: the code waits forever on the above while statement.
The best option I found so far is not to migrate my IOC file (unfortunately I did not find a way to attach it).
Differences in comparing the IOC files before and after the migration are only version info:
Keeping the IOC in the old version prevents generating the endless wait statement.
