cancel
Showing results for 
Search instead for 
Did you mean: 

No clock found for FDCAN STM32MP157D-DK1

michelman
Associate II

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

4 REPLIES 4
PatrickF
ST Employee

@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.

In order 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.

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

PatrickF
ST Employee

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.

In order 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.
Erwan SZYMANSKI
ST Employee

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.

In order 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.