Skip to main content
Alef Rosa
Associate
June 22, 2018
Question

Maximum baudrate error on CubeMX on USART2 STM32F030C8

  • June 22, 2018
  • 3 replies
  • 2143 views
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
This topic has been closed for replies.

3 replies

Technical Moderator
June 25, 2018
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"".ThanksImen"
Alef Rosa
Alef RosaAuthor
Associate
June 25, 2018
Posted on June 25, 2018 at 17:18

Yes.

The version of STM32CubeMx is 4.26.0.

Thank you.

Mohamed Mansouri
Visitor II
June 25, 2018
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

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

Thank you all.