<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: S32K311 Lpuart_Lin Slave always returns RX_HEADER_ERROR / RX_OVERRUN_ERROR in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2127237#M50488</link>
    <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;Sorry, I’m still getting used to the S32DS interface.&lt;BR /&gt;Could you please explain in more detail what you meant by the system clock error?&lt;BR /&gt;How should I correctly configure it to 48 MHz?&lt;/P&gt;&lt;P&gt;Currently, I’m trying to receive 1 byte of LIN data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="LeCroy3.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345754i8CD3A29E9C0FCC4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="LeCroy3.jpg" alt="LeCroy3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eventually, I plan to work with 8 bytes of LIN data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="LeCroy4.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345755i9B58E2C703466E85/image-size/large?v=v2&amp;amp;px=999" role="button" title="LeCroy4.jpg" alt="LeCroy4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Johns&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jul 2025 11:36:44 GMT</pubDate>
    <dc:creator>johns_chuang</dc:creator>
    <dc:date>2025-07-02T11:36:44Z</dc:date>
    <item>
      <title>S32K311 Lpuart_Lin Slave always returns RX_HEADER_ERROR / RX_OVERRUN_ERROR</title>
      <link>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2126817#M50462</link>
      <description>&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;We are trying to enable the Lpuart_Lin (Slave) functionality on the S32K311, and we are referencing the example Lin_Ip_FrameTransfer_S32K344, using Lpuart_Lin_Ip_Init and Lpuart_Lin_Ip_GetStatus.&lt;/P&gt;&lt;P&gt;After the Master transmits a LIN frame:&lt;BR /&gt;[0x00, 0xFF, 0x80, 0x11, 0x6E]&lt;/P&gt;&lt;P&gt;The return status from Lpuart_Lin_Ip_GetStatus remains stuck at LPUART_LIN_IP_STATUS_RX_HEADER_ERROR.&lt;/P&gt;&lt;P&gt;Additionally, in the interrupt callback LpuartSlaveCallback, the status is always LPUART_LIN_IP_RX_OVERRUN_ERROR.&lt;/P&gt;&lt;P&gt;Do you have any suggestions on what we should check, or recommended changes we could try?&lt;/P&gt;&lt;P&gt;Thank you in advance for your support.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Johns&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 04:24:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2126817#M50462</guid>
      <dc:creator>johns_chuang</dc:creator>
      <dc:date>2025-07-02T04:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: S32K311 Lpuart_Lin Slave always returns RX_HEADER_ERROR / RX_OVERRUN_ERROR</title>
      <link>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2126821#M50464</link>
      <description>&lt;P&gt;Sorry, Sync was wrong. Correct LIN signal: [0x00, 0x55, 0x80, 0x11, 0x6E], ID is 0x00.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 04:40:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2126821#M50464</guid>
      <dc:creator>johns_chuang</dc:creator>
      <dc:date>2025-07-02T04:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: S32K311 Lpuart_Lin Slave always returns RX_HEADER_ERROR / RX_OVERRUN_ERROR</title>
      <link>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2127034#M50477</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/81923"&gt;@johns_chuang&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The RX_HEADER_ERROR you're encountering is likely due to a timing mismatch..&lt;/P&gt;
&lt;P&gt;Have you had a chance to measure the LIN signal using an oscilloscope?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I reviewed the system clock configuration in your test project and noticed that it is not set up correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1751445179432.png" style="width: 542px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345659iEF889E3518E42384/image-dimensions/542x256?v=v2" width="542" height="256" role="button" title="danielmartynek_1-1751445179432.png" alt="danielmartynek_1-1751445179432.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to have CORE_CLK = 48MHz, use&amp;nbsp;Option D - Low-Speed Run mode (CORE_CLK @ 48 MHz), RM rev10,&amp;nbsp;Table 162.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1751445151989.png" style="width: 545px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345657i9B8C28C10C55F4D7/image-dimensions/545x301?v=v2" width="545" height="301" role="button" title="danielmartynek_0-1751445151989.png" alt="danielmartynek_0-1751445151989.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 08:35:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2127034#M50477</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-07-02T08:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: S32K311 Lpuart_Lin Slave always returns RX_HEADER_ERROR / RX_OVERRUN_ERROR</title>
      <link>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2127237#M50488</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;Sorry, I’m still getting used to the S32DS interface.&lt;BR /&gt;Could you please explain in more detail what you meant by the system clock error?&lt;BR /&gt;How should I correctly configure it to 48 MHz?&lt;/P&gt;&lt;P&gt;Currently, I’m trying to receive 1 byte of LIN data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="LeCroy3.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345754i8CD3A29E9C0FCC4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="LeCroy3.jpg" alt="LeCroy3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eventually, I plan to work with 8 bytes of LIN data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="LeCroy4.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345755i9B58E2C703466E85/image-size/large?v=v2&amp;amp;px=999" role="button" title="LeCroy4.jpg" alt="LeCroy4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Johns&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 11:36:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2127237#M50488</guid>
      <dc:creator>johns_chuang</dc:creator>
      <dc:date>2025-07-02T11:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: S32K311 Lpuart_Lin Slave always returns RX_HEADER_ERROR / RX_OVERRUN_ERROR</title>
      <link>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2127282#M50494</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/81923"&gt;@johns_chuang&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Before we can proceed further, the system clock configuration must be corrected - use the S32DS GUI (configuration tool).&lt;/P&gt;
