Skip to main content
PDoub.1
Associate
December 20, 2020
Question

CUBEMX - cannot set 1Mb/s

  • December 20, 2020
  • 3 replies
  • 1608 views

Hello, I can not set 1MB/s baudrate on CAN peripheral. Used configuration on pictures. It looks like the rounding error. It worked in the previous version of CUBEIDE (1.4.0).0693W000006GOCMQA4.png 

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
December 20, 2020

What STM32 part? What clocks on APB?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
PDoub.1
PDoub.1Author
Associate
December 20, 2020

Sorry, stm32F103 processor and this clock config:

0693W000006GPJOQA4.png

Khouloud ZEMMELI
ST Employee
December 22, 2020

Hi @PDoub.1​ 

Some modifications were made to CAN in the 6.1.0 CubeMX version to make the "Time for one bit" more precise.

As you can see, with this configuration the "Time for one bit" equal to 999.99 ns, and this value should take at least 1000 ns, for this reason a purple crosses appeared in your project with the latest version of CubeMX. (You can refer to this link if you are looking to reach a specific baud rate value)

Hope I helped you, when your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Thanks, Khouloud