2020-09-28 03:23 AM
Hello,
I got a problem with the flash latency setting when starting a project with a STM32G4 series MCU and the newest version of CubeMX (6.0.1) and the Firmware package V1.3.0.
The MCU series reference manual (RM0440, table 9) says that 8 WaitStates are needed when using the device at its maximal clock speed of 170 MHz. Cube MX calculates this value automaticly with the known clock and VDD to a value of only 4 WS, which seems to be wrong. This value is grayed out in the GUI, so it can not be changed by the user. The former version of the FW package V1.2.0 seems to use the values as seen in the MCUs reference manual.
To reproduce the problem, you can start up a new project with the NUCLEO-G474RE board. This is preconfigured to a 170 MHz clock and uses, as seen in the tab "RCC", only 4 WS insted of 8 WS.
Is there a mistake in my understanding of the flash configuration or a bug in the CubeMX firmware package?
Thanks,
Eddy
Solved! Go to Solution.
2020-09-28 06:30 AM
Do you look at the latest RM0440?
There was a revision of the waitstates a couple of months ago; you may want to search this forum too.
JW
PS.
https://community.st.com/s/question/0D53W000005qUp6SAE/stm32g4-family-performance-enhancement
2020-09-28 06:30 AM
Do you look at the latest RM0440?
There was a revision of the waitstates a couple of months ago; you may want to search this forum too.
JW
PS.
https://community.st.com/s/question/0D53W000005qUp6SAE/stm32g4-family-performance-enhancement
2020-09-28 07:06 AM
Thank you for your fast answer! You are right, I got an old revision 2 datasheet which does not
know about the recharacterized flash timings.
Much Thanks,
Eddy