arduino-CAN
arduino-CAN copied to clipboard
Logic analyser
When sending CAN messages with the libary. The logic analyser cannot analyse it it only finds CAN errors speeds are set correctly.
There are many things that can be wrong here. Logic analyser sampling speed shall be at least 10x the CAN bus speed to get reliable results. When not sending any frame, the level shall be high.
I've found that the MCP2515 baudrate is incorrect. CAN.begin(500E3) on MCP2515 sets the baudrate to 250k and my analyser can decode at this speed. CAN.begin(500E3) on ESP32 works as expected.