2024-03-03 04:42 AM
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
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?
2024-03-03 09:27 PM
u should add &m_can2 {
clocks = <&scmi_clk CK_SCMI_HSE>, <&rcc FDCAN_K>;
};
2024-03-06 05:28 AM
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
2024-03-06 06:58 PM
How to manage OpenSTLinux projects in STM32CubeIDE - stm32mpu
You should install openstlinux according to the link above, then configure CAN in stm32cubeide, then deploy to stm32mp1 board