&lt;P&gt;Please note that NXP does not guarantee the functionality of the MCU if the ratios between the system clock domains deviate from an approved configuration. Using unsupported clock settings may lead to unpredictable behavior.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1751461552906.png" style="width: 675px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345763iA567444EAE11F5FA/image-dimensions/675x130?v=v2" width="675" height="130" role="button" title="danielmartynek_0-1751461552906.png" alt="danielmartynek_0-1751461552906.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If your target is to run CORE_CLK at 48 MHz, you must configure all system clocks according to Table 162, Option D – Low-Speed Run mode (as per RM Rev. 10).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 13:08:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2127282#M50494</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-07-02T13:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: S32K311 Lpuart_Lin Slave always returns RX_HEADER_ERROR / RX_OVERRUN_ERROR</title>
      <link>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2127666#M50514</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;Clock has been fixed, but the issue still persists. Could you kindly advise what I should check next?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for your support.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johns_chuang_0-1751508607543.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345871iE2F7A4C00CC69952/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johns_chuang_0-1751508607543.png" alt="johns_chuang_0-1751508607543.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCU：S32K311&lt;/P&gt;&lt;P&gt;S32DS ver. 3.6.2&lt;/P&gt;&lt;P&gt;SDK：RlatformSDK_S32K3_S32K311_M7 v5.0.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Johns&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 02:15:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2127666#M50514</guid>
      <dc:creator>johns_chuang</dc:creator>
      <dc:date>2025-07-03T02:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: S32K311 Lpuart_Lin Slave always returns RX_HEADER_ERROR / RX_OVERRUN_ERROR</title>
      <link>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2130003#M50666</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/81923"&gt;@johns_chuang&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'm sorry for the delay.&lt;/P&gt;
&lt;P&gt;What is the baud rate of the LIN signal?&amp;nbsp;Can you measure that?&lt;/P&gt;
&lt;P&gt;Also, can you share the LPUART_0 registers after initialization?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 08:52:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2130003#M50666</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-07-08T08:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32K311 Lpuart_Lin Slave always returns RX_HEADER_ERROR / RX_OVERRUN_ERROR</title>
      <link>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2130068#M50671</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;The LIN baud rate is 19200 bps.&lt;/P&gt;&lt;P&gt;Are you referring to the LPUART_0 registers shown in this image?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johns_chuang_0-1751969979358.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346514i0FD8E89B5ED7842E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johns_chuang_0-1751969979358.png" alt="johns_chuang_0-1751969979358.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Johns&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 10:20:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2130068#M50671</guid>
      <dc:creator>johns_chuang</dc:creator>
      <dc:date>2025-07-08T10:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: S32K311 Lpuart_Lin Slave always returns RX_HEADER_ERROR / RX_OVERRUN_ERROR</title>
      <link>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2131669#M50783</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/81923"&gt;@johns_chuang&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I finally managed to reproduce the issue during testing.&lt;/P&gt;
&lt;P&gt;It turns out the problem was not related to the clock configuration after all.&lt;/P&gt;
&lt;P&gt;I was able to replicate the issue on my EVB. To do so, I had to switch the LIN hardware to UART2 (PTD6, PTD7).&lt;/P&gt;
&lt;P&gt;Once I removed all custom interrupt handling, the communication started working correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1752146622977.png" style="width: 771px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346985iBB75E38AFA6F6C1F/image-dimensions/771x297?v=v2" width="771" height="297" role="button" title="danielmartynek_0-1752146622977.png" alt="danielmartynek_0-1752146622977.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;These are the changes:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1752146674941.png" style="width: 747px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346987iF550EB71F459953E/image-dimensions/747x131?v=v2" width="747" height="131" role="button" title="danielmartynek_1-1752146674941.png" alt="danielmartynek_1-1752146674941.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You need to select the handler from Lpuart_Lin_Ip_Irq.c&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_2-1752146718615.png" style="width: 616px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346988i1875FDB4B9D2ADBE/image-dimensions/616x70?v=v2" width="616" height="70" role="button" title="danielmartynek_2-1752146718615.png" alt="danielmartynek_2-1752146718615.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 11:29:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2131669#M50783</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-07-10T11:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: S32K311 Lpuart_Lin Slave always returns RX_HEADER_ERROR / RX_OVERRUN_ERROR</title>
      <link>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2134103#M50919</link>
      <description>Hi Daniel, Do you know why I can only read the first byte? The BUFFER_SIZE in LinLpuartPdu is set to 3, but I’m only able to read the first byte — the remaining two bytes are both 0.</description>
      <pubDate>Tue, 15 Jul 2025 10:50:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2134103#M50919</guid>
      <dc:creator>johns_chuang</dc:creator>
      <dc:date>2025-07-15T10:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: S32K311 Lpuart_Lin Slave always returns RX_HEADER_ERROR / RX_OVERRUN_ERROR</title>
      <link>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2134124#M50920</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/81923"&gt;@johns_chuang&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please create a new thread and describe it in details.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 11:05:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K311-Lpuart-Lin-Slave-always-returns-RX-HEADER-ERROR-RX/m-p/2134124#M50920</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-07-15T11:05:38Z</dc:date>
    </item>
  </channel>
</rss>

