Well main clock issue will fixed on the next board revision, 8 or 16mhz...fpiSTM wrote: Thu Apr 04, 2024 9:10 am You can optimize several things as explained in the wiki.
About code, I talk about the variant and the update you made else can't help on the clock issue. Some hardware info can help also. Like HSE? LSE?....
The current config was pulled from cubeide, after going through several multipliers and dividers to get 25mhz to 45mhz.
The config should be pulling from HSE.
But i wondered even though cubeide resolved it, could the config still be bad for the chip, and it default to internal 8mhz?