Skip to main content
Associate II
August 27, 2024
Solved

Why can't I modify the clock value associated with the fdcan in stm32h753VIT6?

  • August 27, 2024
  • 7 replies
  • 2998 views

Hello

 

I'm currently trying to change the classic CAN into FDCAN, but when i try to change the clock source of FDCAN (which is PLL1Q) from 50Mhz to 80Mhz to use FDCAN, the clock configuration keeps giving the message "wrong parameter values" when i try to generate it.

In the datasheet of stm32h753VIT6, it says 

"The clock calibration on CAN unit is designed to operate under the following conditions:
• a CAN kernel clock frequency fdcan_ker_ck up of at least 80 MHz"

which means the clock of FDCAN must be setted to at least 80MHz, so the clock must be setted to 80MHz in order to use FDCAN.

At this clock setting, the only thing that uses the PLL1Q setting is FDCAN, so why can't I use values above 50MHz?

 

I'll attach the ioc file that is associated with this issue.

 

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

Hello,

The answer is simply in the RM0433 / Table 60. Kernel clock distribution overview:

SofLit_0-1724764308936.png

The max kernel clock depends on the Voltage scale you set for the power.

Your system clock is set to 200MHz -> VOS3 -> FDCAN max ker frequency = 50MHz.

So increase your system clock for example at 400MHz you can reach up to 100MHz as FDCAN source clock.

Hope I answered your question.

 

7 replies

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
August 27, 2024

Hello,

The answer is simply in the RM0433 / Table 60. Kernel clock distribution overview:

SofLit_0-1724764308936.png

The max kernel clock depends on the Voltage scale you set for the power.

Your system clock is set to 200MHz -> VOS3 -> FDCAN max ker frequency = 50MHz.

So increase your system clock for example at 400MHz you can reach up to 100MHz as FDCAN source clock.

Hope I answered your question.

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
KDGAuthor
Associate II
August 29, 2024

Thanks for your answer, I found out the reason why i can't use the 100Mhz at fdcan.

But according to that Table 60, To use the FDCAN in 100Mhz, the required Voltage Scale Must be VOS1

which means i have to change VOS3 to VOS1

Is this correct?

Or should i just change the system clock into 400Mhz to solve my problem?

mƎALLEm
ST Technical Moderator
August 29, 2024

The voltage scale configuration depends on the System frequency.

So you can't just simply change VOS3 to VOS1.

This is also given in the datasheet:

SofLit_0-1724918326775.png

You can ask: but these are Max frequencies so I can set VOS1 and keep the system frequency to 200MHz it works but this has two drawbacks:

- Increase the power consumption.

- Accelerate the product aging.

That's why you need to follow the table.

 

 

 

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