CAN on a203v2 with Jetson Xavier NX

Hello,

I am facing the issue on CAN usage with A203v2 (JetPack 5.0.2).

Basically here is the steps which i am doing:

sudo modprobe can 
sudo modprobe can-raw
sudo modprobe mttcan
sudo ip link set can0 up type can bitrate 500000 dbitrate 2000000 berr-reporting on fd on

the output from dmesg:

[ 2082.938095] 	 Message RAM Configuration
               	| base addr   |0x0c312000|
               	| sidfc_flssa |0x00000000|
               	| xidfc_flesa |0x00000040|
               	| rxf0c_f0sa  |0x000000c0|
               	| rxf1c_f1sa  |0x000009c0|
               	| rxbc_rbsa   |0x000009c0|
               	| txefc_efsa  |0x000009c0|
               	| txbc_tbsa   |0x00000a40|
               	| tmc_tmsa    |0x00000ec0|
               	| mram size   |0x00001000|
[ 2082.939105] Release 3.2.0 from 19.12.2014
[ 2082.942343] net can0: mttcan device registered (regs=0000000007faee8d, irq=48)
[ 2098.253860] mttcan c310000.mttcan can0: Bitrate set
[ 2098.254027] mttcan_controller_config: ctrlmode 30
[ 2098.254056] mttcan c310000.mttcan can0: Bitrate set
[ 2098.254984] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready

But when the i am trying to send a msg:

cansend can0 01a#11223344AABBCCDD 

and dmesg:

[ 2189.511427] mttcan_handle_bus_err: 5842 callbacks suppressed
[ 2189.511442] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 2189.511809] mttcan c310000.mttcan can0: IR 0x8010000 PSR 0x71b
[ 2189.512031] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 2189.512248] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x71b
[ 2189.512456] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 2189.512675] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x71b
[ 2189.512845] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 2189.513031] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x71b
[ 2189.513206] mttcan c310000.mttcan can0: Acknowledgement Error Detected
[ 2189.513384] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x71b
[ 2189.514030] mttcan c310000.mttcan can0: entered error warning state
[ 2189.514983] mttcan c310000.mttcan can0: entered error passive state

on the pins, that are marked as CAN_H and CAN_L on the pin description (https://files.seeedstudio.com/products/103110043/A203%20V2%20pin%20description.pdf) total silence, no any signals, just noise.

So how can i use CAN? may be there is some misconfiguration?

Hi,NikitaMankovskii:
We also received your question in the email. After repeated testing, we found that there is no problem, and we can communicate with USB normally. Perhaps you can check whether there is some problem in the connection of the hardware to cause the communication failure, such as loose USB ports and other factors. It seems that we have contacted you by email and answered your question :smiley: :smiley:

hi! thank you for the reply!

I did not get the part regarding “we can communicate with USB normally”, i am not using USB, i use the CAN on the 14PIN (W7) pins 13 and 11.

[quote=“Seeed_Jostar, post:2, topic:271486”]
Perhaps you can check whether there is some problem in the connection of the hardware to cause the communication failure
[/quote] I have a working CAN system, once i connect Jetson to it, the system turn down, i checked voltage on Pin 13 (CAN_H) i have -2.2V, after sending something(getting the error) it changes to -1.4V

In case it is working fine, can you tell me your devmem values for this addresses - 0x0c303010,0x0c303018, please

And can you please share the procedure you do to get CAN working, also the Jetpack verion, please

I will also check CAN workflow on another A203v2 board, which i have

I checked on another A203V2 with another Jetson with fresh setup Jetpack 5.0.2, exactly the same situation

Hi,
You can follow up the feedback in the email. Similarly, if I solve the problem, I will inform you as soon as possible

Hi! i do not have any emails, i have a feeling that i did miss click then i was sending that request :grimacing:
nikita.mankovskii @gmail.com

Hi,
“ i use the CAN on the 14PIN (W7) pins 13 and 11”
this is what we uses
There is no problem after testing,Follow-up questions can be sent to [email protected]

1 Like

hi! i sent one more email, since i did not have the previos