Forums › Reference, Evaluation, and Development Boards › CAN communication
Hi,
I am using the OSD32MP1-RED with a debian image and I want to use the CAN communication. Is enabled in the device tree the related hardware or is necessary add some change in the .dts file? If any modification is necessary, what would it be?
Thanks in advance.
amolina,
OSD32MP1-RED comes with a CAN transceiver on board connected to MP1. Please see Sheet 6 of OSD32MP1-RED schematics here: https://octavosystems.com/docs/osd32mp15x-red-schematic-pdf/. The CAN interface of the board is exposed via JP8 header.
The device tree support for CAN interface already exists in Debian/OpenSTLinux images. Please see https://github.com/octavosystems/osd32mp1-build-tools/blob/master/patches/linux-5.10/0024-Add-OSD32MP1-RED-Device-tree-support.patch#L1466 for the device tree entry.
To verify that you have a functioning CAN interface on board, you can execute “dmesg | grep can”. This will give you kernel messages that set up the CAN interface and whether there was an error.
Here are some links that you will find useful:
https://wiki.st.com/stm32mpu/wiki/How_to_set_up_a_SocketCAN_interface
https://wiki.st.com/stm32mpu/wiki/How_to_send_or_receive_CAN_data
https://wiki.st.com/stm32mpu/wiki/CAN_overview
Best,
Neeraj
Octavo Systems LLC all rights reserved
OCTAVO is registered in the U.S. Patent and Trademark Office. OSD, C-SiP, and the Octavo Logo are trademarks of Octavo Systems LLC.
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields