CAN Bitrate does not match commanded bitrate [Linux][Socket CAN]
I have enabled the FD-CAN device in the device tree with the following entry
&m_can2 {
pinctrl-names = "default", "sleep"; Template:Highlight
pinctrl-0 = <&m_can2_pins_a>; Template:Highlight
pinctrl-1 = <&m_can2_sleep_pins_a>; Template:Highlight
status = "okay"; Template:Highlight
};upon booting Linux I run the following commands to initalize the interface to a bit rate of 500,000
ip link set can1 type can bitrate 500000
ip link set up can1and send a can message using the can-utils binaries with.
cansend can1 3E8#112233Using a Saleae Logic analyzer I capture the following waveform which the bit-time measures out to be around 1.91 microseconds. Performing the inverse of this measurement provides the measured bit-rate to be 523,560 bps which is nowhere near the 500,000 I commanded.
I assume I have a clocking error somewhere but i haven't changed any of the clocking settings. What am I doing wrong?
