Hello @oneshot.triplekill@qq.com
First le me thank you for having reported.
Issue is also reproduced from my side.
Also I noticed that the wait status for Flash Latency is set to 1WS. However according to the ref manual it should be set to 4WS. (check Table 17. FLASH recommended number of wait states and programming delay)
That's why I created a similar project on CubeMx 6.5 and it take the correct value (4WS) and the generated initialization code run perfectly with the LL library.
It seems that this is a misbehavior from CubeMx (as those settings should be set automatically) but fortunately it has been corrected in the 6.5 CubeMx version.
So either you can upgrade to the 6.5 CubeMx version. Or you can change the flash latency setting in the generated code in the "SystemClock_Config" function from "LL_FLASH_LATENCY_1" to "LL_FLASH_LATENCY_4".
Sorry for any inconvenience that this may cause.
Thank you for your contribution.
Semer.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.