i am trying to read data coming from can bus of stm32 to jetson xavier nx model p3518 .
i followed this Enabling CAN on Nvidia Jetson Xavier Developer Kit | by Ramin Nabati | Medium. in enable_CAN.sh i removed all the line concerning can1 .
my conncetion are:
nx 5v to TJ1050 vcc
gnd to gnd of tj1050
pin 29 to tx of tj1050
pin31 to rx of tj1050
s@ts-desktop:~$ candump -x any &
[1] 22731
ts@ts-desktop:~$ ifconfig
can0: flags=193<UP,RUNNING,NOARP> mtu 72
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)
RX packets 13 bytes 104 (104.0 B)
RX errors 10 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 1 overruns 0 carrier 1 collisions 0
device interrupt 46
dmesg --follow has
20867.796690] tegradc 15200000.display: unblank
[20867.796721] tegradc 15210000.display: blank - powerdown
[22894.664921] mttcan c310000.mttcan can0: Bitrate set
[22894.665052] mttcan_controller_config: ctrlmode 30
[22894.665079] mttcan c310000.mttcan can0: Bitrate set
[22894.665092] mttcan c310000.mttcan can0: wait for bus off seq
[22894.677753] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[23278.654913] mttcan c310000.mttcan can0: Bit0 Error Detected
[23278.655116] mttcan c310000.mttcan can0: IR 0x8010000 PSR 0x785
[23278.655286] mttcan c310000.mttcan can0: Bit0 Error Detected
[23278.655430] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x785
[23278.655588] mttcan c310000.mttcan can0: Bit0 Error Detected
[23278.655731] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x785
[23278.655893] mttcan c310000.mttcan can0: Bit0 Error Detected
[23278.656064] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x785
[23278.656243] mttcan c310000.mttcan can0: Bit0 Error Detected
[23278.656387] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x785
[23278.656562] mttcan c310000.mttcan can0: Bit0 Error Detected
[23278.656702] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x785
[23278.656873] mttcan c310000.mttcan can0: Bit0 Error Detected
[23278.657015] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x785
[23278.657172] mttcan c310000.mttcan can0: Bit0 Error Detected
[23278.657314] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x7c5
[23278.657605] mttcan c310000.mttcan can0: Bit0 Error Detected
[23278.662498] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x7c5
[23278.668311] mttcan c310000.mttcan can0: Bit0 Error Detected
[23278.673899] mttcan c310000.mttcan can0: IR 0xa000000 PSR 0x70d
[23413.279535] mttcan c310000.mttcan can0: Bitrate set
[23518.008258] mttcan_controller_config: ctrlmode 31
[23518.008297] mttcan c310000.mttcan can0: Bitrate set
can anyone tell me how to read data
Hi bhalgesanika,
Are you using the devkit or custom board for Xavier NX?
What’s your Jetpack version in use?
It seems not the expected result to me.
PIN29 and PIN31 are not CAN TX/RX for p3509 devkit board.
The guide you referred to is on “AGX Xavier devkit” rather than “Xavier NX devkit”
I am using devkit with jetpack 5.1.2 . Could you please tell me what pins am I supposed to use.
For Xavier NX devkit, please connect your CAN device on J17 - Optional CAN Bus Header
.
You can refer to Controller Area Network (CAN) — Jetson Linux Developer Guide documentation (nvidia.com) to configure it.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.