cancel
Showing results for 
Search instead for 
Did you mean: 

Maximum baudrate error on CubeMX on USART2 STM32F030C8

Alef Rosa
Associate II
Posted on June 22, 2018 at 22:03

Good afternoon!

My name is Alef, I'm trying to set up the usart2 baudRate from STM32F030C8 to 2Mbps but I can not succeed.

I'm using 48MHz clock so according to the manual, at 16 samples, I should be able to reach up to 3Mbps, but CubeMx says the limit is 500kbps. But if I go in code and manually put 2000000 it seems to work normally.

My questions are:

  • I wonder if this is a Bug from CubeMx?
  • If not, why this lower limit?
  • Using USART2 with 2Mbps briefly, could it generate any problems in the future?

Thank you all.

0690X0000060BpEQAU.png

#cubemx-stm32f103c8t6 #baudrate
4 REPLIES 4
Imen.D
ST Employee
Posted on June 25, 2018 at 11:22

Hello

alefkta

,

Can you please confirm that you are using the latest STM32CubeMx version 4.0.

With Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on June 25, 2018 at 17:39

Hello

Almeida_Costa_Rosa.A

,

Thanks for your feedback.

This is an issuein CubeMX. In fact, as you said,

the maximum value of Baud Rate should be 3 MBits/s in case of 16 samples and 6 MBits/s in case of 8 samples.

It will be fixed next release.

Please do not hesitate to contact me for further details.

Thanks and regards,

Mohamed

Posted on June 25, 2018 at 17:18

Yes.

The version of STM32CubeMx is 4.26.0.

Thank you.

Alef Rosa
Associate II
Posted on June 26, 2018 at 15:52

Thank you all.