S32K Lin Slave Autobaud Error Question 

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K Lin Slave Autobaud Error Question 

812 Views
273584812
Contributor I

Deall All:

   I have a lin slave demo problem with my S32K116 EVB,I use S32DS expert atuo generate code.The RX input interrupt capture config is right ,When I run the project the result of function is always STATUS_ERROR,I enter the function I find the reason the buadrate result doesn't fit any result,I guess the problem is Callback result is wrong,I config my LPUART_CLK is 40Mhz,period is 500us,so the TIMER_COMPARE_VAL is 40*500u/1 = 20000,TICK_1US = 40/1 =4,The sender baudrate is 19200,slave received baudrate is 14400,Could you tell me where the problem is?

Upload the newest the picture,when get sync field,get value between two  bit the gap ,the value is wrong......

Thanks 

pastedImage_2.png

pastedImage_3.png

pastedImage_4.png

pastedImage_1.png

0 Kudos
1 Reply

721 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello,

Have you tried using the SDK examples that come with the S32K Design Studio? In the following option, you can take a look at these examples:

pastedImage_3.png

if you click in the Lin PE component you should be able to see the baud rate and configure it, be sure both, slave and master are at the same baud rate.

pastedImage_2.png

Let me know if this helps you.

Best Regards,

Alexis Andalon

0 Kudos