Hi,
I am having issues using the CAN Interface on a Jetson Xavier NX (from Syslogic) with Jetpack 4.6.
The communication works for 100kBit/s but not for 250kBit/s.
I am loading the interface with:
modprobe can
modprobe can_raw
modprobe mttcan
ip link set can0 type can bitrate 250000 restart-ms 1000
ifconfig can0 up
dmesg output:
[ 252.797096] can: controller area network core (rev 20120528 abi 9)
[ 252.798243] NET: Registered protocol family 29
[ 252.803492] can: raw protocol (rev 20120528)
[ 252.809478] CAN device driver interface
[ 252.815068] 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|
[ 252.815177] Release 3.2.0 from 19.12.2014
[ 252.815674] net can0: mttcan device registered (regs=ffffff800d8f7000, irq=64)
[ 252.822651] mttcan c310000.mttcan can0: Bitrate set
[ 252.831508] mttcan_controller_config: ctrlmode 0
[ 252.831652] mttcan c310000.mttcan can0: Bitrate set
[ 252.834423] IPv6: ADDRCONF(NETDEV_UP): can0: link is not ready
[ 252.834457] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[ 276.480843] mttcan c310000.mttcan can0: entered error warning state
[ 276.484034] mttcan c310000.mttcan can0: entered error passive state
clk_tree.txt (29.4 KB)
I also followed the instructions in: https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/clocks.html#wwpID0E06B0HA without sucess
Attached you find the clk_tree showing the can1 interface as child of pll_aon.