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

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

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

LCE
Principal II
May 24, 2023

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?

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

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

LCE
Principal II
May 24, 2023

Have you enabled transceiver delay compensation?

Tesla DeLorean
Guru
May 24, 2023

*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 VenmoUp vote any posts that you find helpful, it shows what's working..
LCE
Principal II
May 25, 2023

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.