Dear Rogerio,
Problem solved after applying 0001-ENGR00169603-MX53-ARD-FlexCAN-Set-lp_apm-as-clock-so.patch
Thank you!
Dear Rogerio,
I met one problem when using FlexCAN on i.mx536 processor.
The FlexCAN driver is compiled following your notes and they were done successfully.
http://www.imxdev.org/wiki/index.php?title=All_Boards_FlexCAN
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?
Thank you!
Rgds,
Paul