R32 (release),REVISION: 7.1; ubuntu18.04LTS
sudo ip link set can1 type can bitrate 1000000 sample-point 0.8 dbitrate 5000000 dsample-point 0.8 fd on restart-ms 100
Terminal display:
nvidia@nvidia-desktop:~$ ip -s -d link show can1
10: can1: <NOARP,UP,LOWER_UP,ECHO> mtu 72 qdisc pfifo_fast state UP mode DEFAULT group default qlen 10
link/can promiscuity 0
can <BERR-REPORTING,FD> state ERROR-ACTIVE (berr-counter tx 0 rx 125) restart-ms 100
bitrate 1000000 sample-point 0.794
tq 29 prop-seg 13 phase-seg1 13 phase-seg2 7 sjw 1
mttcan: tseg1 2…255 tseg2 0…127 sjw 1…127 brp 1…511 brp-inc 1
dbitrate 4857142 dsample-point 0.714
dtq 29 dprop-seg 2 dphase-seg1 2 dphase-seg2 2 dsjw 1
mttcan: dtseg1 1…31 dtseg2 0…15 dsjw 1…15 dbrp 1…15 dbrp-inc 1
clock 34000000
re-started bus-errors arbit-lost error-warn error-pass bus-off
0 4127 0 1 799 0 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
RX: bytes packets errors dropped overrun mcast
101408 6479 4127 0 0 0
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0
question:set the dbitrate 5000000,but show 4857142 ?
There may be several reasons:
1.the Clock is wrong,maybe pllaon, not pll_c;
2.the tcan332G baud rate limit ,could not set 5000000;
3.other reasons
please help me,thank you!