<?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: Question Regarding LIN Baud Rate Deviation on S32K312 in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Question-Regarding-LIN-Baud-Rate-Deviation-on-S32K312/m-p/2263135#M55426</link>
    <description>&lt;P&gt;Hi Daniel, &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I am using RTD version SW32K3_RTD_4.4_2.0.2_D2211. I am aware that this is a relatively old version, but given the current project progress, switching to a new version is not an easy task. &amp;nbsp; I have rechecked the clock-related configurations in MCAL. As shown in the attached image, the reason for selecting the above clock configuration is as follows: according to the reference manual, all LPUART instances except LPUART0 should use ALPS_SLOW_CLK. Additionally, my Core_CLOCK is 120 MHz. Following Option B in the chip manual, I configured AIPS_PLAT_CLK and AIPS_SLOW_CLK to 60 MHz and 30 MHz, respectively. Then, LIN references AIPS_SLOW_CLK, which is 30 MHz. I believe this configuration should be correct. However, the current phenomenon indicates that the actual clock frequency is apparently higher than 30 MHz, leading to a higher calculated baud rate.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dongxun_0-1765846296291.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370100i2DAFF15C12907211/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dongxun_0-1765846296291.png" alt="dongxun_0-1765846296291.png" /&gt;&lt;/span&gt;&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="dongxun_1-1765846316145.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370101iB1C6D672CA7344AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dongxun_1-1765846316145.png" alt="dongxun_1-1765846316145.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached are my configuration files for your reference.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Dec 2025 00:58:08 GMT</pubDate>
    <dc:creator>dongxun</dc:creator>
    <dc:date>2025-12-16T00:58:08Z</dc:date>
    <item>
      <title>Question Regarding LIN Baud Rate Deviation on S32K312</title>
      <link>https://community.nxp.com/t5/S32K/Question-Regarding-LIN-Baud-Rate-Deviation-on-S32K312/m-p/2262453#M55381</link>
      <description>&lt;P&gt;Dear NXP Support Team, &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am a developer working with the S32K312 MCU and have a question regarding LIN communication configuration. &amp;nbsp; &amp;nbsp; When configuring the LIN driver using EB Tresos 28.2 and RTD 4.4.2 for the S32K312, I set the baud rate to 19200 bps. However, during communication testing, CANoe displays the master's actual baud rate as approximately 19530 bps. &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dongxun_0-1765787307854.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/369932i37CC8276C72E66FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dongxun_0-1765787307854.png" alt="dongxun_0-1765787307854.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This represents a deviation of about 1.7% from the configured value, which exceeds the LIN 2.1 specification requirement of less than 0.5% deviation between actual and nominal baud rates.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dongxun_1-1765787331807.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/369933iAF24521ECFAD8886/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dongxun_1-1765787331807.png" alt="dongxun_1-1765787331807.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;SPAN&gt;understand that the actual LPUART baud rate is calculated based on SBR and OSR values. &lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dongxun_2-1765787353268.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/369934iA84B89DFE4695AE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dongxun_2-1765787353268.png" alt="dongxun_2-1765787353268.png" /&gt;&lt;/span&gt;&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="dongxun_3-1765787366925.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/369935i430A2D764C96F669/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dongxun_3-1765787366925.png" alt="dongxun_3-1765787366925.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With my current clock configuration of 30MHz, some calculation deviation is expected. My specific questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are there recommended methods to minimize this deviation and better align the actual baud rate with the configured value?&lt;/LI&gt;&lt;LI&gt;Is adjusting the clock frequency the only available solution, or are there other configuration approaches I could consider?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I would greatly appreciate your expert advice on this matter. Thank you for your time and support. Best regards, dongxun&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 08:32:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Question-Regarding-LIN-Baud-Rate-Deviation-on-S32K312/m-p/2262453#M55381</guid>
      <dc:creator>dongxun</dc:creator>
      <dc:date>2025-12-15T08:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding LIN Baud Rate Deviation on S32K312</title>
      <link>https://community.nxp.com/t5/S32K/Question-Regarding-LIN-Baud-Rate-Deviation-on-S32K312/m-p/2262905#M55418</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247897"&gt;@dongxun&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You should achieve 19181.6 bps with the following configuration:&lt;/P&gt;
