<?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: S32k144 LIN checksum always in classic mode when enhanced was selected in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1531196#M7711</link>
    <description>&lt;P&gt;Hey has there been any update on this? Has anyone experienced a similar issue or replicated this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2022 15:34:27 GMT</pubDate>
    <dc:creator>ruihang_wu</dc:creator>
    <dc:date>2022-09-30T15:34:27Z</dc:date>
    <item>
      <title>S32k144 LIN checksum always in classic mode when enhanced was selected</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1512535#M7627</link>
      <description>&lt;P&gt;I am using a S32K144 EVB as a LIN slave. I am using Vector Canalyzer to send 5 different LIN messages. Two for sending data to the EVB, and 3 for requesting data from the EVB.&lt;/P&gt;&lt;P&gt;The issue I'm seeing is the checksum on the response from the EVB is always calculated in classic mode no matter what option I pick in the LIN config block. I need the checksum to be in enhanced mode. The data itself in the message from the EVB are correct.&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="ruihang_wu_0-1661536933326.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/191467iAB8A5417B7E4A184/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ruihang_wu_0-1661536933326.png" alt="ruihang_wu_0-1661536933326.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It can be best seen in the message with ID 4. The data bytes are all 0 so the classic checksum is 255 but the enhanced checksum would take into account the PID and the checksum should be 59&lt;/P&gt;&lt;P&gt;It can also be confirmed with a LIN checksum calculator here: &lt;A href="https://linchecksumcalculator.machsystems.cz/" target="_blank" rel="noopener"&gt;https://linchecksumcalculator.machsystems.cz/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have went through the "intro to LIN block" training here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/design/training/introducing-the-lin-communication-blocks-of-the-nxp-mbdt:TIP-INTRODUCING-THE-LIN-COMMUNICATION-BLOCKS?SAMLart=ST-AAF0E3YJDJej%2BJVBprc7Vu5rkUdez%2BNuI4SANBuH3%2FUZG45tTBFozVx7" target="_blank" rel="noopener"&gt;https://www.nxp.com/design/training/introducing-the-lin-communication-blocks-of-the-nxp-mbdt:TIP-INTRODUCING-THE-LIN-COMMUNICATION-BLOCKS?SAMLart=ST-AAF0E3YJDJej%2BJVBprc7Vu5rkUdez%2BNuI4SANBuH3%2FUZG45tTBFozVx7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And I noticed in that video at 23:43 the checksum type is selected as enhanced and at 25:47 the PLIN viewer shows the received checksum as classic&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ruihang_wu_1-1661536062362.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/191462iE4D3A6C9D6779B46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ruihang_wu_1-1661536062362.png" alt="ruihang_wu_1-1661536062362.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a model with just the LIN portion responding with constant data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My system layout&lt;/P&gt;&lt;P&gt;Hardware: S32K144 EVB, Vector CANalyzer&lt;/P&gt;&lt;P&gt;Software: MATLAB Version 9.7 (R2019b), Simulink Version 10.0 (R2019b), Model-Based Design Toolbox for S32K1xx Series Version 4.2.0 (R2016a-R2020a)&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 18:02:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1512535#M7627</guid>
      <dc:creator>ruihang_wu</dc:creator>
      <dc:date>2022-08-26T18:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 LIN checksum always in classic mode when enhanced was selected</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1531196#M7711</link>
      <description>&lt;P&gt;Hey has there been any update on this? Has anyone experienced a similar issue or replicated this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 15:34:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1531196#M7711</guid>
      <dc:creator>ruihang_wu</dc:creator>
      <dc:date>2022-09-30T15:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 LIN checksum always in classic mode when enhanced was selected</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1532763#M7721</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/144167"&gt;@ruihang_wu&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you very much for reporting this!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/177536"&gt;@stefancinipeanu&lt;/a&gt;&amp;nbsp;started to investigate your reported behavior.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 15:51:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1532763#M7721</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2022-10-05T15:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 LIN checksum always in classic mode when enhanced was selected</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1547751#M7775</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/144167"&gt;@ruihang_wu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I apologize for the late response. I have investigated the problem regarding the checksum value in enhanced mode for LIN communication and it looks like a problem in the SDK for the LIN driver. The function that computes the checksum should take all data bytes and add them modulo 256 together. In enhanced mode also the PID should be took in this computation. But the SDK function ignores the PID in classical and also in enhanced mode.&lt;/P&gt;
&lt;P&gt;I have modified a source file that contains the function that computes the checksum. You can test the functionality by copying the file into "&lt;STRONG&gt;{toolbox_path}\src\S32_Platform_SDK\platform\drivers\src\lpuart&lt;/STRONG&gt;". Then try to build your application as usual.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if it works.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Stefan.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 12:43:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1547751#M7775</guid>
      <dc:creator>stefancinipeanu</dc:creator>
      <dc:date>2022-11-02T12:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 LIN checksum always in classic mode when enhanced was selected</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1552037#M7827</link>
      <description>&lt;P&gt;I tried it out and it indeed seem to work. Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 14:34:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1552037#M7827</guid>
      <dc:creator>ruihang_wu</dc:creator>
      <dc:date>2022-11-10T14:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: S32k144 LIN checksum always in classic mode when enhanced was selected</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1602305#M8030</link>
      <description>&lt;P&gt;I think I found that another workaround to this issue is to actually select the "Classic" checksum type and leave the "Classic PIDs list" at the default "0" value.&amp;nbsp; Apparently even when "Classic" is selected, only the PIDs in the "Classic PIDs list" use the Classic checksum and all the rest use Enhanced.&amp;nbsp; Fixing the driver C code is the better solution, but this can work as a quick fix:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="andyknitt_0-1676938767278.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/211628i88F84609AD9280EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="andyknitt_0-1676938767278.png" alt="andyknitt_0-1676938767278.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 00:20:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1602305#M8030</guid>
      <dc:creator>andyknitt</dc:creator>
      <dc:date>2023-02-21T00:20:11Z</dc:date>
    </item>
    <item>
      <title>回复： S32k144 LIN checksum always in classic mode when enhanced was selected</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1865163#M9087</link>
      <description>&lt;P&gt;Thank you，I had the same problem.The problem has been resolved using your method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 08:26:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32k144-LIN-checksum-always-in-classic-mode-when-enhanced-was/m-p/1865163#M9087</guid>
      <dc:creator>Even1</dc:creator>
      <dc:date>2024-05-14T08:26:59Z</dc:date>
    </item>
  </channel>
</rss>

