cancel
Showing results for 
Search instead for 
Did you mean: 

FW Package F4_V1.16.0: STM32F411VC gets wrong IS_RCC_PLLN_VALUE macro according to Reference Manual

Vito Marolda
Associate III
Posted on October 09, 2017 at 12:22

I created a project with CubeMX 4.1, with a STM32F411VCTx.

CubeMX generated a PLLN value of 100, which for RM0383 is correctsince the minimum PLLN value is 50:

VCO output frequency = VCO input frequency × PLLN with 50 ≤ PLLN ≤ 432

Instead, since CubeMX has defined the following in the build settings:

STM32F411xE

The value of PLLN=100 produce an assertion error because the following macro states that the minimum PLLN value for STM32F411xE is 192:

#if defined(STM32F411xE)
#define IS_RCC_PLLN_VALUE(VALUE) ((192U <= (VALUE)) && ((VALUE) <= 432U))
#define IS_RCC_PLLI2SN_VALUE(VALUE) ((192U <= (VALUE)) && ((VALUE) <= 432U)) 
#else /* STM32F405xx || STM32F415xx || STM32F407xx || STM32F417xx || STM32F427xx || STM32F437xx ||
 STM32F429xx || STM32F439xx || STM32F401xC || STM32F401xE || STM32F410Tx || STM32F410Cx || 
 STM32F410Rx || STM32F446xx || STM32F469xx || STM32F479xx || STM32F412Cx || STM32F412Rx || 
 STM32F412Vx || STM32F412Zx || STM32F413xx || STM32F423xx */
#define IS_RCC_PLLN_VALUE(VALUE) ((50U <= (VALUE)) && ((VALUE) <= 432U))
#define IS_RCC_PLLI2SN_VALUE(VALUE) ((50U <= (VALUE)) && ((VALUE) <= 432U))
#endif /* STM32F411xE */ 
�?�?�?�?�?�?�?�?�?�?

Which information is wrong? RM0383 does not mention this specific limit of xE variants.

Regards,

--Vito.

#pll #rcc #cubemx-4.22 #stm32cube_fw_f4_v1.0
1 REPLY 1
Nesrine M_O
Lead II
Posted on October 09, 2017 at 17:02

Hi

MAROLDA.VITO

,

Thanks for highlighting this problem.In fact thereis no issue in document side but the issue is in the HAL driver.

I will check this with our development team & come back to you.Sorry for the inconvenience it may bring.

Please refer to the PLL characteristics table in your related datasheet (ieSTM32F411xC STM32F411xE datasheet)

0690X00000608XXQAY.png

-Nesrine-