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
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:
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.
Let me know if this helps you.
Best Regards,
Alexis Andalon