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?