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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,133 次查看
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!

标签 (1)
标记 (1)
0 项奖励
1 解答
1,121 次查看
Senlent
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
1 回复
1,122 次查看
Senlent
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

0 项奖励