S32K LIN issue

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

S32K LIN issue

200 Views
linton
Contributor II

HI NXP team,

I use the S32K148 LIN driver, the setting  is master and baud rate is 19200 as below picture show:

 

linton_0-1719975297521.png

and the content I send are:   the LIN ID: 0x0C;    service is transmit message;   data length: 8

data: 0x17 0x06 0xff 0xff 0xff 0xff 0xff 0xff;

I use the method as below:

1. send the header first: 

linton_1-1719975720514.png

2. then in the callback function: send the content:

linton_2-1719975805185.png

 

now the problem happen, I use the oscilloscope to check the wave, it looks different with the standard machine(ExxoTEST,  third party machine). as below show:

linton_3-1719976139776.png

the R2 channel( the top wave) is Exxotest send data wave

the C1 channel(the middle wave) is the third party send data wave

the R1 channel(the bottom wave)is the NXP S32K 148 send data wave

the R2 and C1 channel are almost the same, so I think this waveform is right.

the S32K 148 LIN send data looks not right. Do you have any idea what case this problem??

 

 

 

 

Tags (1)
0 Kudos
Reply
5 Replies

178 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

it seems data sent are similar, just bitrate is little bit slower. Check clock used for baud clock. If for example FIRC is selected, used rather SOSC.

BR, Petr

0 Kudos
Reply

166 Views
linton
Contributor II

Hi petrS,

I change the LPUART1_CLK as you recommend, see below photo:

linton_0-1720057407632.pnglinton_1-1720057444880.png

the waveform is almost the same, did not have any improvement.

I also try the other 3 clock as below show:

linton_2-1720057587329.png

linton_3-1720057611263.png

linton_5-1720057790080.png

 

the waveform almost the same, so I have to do next to fix this issue??

Thanks for you quick reply.

 

 

 

 

0 Kudos
Reply

117 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

measure actual bitrate generated, compare with other tools. Share values programmed in LPUART registers.
Is some LIN analyzer able to decode a frame, are payload the same?

BR, Petr

0 Kudos
Reply

112 Views
linton
Contributor II

Hi PetrS,

measure actual bitrate generated, compare with other tools. Share values programmed in LPUART registers.
Is some LIN analyzer able to decode a frame, are payload the same?

 

1.The actual bitrate is slower than setting(19.2K);

2.Share values programmed in LPUART registers.  you mean in debug mode, show you the LPUART registers??

3. the LIN analyzer is able to decode the frame,  the payload is all the same.

 

Why I raise this issue,  because sometimes the S32K148 board as master node,  the slave node can not receive the content. Is it possible the sync field wave form not good then cause this issue??

0 Kudos
Reply

99 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I wanted to know exact bit time measured for generated signal and actual content of LPUART registers, to know bitrate setting.
If bitrate is different too much, then slave can have issue to sync to a frame. However frame is correct if it is properly detected by analyzer.

BR, Petr

0 Kudos
Reply