&lt;P&gt;OSR: 16&lt;BR /&gt;SBR: 92&lt;/P&gt;
&lt;P&gt;30MHz / (92 + 17) =&amp;nbsp;19181.6&amp;nbsp;bps&lt;/P&gt;
&lt;P&gt;Which RTD version are you using? You mentioned the AUTOSAR version, but not the RTD version.&lt;BR /&gt;It appears that the generated values for OSR and SBR are incorrect.&lt;BR /&gt;Could you confirm whether the LPUART clock reference in the MCU driver is really set to 30 MHz?&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;</description>
      <pubDate>Mon, 15 Dec 2025 14:27:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Question-Regarding-LIN-Baud-Rate-Deviation-on-S32K312/m-p/2262905#M55418</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-12-15T14:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding LIN Baud Rate Deviation on S32K312</title>
      <link>https://community.nxp.com/t5/S32K/Question-Regarding-LIN-Baud-Rate-Deviation-on-S32K312/m-p/2263135#M55426</link>
      <description>&lt;P&gt;Hi Daniel, &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I am using RTD version SW32K3_RTD_4.4_2.0.2_D2211. I am aware that this is a relatively old version, but given the current project progress, switching to a new version is not an easy task. &amp;nbsp; I have rechecked the clock-related configurations in MCAL. As shown in the attached image, the reason for selecting the above clock configuration is as follows: according to the reference manual, all LPUART instances except LPUART0 should use ALPS_SLOW_CLK. Additionally, my Core_CLOCK is 120 MHz. Following Option B in the chip manual, I configured AIPS_PLAT_CLK and AIPS_SLOW_CLK to 60 MHz and 30 MHz, respectively. Then, LIN references AIPS_SLOW_CLK, which is 30 MHz. I believe this configuration should be correct. However, the current phenomenon indicates that the actual clock frequency is apparently higher than 30 MHz, leading to a higher calculated baud rate.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dongxun_0-1765846296291.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370100i2DAFF15C12907211/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dongxun_0-1765846296291.png" alt="dongxun_0-1765846296291.png" /&gt;&lt;/span&gt;&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="dongxun_1-1765846316145.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/370101iB1C6D672CA7344AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dongxun_1-1765846316145.png" alt="dongxun_1-1765846316145.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached are my configuration files for your reference.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2025 00:58:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Question-Regarding-LIN-Baud-Rate-Deviation-on-S32K312/m-p/2263135#M55426</guid>
      <dc:creator>dongxun</dc:creator>
      <dc:date>2025-12-16T00:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Question Regarding LIN Baud Rate Deviation on S32K312</title>
      <link>https://community.nxp.com/t5/S32K/Question-Regarding-LIN-Baud-Rate-Deviation-on-S32K312/m-p/2263492#M55455</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247897"&gt;@dongxun&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The clock signal can be monitored on the CLKOUT pin.&lt;BR /&gt;This is the most reliable method to verify that the clock is configured correctly.&lt;/P&gt;
&lt;P&gt;Have you tried updating the generated file with the following values?&lt;/P&gt;
&lt;P&gt;OSR: 16&lt;BR /&gt;SBR: 92&lt;/P&gt;
&lt;P&gt;After initializing the LPUART, check the actual register settings and measure the baud rate again.&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>Tue, 16 Dec 2025 09:11:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Question-Regarding-LIN-Baud-Rate-Deviation-on-S32K312/m-p/2263492#M55455</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2025-12-16T09:11:00Z</dc:date>
    </item>
  </channel>
</rss>

