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!
Solved! Go to Solution.
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.
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.
-------------------------------------------------------------------------------
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.
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.
-------------------------------------------------------------------------------