Hi Karis,
You do not have to add this code:
gpio@2200000 {
mcp2515_init {
gpio-hog;
input;
gpios = <TEGRA194_MAIN_GPIO(Y, 4) 0x1>;
label = “mcp2515_init”;
status = “okay”;
};
};
};
Just add below line also :
spi@3230000{
interrupt-parent = <&gpio>;
};
Hi Karis,
Can you try wth only MCP via loopback to check if MCP is fine?
short SPI_MOSI and MISO
and use:sudo ip link set can0 type can bitrate 500000 loopback on
sudo ip link set can0 up
candump can0 &
cansend can0 123#abcdabcd
Hi Karis,
Yes that is correct.
Sorry, as SPI on MCP, you do not need to short pins.
So MCP in fine on NX right?
Now, can0 is connected to NX CAN port via transceiver?
Now, can0 is connected to NX CAN port via transceiver?
Yes,if I use “ifconfig -a” command,I can see the can0.
I used two platforms( NX with our carrier board),that could send and receive data from two platforms.
Hi,
I am still confused with the setup.
NX has SPI and CAN both.
On SPI, you have connected CAN1 which is working fine on loopback.
The other CAN0, how it is connected? Is it connected to the CAN port of Jetson-NX? From CAN0 port of NX, you have connected transceiver then?
Our carrier board has one can port,and one SPI port.
CAN:connect to NX canbus port.
can0(connect transceiver at our carrier board).
SPI : connect to NX spi port.
Use mcp2515(can1)
Hi Karis,
Thanks for the info.
We have not yet varied this setup (MTTCAN with MCP251x). And now as we do not have physical access to the board, it may take time to fix your problem.
@shgarg I’m also trying to use the MCP2515 on the Xavier-NX. I’ve read through this thread but I failing to understand how/where to set it up on the software side… I’m really new to this .dts, pinmux thing…
Can you kindly provide a step by step instruction (preferably with commands, directories, etc.) on how to setup the software/system so I can use the MCP2515