cancel
Showing results for 
Search instead for 
Did you mean: 

Flash Latency and PWM Mode Bug

richard239955
Associate II
Posted on June 25, 2014 at 10:20

Hi everybody,

I recently tried to port my STM32F4Disco poject to the new CubeMX firmware 1.2. The first issue I encountered was that the program did not pass the SystemClock_Config function. While debugging and comparing to the old firmware I noticed that only the flash latency setting is different. The old CubeMX firmware had it at 5, while the new one puts 0. You cannot change this setting in CubeMX, changing it manually in the sourcecode made it work.

The second issue is the missing PWM mode 1&2 setting in CubeMX. Although it is still defined in the sourcecode, you cannot select it in CubeMX anymore.
1 REPLY 1
jarno
Associate III
Posted on July 07, 2014 at 12:44

i've noticed the same Flash latency change from five to zero (or FLASH_LATENCY_5 to

FLASH_LATENCY_0), this happends occasionally when re-generating code from CubeMX. Try toggling the system clock mux-selector, from PLLCLK to HSI or HSE and then back and re-generate, have worked for me.