cancel
Showing results for 
Search instead for 
Did you mean: 

Real baudrate half of that set in CubeMX for STM32F071?

vasilevskialeksandar
Associate III

After successful test on STM32f401RE I moved my design on STM32F071 for cost reasons.

I am using UART1 and UART3 first set to 9600 and second set to 115200.

But on PC I can see the data only if it is set to 4800 and 57600.

At the beginning used internal HSI on 8MHz but later switched to HSE with external 16Mhz quartz. In cubeMX all usart uart are set to be on max 48MHz. In both cases internal RC and external quartz baudrate is half of that is requested(set) . Verified with logic analyzer that baudrate is half that needed.

STM32CubeMX version 5.6.0

STM32Cube FW_F0 V1.11.0

Anyone faced similar issue?

2 REPLIES 2
Uwe Bonnes
Principal II

Carefully recheck your settings.

vasilevskialeksandar
Associate III

Thanks for the tip. I did now reset configuration and started again.

For UART1 default is PCLK1 now and code generated indeed produces 9600 now.

Now problem is that USART3 is not shown on Clock Configuration window.

I can not select clock source for it.

I can do manually in project but I am afraid it will be overwritten wen I press generate code in CubeMX.

USART1 is OK now but USART3 it isn't