Can bus issue using mcp2515

To avoid creating errors on the bus I would recommend to use Listen-Only mode of the MCP2515. This should allow you to receive all messages but your node will not take part of in the CAN protocol verification. Every active node will listen to all communication and create an error on the bus when it sees a protocol error. When your bitrate is not set correctly the CAN controller will see all messages on the bus as incorrect and create errors until the error counters are too high. Then it will assume it is faulty itself and stop for a while.

Depending on your library you may need stop your library from switching into Normal mode and set Listen-Only mode instead.

If you want to send CAN messages from your node you will need to use Normal mode.