2025-01-01 09:16 PM - edited 2025-01-01 09:18 PM
I enabled CAN in the device tree using STM32CubeMX and followed the instructions in the provided documentation to generate the .dtb file. Afterward, I copied the generated .dtb file to the /boot directory. In the terminal, I ran the following commands:
sync
reboot
After rebooting, I checked the dmesg log and found the following output when filtering for CAN-related messages:
dmesg | grep can
[ 0.451665] can: controller area network core
[ 0.451819] can: raw protocol
[ 0.451832] can: broadcast manager protocol
[ 0.451847] can: netlink gateway - max_hops=1
However, when I checked the available network interfaces can0 isn't avaliable
root@stm32mp1-e1-99-00:~# ls /sys/class/net
end0 lo usb0 wlan0
I have attached the dts file for reference
Solved! Go to Solution.
2025-01-03 12:59 AM
I found out that the OpenSTLinux was using stm32mp157c_extlinux.conf instead of stm32mp157f_extlinux.conf. I modified it to load the dts file. After updating the dts file with clocks configuration, can0 interface appeared
2025-01-03 12:59 AM
I found out that the OpenSTLinux was using stm32mp157c_extlinux.conf instead of stm32mp157f_extlinux.conf. I modified it to load the dts file. After updating the dts file with clocks configuration, can0 interface appeared