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
MKash.1
Associate II


_legacyfs_online_stmicro_images_0693W00000bkfI6QAI.png

Hello @Community member​ 

On STM32U5, FDCAN can run with 160MHz clock.

Regards

DianeP

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

Regards

DianeP

MKash.1
Associate II

So, why last working BR=2500KB/s?

LCE
Principal

Have you enabled transceiver delay compensation?

What do you exactly mean?

You have set nominal bitrate to 2.5M and it is "working"?

Working with what on the other side? Or just some output on the scope?

Yes, I have 2 boards (MASTER-SLAVE) and they work perfectly on BR=2.5M

*THIS*

We covered this a few months ago, don't recall if it was for the U5, probably H7, but definitely found and provided 8 Mbit FDCAN initialization example.

Sort of s**t the code generator or boiler plate code should have mastery of...

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

TDC was definitely a problem I had on a H7 at 8Mbit, and I had a long thread about it.

I'm actually using direct register settings, and I even enabled TDC. But what I oversaw was that I also had to set a delay value in TDCR...

@MK.1ashin​  HAL_FDCAN_ConfigTxDelayCompensation() handles all of that.