Flash latency on STM32G4 with CubeMX and FW 1.3.0
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
