cancel
Showing results for 
Search instead for 
Did you mean: 

Clock Configuration for touchGFX with CAN FD on STM32H745I-DISCO

FARAWAY
Associate

Hello,

I am using the STM32H745I-DISCO board for my project, which requires both TouchGFX and CAN FD functionality. However, I am encountering an issue with the clock configuration.

I need to synchronize the Nominal Baud Rate to 500 kbps and the Data Baud Rate to 2000 kbps.

I configured the Nominal timing parameters as follows:

Prescaler: 4

Time Segment 1: 13

Time Segment 2: 2

SJW: 1

According to my calculations, the resulting Nominal Baud Rate should be 500 kbps, but STM32CubeIDE shows the calculated rate as 1250 kbps.

I suspect the issue lies in the Clock Configuration.
Could this be related to the FDCAN clock source or prescaler settings?

I would appreciate it if you could guide me on how to properly configure the clock settings for this use case.
Also, if there are any official documents, reference manuals, or recommended resources that explain how to correctly set up the clock configuration for FDCAN and TouchGFX on the STM32H7 series, please let me know.

Thank you in advance for your support.

2 REPLIES 2
Karl Yamashita
Principal

You need to know the FDCAN clock frequency. Then you can use this link to calculate the correct values

https://kvaser.com/support/calculators/can-fd-bit-timing-calculator/

 

I was told that if a devices starts to smoke, put the smoke back in. I guess I never got all the smoke because the device never worked afterwards.
Don't worry, I won't byte.
TimerCallback tutorial! | UART and DMA Idle tutorial!

If you find my solution useful, please click the Accept as Solution so others see the solution.
MHoll.2
Senior III

The timming depens on the FD CAN Input clock (in Your case this seems to be 80MHz), You can finde tis on the Clock Configuration page:

 

MHoll2_1-1752559694253.png