Skip to main content
Visitor II
March 3, 2024
Question

How to enable CAN device driver on the STM32MP135F-DK

  • March 3, 2024
  • 1 reply
  • 1989 views

Hi

 

I plan to use CAN communication on the development board, but I have encountered some issues.

Modified stm32mp135f-dk.dts based on the instructions on the wiki.

wiki:FDCAN device tree configuration 

xinmeng_wit_0-1709469151023.png

However, the stm32mp13-pinctrl.dtsi file does not define the m_can2_pins_a and m_can2_sleep_pins_a nodes.

How should I specify the pins of CAN?

    This topic has been closed for replies.

    1 reply

    Visitor II
    March 4, 2024

    u should add &m_can2 {
    clocks = <&scmi_clk CK_SCMI_HSE>, <&rcc FDCAN_K>;
    };

    ngoctoan150699_0-1709529869737.pngngoctoan150699_1-1709529886819.png

     

    Visitor II
    March 6, 2024

    Okay, clocks should indeed be added to the dts file, but how should I specify pinctrl-0 and pinctrl-1?

    The stm32mp13-pinctrl.dtsi file does not define the m_can2_pins_a and m_can2_sleep_pins_a nodes

     

     

    Visitor II
    March 7, 2024

     How to manage OpenSTLinux projects in STM32CubeIDE - stm32mpu

    STM32CubeIDE - stm32mpu

    You should install openstlinux according to the link above, then configure CAN in stm32cubeide, then deploy to stm32mp1 board

    ngoctoan150699_1-1709780019636.png

     

    ngoctoan150699_0-1709779910090.png