2024-09-13 03:03 AM - last edited on 2024-09-13 03:27 AM by SofLit
good morning. I want to implement a can loopback on my STM32H755, but when I enable FCAN1, then my clock can't resolve it issues and shows this for FDCAN in the picture below. how could I resolve this problem?
Solved! Go to Solution.
2024-09-13 05:03 AM - edited 2024-09-13 05:04 AM
@Jad wrote:
than you very much for the quick response
those are the values I found. I do not know how to understand the values and adjustate the timer.
No these are the values for the power consumption.
You need to set the voltage scale according to the system frequency, from DS12919 Rev 2:
Based on that voltage scale (VOS) level, you can know what is the maximum allowed kernel clock frequency you can set for FDCAN:
2024-09-13 03:27 AM - edited 2024-09-13 04:52 AM
Hello,
You need to check the reference manual and check your system frequency as well as what voltage scale (VOS) configuration you set:
Could you please share your ioc file?
2024-09-13 04:50 AM
than you very much for the quick response
those are the values I found. I do not know how to understand the values and adjustate the timer.
2024-09-13 05:03 AM - edited 2024-09-13 05:04 AM
@Jad wrote:
than you very much for the quick response
those are the values I found. I do not know how to understand the values and adjustate the timer.
No these are the values for the power consumption.
You need to set the voltage scale according to the system frequency, from DS12919 Rev 2:
Based on that voltage scale (VOS) level, you can know what is the maximum allowed kernel clock frequency you can set for FDCAN:
2024-09-13 05:11 AM
i want to share to you my doc file but I do not find it. is it because I am using stm IDE and not CUBEMX?
2024-09-13 05:45 AM
Compress your project in .7z fromat and attach it in this discussion.
2024-09-13 05:55 AM
2024-09-13 06:09 AM - edited 2024-09-13 06:54 AM
You set a System clock from HSI at 64MHz.
This frequency corresponds to VOS3 since 64MHz < 200MHz:
And from this table:
The maximum kernel frequency for FDCAN is 50MHz for VOS3:
And this is the error pop-up from CubeMx is showing indicating that the max FDCAN ker clock is 50MHz which corresponds to what mentioned in the datasheet:
So, need either to increase the system clock by using the PLL or set PLL1 DIVQ1 to 4 so the FDCAN ker clock will be @40MHz.
By the way, I don't recommend HSI as clock source for CAN/FDCAN communication in Normal mode.
Hope I answered your question.
2024-09-14 01:14 AM
thank you for the response, I put 50 mHz for the fdCAN and I took an external crystal clock. unfortunately, when I access the hal_fdcan document I do not understand why my functions are crossed
2024-09-14 08:43 AM
Sorry I didn't understand your last question. Which document? What you are showning is the project browser menu. You need to set FDCAN at least in one Core and Activate it and then compile.
If it persists, please open a new thread.
Did your original issue has been solved according the recommendations I provided? if yes please kindly accept as solution the comment that answerd your question.