S32 Flexcan baud rate is equal to 1000K, send failed!

cancel
Showing results for 
Search instead for 
Did you mean: 

S32 Flexcan baud rate is equal to 1000K, send failed!

Jump to solution
196 Views
chenms2004
Contributor I

Hi, Hello!

        Recently, I was debugging the flexcan module driver。 When the PE clock is 40MHZ, the Flexcan module can work normally when the baud rate is 500K, but when the baud rate is 1000K, the third-party can equipment displays all error frames; We don't understand the reason; The specific register configuration is as follows:

Baud rate = 500K configuration   :  PRESDIV=4, RJW=3,PROPSEG=6,PSEG1= 3, PSEG2=3;

Baud rate = 1000K configuration:   PRESDIV=1, RJW=3,PROPSEG=10,PSEG1= 3, PSEG2=3;

Looking forward to your reply, thank you!

Labels (1)
Tags (1)
0 Kudos
1 Solution
184 Views
Senlent
NXP Employee
NXP Employee

Hi@chenms2004

    PROPSEG should be not more than 7, so the second configuration was error.

    Try this configuration: 

    PRESDIV = 3,RJW = 3,PROPSEG = 4,PSEG1 = 1,PSEG2 = 1;

    Above configuration are works fine on my S32K142EVB.

   Senlent_0-1634524553589.png

 

BR!

      Jim,

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
185 Views
Senlent
NXP Employee
NXP Employee

Hi@chenms2004

    PROPSEG should be not more than 7, so the second configuration was error.

    Try this configuration: 

    PRESDIV = 3,RJW = 3,PROPSEG = 4,PSEG1 = 1,PSEG2 = 1;

    Above configuration are works fine on my S32K142EVB.

   Senlent_0-1634524553589.png

 

BR!

      Jim,

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos