2023-11-21 04:54 AM
Hi,
First of all, I am sure I am completely overlooking something, but I can´t seem to figure this out:
In CubeIDE I added the FDCAN1 peripheral for my STM32MP157D-DK1 board. I then added the device tree to the build. However, when the board has booted up, and I type: dmesg | grep m_can, I get the message:
m_can_platform 4400e000.can: no clock found
It therefore seems that no clock has been enabled for this peripheral. How can I enable the clock?
Thanks!
Michel
2023-11-21 07:57 AM
@Hi @michelman ,
please check https://wiki.st.com/stm32mpu/wiki/STM32MP15_clock_tree#Device_tree,
As there is no FDCAN on DK1/DK2 boards, maybe you should check how it is done on EV1 board
Regards.
2023-11-21 11:46 PM
Hi Patrick,
Thank you for the reply. I created the device tree using cubeIDE, so I would assume that the device tree is correct, but please have a look, as I have the files attached.
Thank you!
Regards,
Michel
2023-11-22 05:40 AM
Hi,
in st,clksrc , you are missing CLK_FDCAN_xxxx (e.g. CLK_FDCAN_PLL4R).
As a consequence, you likely does not have any fdcan_k entry if you do:
cat /sys/kernel/debug/clk/clk_summary
Regards.
2023-12-11 12:23 AM
Hello @michelman ,
The answer is given in the following post : https://community.st.com/t5/stm32-mpus-products/fdcan-can-not-start-no-clock-found/m-p/618224#M10606
Kind regards,
Erwan.