Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3831

Troubleshooting • Re: CAN (mcp2515) doesn't work on RPi 5

$
0
0
Hello Michadl,

I'm currently stck with some errors sending can0 from RPI5 to STM32 and currently I'm doing some research. In my case it's clear that there is errors.

Consider check the bit timing settings. A lot of people had problems like this due to wrong timining configuration.

Code:

$ ip -s -d link show can03: 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 state ERROR-ACTIVE restart-ms 0           bitrate 500000 sample-point 0.875          tq 125 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1 brp 1          mcp251x: tseg1 3..16 tseg2 2..8 sjw 1..4 brp 1..64 brp_inc 1          clock 8000000           re-started bus-errors arbit-lost error-warn error-pass bus-off          0          0          0          3          6          0         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     RX:  bytes packets errors dropped  missed   mcast                        0       0      0       0       0       0     TX:  bytes packets errors dropped carrier collsns                      116      28      1       1       0       0 

Statistics: Posted by omarabdulaziz — Mon Feb 10, 2025 7:29 am



Viewing all articles
Browse latest Browse all 3831

Trending Articles