2022-05-27 10:33 AM
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?
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.
Solved! Go to Solution.
2022-05-30 04:22 AM
This is where to choose the voltage scale in CubeMx:
2022-05-30 04:19 AM
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:
So 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.
2022-05-30 04:22 AM
This is where to choose the voltage scale in CubeMx:
2022-05-31 05:09 AM
Ah, thank you! I was able to set this to VOS2, and set the frequency to 64Mhz. Now communication is working.
2022-05-31 05:33 AM
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.