AnsweredAssumed Answered

Bug in STM32Cube for STM32F417

Question asked by gledhill.richard on Feb 27, 2014
Latest reply on Mar 4, 2014 by fauvarque.daniel
Hi,
If you set the PLL speed of the micro to 160MHz (PLL_M=25, PLL_N=320, PLL_P=2) then the generated software correctly contains the line in SystemClock_Config():

  HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_5);

However if you change it to run at 168MHz by setting PLL_N=336, it incorrectly generates this code:

  HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0);

This means that the processor stops running as the flash access times are wrong.  The STM32Cube code generator algorithm needs to have this bug fixed.

Thanks
Richard

Outcomes