Hello everyone,
I was able to build the kernal following this link<;Kernel Customization — NVIDIA Jetson Linux Developer Guide 1 documentation
but i dont now how to run menuconfig to enable the mcp2515 in jetson-io.
appreciate any help.
Please check Controller Area Network (CAN) — NVIDIA Jetson Linux Developer Guide 1 documentation to see if can help.
Thanks , yes it seem very helpful,I will connect Tx and Rx and do the loop-back test.
Hi learnnew100,
Please verify SPI loopback test before you port MCP2515 on Jetson device.
You can also refer to Jetson Orin NX(JP5.1.2_R35.4.1) mcp2515 can1 can send data, can not recieve data - #10 by KevinFFF for the steps of the porting.
the out put come as expected after:
$ ip link set can0 type can bitrate 500000 loopback on
$ ip link set can0 up
$ candump can0 &
$ cansend can0 123#abcdabcd
ubuntu@ubuntu:~$ cansend can0 123#abcdabcd
can0 123 [4] AB CD AB CD
can0 123 [4] AB CD AB CD
but this output comes in all cases, if i short tx with rx or connect tx to gnd (j17), is that normal?
any help is appreciated
If you add loopback on
in your command, it is internal loopback test so that you don’t need to connect any external cable and it should work.
You can perform the CAN transmission between 2 CAN interfaces. (one from internal, another from your mcp2515).
I made a wiring from jetson, and i want to check before connecting a transceiver(TJA1049) so i shorted the Tx with Rx and I sent :
$sudo ip link set can0 up type can bitrate 500000 dbitrate 1000000 berr-reporting on fd on
$ sudo candump can0 &
$ cansend can0 123#abcdabcd
but i didn’t receive any data, what is my mistake?
It is the wrong connection.
For CAN communication, you should use CAN transceiver to transform CAN-TX/CAN-RX to CAN-H/CAN-L.
You can refer to Jetson/L4T/peripheral/ - Loopback test for 2 CAN interfaces for the connections.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.