cancel
Showing results for 
Search instead for 
Did you mean: 

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

MKash.1
Associate II
 
18 REPLIES 18
Diane POMABIA
ST Employee

Hello @MK.1ashin​ 

what type of STM32 are you using ?

Regards

Diane

MKash.1
Associate II

stm32U575

MKash.1
Associate II

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

Diane POMABIA
ST Employee

@mk.1ashin​ 

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


_legacyfs_online_stmicro_images_0693W00000bkeyaQAA.pngRegards

Diane

MKash.1
Associate II

0693W00000bkf57QAA_image.png

MKash.1
Associate II

instead two 64 bytes packets

MKash.1
Associate II


_legacyfs_online_stmicro_images_0693W00000bkf5HQAQ.png

LCE
Principal

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

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.