Skip to main content
Visitor II
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

    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.

    michelmanAuthor
    Visitor II
    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

    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.

    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.