Skip to main content
Associate
November 21, 2023
Question

No clock found for FDCAN STM32MP157D-DK1

  • November 21, 2023
  • 3 replies
  • 4707 views

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

This topic has been closed for replies.

3 replies

PatrickF
Technical Moderator
November 21, 2023

@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.NEW ! Sidekick STM32 AI agent, see here
michelmanAuthor
Associate
November 22, 2023

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
Technical Moderator
November 22, 2023

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.NEW ! Sidekick STM32 AI agent, see here
Erwan SZYMANSKI
Technical Moderator
December 11, 2023

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.