cancel
Showing results for 
Search instead for 
Did you mean: 

Flash latency on STM32G4 with CubeMX and FW 1.3.0

Eddy1
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
2 REPLIES 2

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/0D53W000004JX9fSAG/stm32g474-flash-wait-states-at-170mhz-cpu-clock

https://community.st.com/s/question/0D53W000005qUp6SAE/stm32g4-family-performance-enhancement

Eddy1
Associate

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