Skip to main content
jgauthier
Senior
May 27, 2022
Solved

STM32H745 FDCAN Clock Frequency

  • May 27, 2022
  • 4 replies
  • 3443 views

Greetings,

I've been using FDCAN on STM32G0B boards at 64Mhz. I'm trying to configure an STM32H745 and it seems that the maximum clock frequency for FDCAN is 50MHz?

0693W00000Nqmk3QAB.png 

50Mhz itself is a very strange frequency and bitrates cannot be solved well using this frequency.

With some clock tweaking I was able to get it to 48Mhz. But I wasn't able to send/receive on my FDCAN network (I'm not sure if that is related)

Just looking for some thoughts on that. I am going to try 32Mhz next.

This topic has been closed for replies.
Best answer by mƎALLEm

This is where to choose the voltage scale in CubeMx:

0693W00000NqrI4QAJ.png

4 replies

mƎALLEm
Technical Moderator
May 30, 2022

Hello,

According the pop-up you provided, I think you're in VOS3.

According to the reference manual RM399 rev3/Table 61 Kernel clock distribution overview, FDCAN kernel clock should not exceed 50MHz when the voltage scale is in VOS3:

0693W00000NqrFyQAJ.pngSo in order to have higher kernel frequency for FDCAN please select higher Voltage scale in RCC menu and choose the right system frequency that matches your voltage scale.

Also be careful about choosing the timing parameters. Please refer to this thread.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
mƎALLEm
mƎALLEmBest answer
Technical Moderator
May 30, 2022

This is where to choose the voltage scale in CubeMx:

0693W00000NqrI4QAJ.png

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
jgauthier
jgauthierAuthor
Senior
May 31, 2022

Ah, thank you! I was able to set this to VOS2, and set the frequency to 64Mhz. Now communication is working.

mƎALLEm
Technical Moderator
May 31, 2022

Thank you for the feedback.

Could you please mark the answer that resolved your issue by selecting "Select as best". This will help other users find that answer faster.

Thank you.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
KennyD
Associate
November 26, 2024

Hi:

I'm new to using STM32 processors. I have a board with a STM32H745BIT3 processor. I'm having an extremely difficult time getting an initial FDCAN project configured. I'd like it to communicate with a laptop that uses a USB PEAK CAN FD adapter. The laptop will be running PEAKPCAN View. I have not been successful converting single core based ioc files to an ioc file for my H745 initial project. Any help would be greatly appreciated.

mƎALLEm
Technical Moderator
November 26, 2024

Hello @KennyD ,

As this thread has been closed, I invite you to open a new thread on which you describe your request.

Also you need to describe in details what you need to achive, bitrate? CAN classic? CAN FD?

And you need to share your board schematics especially the CAN part. You need for sure an external Crystal for CAN communication.

Thank you.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."