Clock settings are reset when loading IOC file
Hello,
I am having an issue with my STM32WBA65MI-based project file (IOC file) and CubeMX (6.15.0). It also happens when configuring the IOC file in CubeIDE 1.19.0.
When I configure the clocks and then generate code and save the IOC file and then close the IOC file, the code is correctly generated. However, when I open the IOC file again, the clock settings are different:
- Cortex Clock Selection Mux
CPU System Timer shows as LSE, despite previously having saved and generated as HCLK1 / 8. This means the CPU System Timer runs at 0.032768MHz rather than 12MHz. - System Clock Mux
The System Clock Mux shows as HSE, despite previously having saved and generated as PLLCLK. This sets the SYSCLK to 32MHz (and has consequences downstream for peripherals) - Related to the System Clock Mux, the HPRE5 Prescaler gets reset from / 4 (which I had saved) to / 1.
If I were to generate code, it would replace the "correct" code with the new settings.
Double-checking the original generated code, it seems that the settings are properly used to generate code. However, maybe the IOC file isn't being saved right, or loaded right?
I'm happy to send my IOC file via email but I'd rather not upload it here.
Thank you,
Jonathan
