Skip to main content
MKash.1
Associate II
May 23, 2023 8:22 AM UTC
Question

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

..

This topic has been closed for replies.

18 replies

ST Employee
May 23, 2023 8:40 AM UTC

Hello @MK.1ashin​ 

what type of STM32 are you using ?

Regards

Diane

MKash.1
MKash.1Author
Associate II
May 23, 2023 9:16 AM UTC

stm32U575

MKash.1
MKash.1Author
Associate II
May 23, 2023 9:17 AM UTC

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

ST Employee
May 23, 2023 9:56 AM UTC

@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 10:20 AM UTC

0693W00000bkf57QAA_image.png

MKash.1
MKash.1Author
Associate II
May 23, 2023 10:20 AM UTC

instead two 64 bytes packets

MKash.1
MKash.1Author
Associate II
May 23, 2023 10:21 AM UTC


_legacyfs_online_stmicro_images_0693W00000bkf5HQAQ.png

ST Employee
May 23, 2023 11:48 AM UTC

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

Regards

DianeP

LCE
Principal III
May 23, 2023 10:54 AM UTC

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 III
May 23, 2023 11:14 AM UTC

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 11:46 AM UTC

Hello @Community member​ 

On STM32U5, FDCAN can run with 160MHz clock.

Regards

DianeP

MKash.1
MKash.1Author
Associate II
May 23, 2023 11:16 AM UTC


_legacyfs_online_stmicro_images_0693W00000bkfI6QAI.png