Tool/software:
Hi
Below are what we done to enable the lookback function, but we can not receive any data. can you help review our steps below if any thing wrong ?
1. We have successful initialized the driver
1.350269] tcan4x5x spi0.0 can0: TCAN4X5X successfully initialized.
2. Open CAN0 with below instruction
ip link set can0 down
ip link set can0 type can bitrate 500000 loopback on
ip link set can0 up
ip -details link show can0
candump can0 &
3. send data to CAN0 with below instruction, but we do no see any data at CAN0
cansend can0 123#DEADBEEF
We had checked the loopback was enable correctly but no data at CAN0
below is what we check
ip link set can0 type can bitrate 500000 loopback on
ip link set can0 up
2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP mode DEFAULT group default qlen 10
link/can promiscuity 0 allmulti 0 minmtu 0 maxmtu 0
can <LOOPBACK> state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
bitrate 500000 sample-point 0.875
tq 25 prop-seg 34 phase-seg1 35 phase-seg2 10 sjw 1 brp 1
m_can: tseg1 2..256 tseg2 2..128 sjw 1..128 brp 1..512 brp_inc 1
m_can: dtseg1 1..32 dtseg2 1..16 dsjw 1..16 dbrp 1..32 dbrp_inc 1
clock 40000000 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 tso_max_size 65536 tso_max_segs 65535 gro_max_size 65536 parentbus spi parentdev spi0.0
