cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable CAN device driver on the STM32MP135F-DK

xinmeng_wit
Associate

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?

3 REPLIES 3
ngoctoan150699
Associate III

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

ngoctoan150699_0-1709529869737.pngngoctoan150699_1-1709529886819.png

 

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

 

 

 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