FlexCAN usage on i.MX

cancel
Showing results for 
Search instead for 
Did you mean: 

FlexCAN usage on i.MX

961 Views
rogerio_silva
NXP Employee
NXP Employee
Hi,

I posted some notes about FlexCAN on imxdev:

http://www.imxdev.org/wiki/index.php?title=All_Boards_FlexCAN

Or, on the left menu -> connectivity -> FlexCAN

It’s not so much, but may help someone to make the first step on FlexCAN.

Rgds,
Rogerio
Tags (2)
0 Kudos
2 Replies

50 Views
ripple
Contributor I

Dear Rogerio,


Problem solved after applying 0001-ENGR00169603-MX53-ARD-FlexCAN-Set-lp_apm-as-clock-so.patch


Thank you!

0 Kudos

50 Views
ripple
Contributor I

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

0 Kudos