Skip to main content
MKash.1
Associate II
May 23, 2023
Question

How to set FDCAN baud rate 8 MBit/s in CubeMX?

  • May 23, 2023
  • 12 replies
  • 6088 views

..

This topic has been closed for replies.

12 replies

ST Employee
May 23, 2023

Hello @MK.1ashin​ 

what type of STM32 are you using ?

Regards

Diane

MKash.1
MKash.1Author
Associate II
May 23, 2023

stm32U575

MKash.1
MKash.1Author
Associate II
May 23, 2023

I was lucky with BR<2,5MBit/s, not more

ST Employee
May 23, 2023

@mk_it.1ashin​ 

Please find this configuration that give you FDCAN with baudrate at 8MBits/s.


_legacyfs_online_stmicro_images_0693W00000bkeyaQAA.pngRegards

Diane

MKash.1
MKash.1Author
Associate II
May 23, 2023

0693W00000bkf57QAA_image.png

MKash.1
MKash.1Author
Associate II
May 23, 2023

instead two 64 bytes packets

MKash.1
MKash.1Author
Associate II
May 23, 2023


_legacyfs_online_stmicro_images_0693W00000bkf5HQAQ.png

ST Employee
May 23, 2023

Can you give us more explanation about your need? and your screenchots ?

Regards

DianeP

LCE
Principal II
May 23, 2023

I think Cube forgets to enable transceiver delay compensation, which is vital at that bitrate.

Anyway, "nominal" bit rate is for arbitration phase, which must not be faster than 1 Mbit/s, I think.

LCE
Principal II
May 23, 2023

So you have to enable FD mode with BitRate Switching.

Then set "nominal" timing to max 1 Mbit/s, then "data" timing to 8 M.

Have you checked the U575 spec if its FDCAN can run with 160 MHz clock?

I just know the H7's, which has a limit of 100 MHz.

ST Employee
May 23, 2023

Hello @Community member​ 

On STM32U5, FDCAN can run with 160MHz clock.

Regards

DianeP

MKash.1
MKash.1Author
Associate II
May 23, 2023


_legacyfs_online_stmicro_images_0693W00000bkfI6QAI.png