cancel
Showing results for 
Search instead for 
Did you mean: 

CUBEMX - cannot set 1Mb/s

PDoub.1
Associate

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 

3 REPLIES 3

What STM32 part? What clocks on APB?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
PDoub.1
Associate

Sorry, stm32F103 processor and this clock config:

0693W000006GPJOQA4.png

Khouloud ZEMMELI
ST Employee

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