I met one problem when using FlexCAN on i.mx536 processor.
The FlexCAN driver is compiled following your notes and they were done successfully.
The packets were also sent successfully from CAN1 to CAN0. But one thing was wrong: baudrate.
When using the default baudrate 500kbps, the signal wave came out to be 694.2kbps in oscilliscope.
When using the baudrate 250kbps, the signal wave came out to be 347.1kbps in oscilliscope.
It is believed that the bitrate divider algorithm mistake the clocksrc from 66.5MHz to be 48MHz in the software. But I cannot find where the problem in the software source code. Can you help me?