AnsweredAssumed Answered

why the Flexcan can't be set bitrate with 5000bps

Question asked by mio zhang on Jul 9, 2020
Latest reply on Jul 9, 2020 by mio zhang

Hello, is there someone can help me ? 

 

I get some problems when development with imx6ul processer, that i can't set the bitrate with 5000bps;

 

what i have done:

1. ifconfig can0 down 

2. canconfig can0 bitrate 5000

3. ifconfig can0 up

 

the kernel logs;

flexcan 2090000.can can0: writing ctrl=0xf93e2057
flexcan 2090000.can can0: flexcan_set_bittiming: mcr=0x5980000f ctrl=0xf93e2057
flexcan 2090000.can can0: flexcan_chip_start: writing mcr=0x7de20209
flexcan 2090000.can can0: flexcan_chip_start: writing ctrl=0xf93eac57

 

 

bitrate details:

2: can0: <NOARP,ECHO> mtu 16 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 10
link/can promiscuity 0
can state STOPPED (berr-counter tx 0 rx 0) restart-ms 0
bitrate 5000 sample-point 0.708
tq 8333 prop-seg 8 phase-seg1 8 phase-seg2 7 sjw 1
flexcan: tseg1 4..16 tseg2 2..8 sjw 1..4 brp 1..256 brp-inc 1
clock 30000000
re-started bus-errors arbit-lost error-warn error-pass bus-off
0 0 0 0 0 0
RX: bytes packets errors dropped overrun mcast
0 0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
0 0 0 0 0 0

Outcomes