Agx xavier can bitrate set err

HI dear:

I used the agx xavier kit to set can ,below is the cmd

sudo busybox devmem 0x0c303000 32 0x0000C400
sudo busybox devmem 0x0c303008 32 0x0000C458

sudo busybox devmem 0x0c303010 32 0x0000C400

sudo busybox devmem 0x0c303018 32 0x0000C458

sudo modprobe can
sudo modprobe can_raw
sudo modprobe mttcan
sudo ip link set can0 type can bitrate 500000 loopback on
sudo ip link set can1 type can bitrate 500000 loopback on

sudo ip link set up can0
sudo ip link set up can1

then open one cmd line:
candump can0 &
cansend can0 123#5a

can0 can dump the send data.

use ip -d link show can0 cmd show
8: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP mode DEFAULT group default qlen 10
link/can promiscuity 0
can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
bitrate 498701 sample-point 0.870
tq 26 prop-seg 33 phase-seg1 33 phase-seg2 10 sjw 1
mttcan: tseg1 2…255 tseg2 0…127 sjw 1…127 brp 1…511 brp-inc 1
mttcan: dtseg1 1…31 dtseg2 0…15 dsjw 1…15 dbrp 1…15 dbrp-inc 1
clock 38400000numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535

but when i use oscilloscop watch the waveform, through measure,I find the fact bitrate is 166.7k bitrate,not 500k.

so why that?? thanks


the first png is the 166.7k bitrate can clocks.

the second png is the normal 500k bitrate can clocks

Sorry for the late response, is this still an issue to support? Thanks

thanks kayccc,I have solved the issue.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.