autowp / arduino-mcp2515

Arduino MCP2515 CAN interface library
MIT License
795 stars 279 forks source link

Error Frames sending direction #61

Open Betacarotin opened 3 years ago

Betacarotin commented 3 years ago

When transmitting data with this Library I get randomly errorframes RX (so the device holding the library sending to other nodes). It occurs randomly and go onb for several minutes. The device still reads on CAN, just sending seems to be distorted.

I can´t identify hardware problems. Error frames are the following:

ECC 10 10 1000 CRC Sequence ECC 10 10 10 10 Data ECC 01 11 1000 CRC Delimiter ECC 1111 00 11 Tolerate Dominant Bits

Thankfull for any hints

tomek19991999 commented 1 year ago

I had the same problem. I fixed this by changing the oscillator from 8MHz to 16MHz in hardware. Then: mcp2515.setBitrate(CAN_500KBPS, MCP_16MHZ);