cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX initialization code generation error, or STM32F3 Firmware Package error?

izzy84075
Associate II
Posted on November 18, 2015 at 02:51

I have a project that is using USART1 on an STM32F301R8.

The initialization code that CubeMX generates for USART1 includes a reference to ''RCC_USART1CLKSOURCE_PCLK1'', which does not exist in stm32f3xx_hal_rcc.h . There are equivalent symbols for USART2 and USART3, but there seems to be a missing block for USART1.

STM32CubeMX version: 4.10.1 (I'm currently updating to 4.11.0, but figured I'd write this up while I wait to see if that fixes it.)

Firmware Package for Family STM32F3 version: 1.2.0

I can attempt to make a minimal example for this, but given that the USART1 block seems to be missing from stm32f3xx_hal_rcc.h, I don't think this one will be hard to track down.
4 REPLIES 4
Nesrine M_O
Lead II
Posted on November 18, 2015 at 14:38

Hi Izzy84075,

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

-Syrine-

izzy84075
Associate II
Posted on November 18, 2015 at 20:28

Updating to CubeMX Version 4.11.0 and STM32F3 Firmware Package Version 1.3.0 does not fix this.

Nesrine M_O
Lead II
Posted on November 19, 2015 at 10:51

Hi Izzy84075,

The reported issue is under review, it is not a CubeMX issue, it seems to be related to a miss define of the STM32F301 in the stm32f3xx_hal_rcc_ex.h 

-Syrine-

Nesrine M_O
Lead II
Posted on November 20, 2015 at 18:02

Hi  Izzy84075,

Your reported issue is confirmed by our team and will be fixed in coming release of the STM32cubeF3 package.

Thank you very much for your contribution to the enhancement of our STM32 related solutions.

-Syrine-