The frequency of the crystal.connected to your MCP2515.
If I set
And using these commands, the CAN frame can be received, and the bitrate is half of the rate being set to MCP2515, why is that?
Also, if I use this script, the device can’t be detected
I changed the setup_slcan to set the slcan0 bitrate to 125000, now The node can be detected, but I still have no clue why the bitrate is half of the speed being set in MCP2515
What is the frequency of the clock supplied to your MCP2515?
No, I am asking about the hardware configuration. The symptoms suggest that the clock is not actually 16 MHz. Can you measure it directly?
I can’t really measure the frequency, but I can give you the configuration being set to the registers.
These are the registers being set to CNF1 - CNF3
Try 250kBPS_8MHz, that should fix the frequency problem.
Thank you! Now it works.
I sure love looking at screenshots of code written by myself
.
1 Like





