Is bitrate 100kBit/s possible with FlexCAN on i.MX6?

cancel
Showing results for 
Search instead for 
Did you mean: 

Is bitrate 100kBit/s possible with FlexCAN on i.MX6?

Jump to solution
291 Views
albrechtuhlmann
Contributor I

Hi all,

we have here equipment with CAN interface that needs a birate of 100000. The controller is a i.MX6Q. Can someone please help how to setup for 100kBbit/s? According to docs, I found only examples for 125kBit/s.

We can test with a Linux, but eventually the application will run under QNX OS, so I must understand how clocks and registers must be configured to achieve the effect. Many thanks.

-Albrecht

Labels (1)
Tags (2)
0 Kudos
1 Solution
52 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Albrecht

you can look at SDK can example and document

iMX6_Firmware_Guide.pdf included to it. For 100Kbit/s one can add

next codes to function can_update_bitrate()  file can.c

i.MX 6Series Platform SDK : Bare-metal SDK for the i.MX 6 series

        case KBPS_100:
            presdiv = 11; // sets sclk ftq to 30/12=2.5 MHz = PEclk/12
            ts = time_segments[17]; // 25 time quanta (25-8=17 for array ID)
            break;

IMX6DQRM p.1315 explains

FlexCan bitrate.jpg

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
52 Views
albrechtuhlmann
Contributor I

Thank you for your quick answer, it works for us!

0 Kudos
53 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Albrecht

you can look at SDK can example and document

iMX6_Firmware_Guide.pdf included to it. For 100Kbit/s one can add

next codes to function can_update_bitrate()  file can.c

i.MX 6Series Platform SDK : Bare-metal SDK for the i.MX 6 series

        case KBPS_100:
            presdiv = 11; // sets sclk ftq to 30/12=2.5 MHz = PEclk/12
            ts = time_segments[17]; // 25 time quanta (25-8=17 for array ID)
            break;

IMX6DQRM p.1315 explains

FlexCan bitrate.jpg

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos