<?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: how to check image CRC in MCX Microcontrollers</title>
    <link>https://community.nxp.com/t5/MCX-Microcontrollers/how-to-check-image-CRC/m-p/1898394#M529</link>
    <description>&lt;P&gt;Hi Victor,&lt;/P&gt;
&lt;P&gt;SEC tool uses SPSDK application nxpimage to build a CRC bootable image. You can see generated build script to find, how the nxpimage tool is used.&lt;/P&gt;
&lt;P&gt;See &lt;STRONG&gt;main menu &amp;gt; Help &amp;gt; SPSDK Online Documentation&lt;/STRONG&gt; for nxpimage documentation.&lt;/P&gt;
&lt;P&gt;SPSDK is opensource, so you can find implementation details in GitHub.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 12:14:47 GMT</pubDate>
    <dc:creator>marek-trmac</dc:creator>
    <dc:date>2024-07-03T12:14:47Z</dc:date>
    <item>
      <title>how to check image CRC</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/how-to-check-image-CRC/m-p/1898325#M528</link>
      <description>&lt;P&gt;I have an image built using the MCUXpresso Secure Provisioning Tool.&lt;/P&gt;&lt;P&gt;It's a plain image with a CRC,&lt;BR /&gt;and the &lt;FONT face="courier new,courier"&gt;offsetToExtendedHeader &lt;/FONT&gt;field(address 0x00000028) contains the 4bytes CRC checksum value.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="victorchiou_1-1720002177605.png" style="width: 656px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286883i145A13AB73166953/image-dimensions/656x115?v=v2" width="656" height="115" role="button" title="victorchiou_1-1720002177605.png" alt="victorchiou_1-1720002177605.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I want to check the CRC before writing it to flash.&lt;BR /&gt;I tried to calculate it using these settings,&lt;BR /&gt;but I cannot match the CRC with the &lt;FONT face="courier new,courier"&gt;offsetToExtendedHeader&lt;/FONT&gt; field.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="victorchiou_0-1720001430811.png" style="width: 532px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286864i6EFC0688DB869C2C/image-dimensions/532x105?v=v2" width="532" height="105" role="button" title="victorchiou_0-1720001430811.png" alt="victorchiou_0-1720001430811.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;(ref: Kinetis Bootloader v2.0.0 Reference Manual&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;Is there any tool available to calculate the image CRC (like nxpimage and blhost)? Alternatively, where can I find more details about calculate the image CRC?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 10:27:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/how-to-check-image-CRC/m-p/1898325#M528</guid>
      <dc:creator>victorchiou</dc:creator>
      <dc:date>2024-07-03T10:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to check image CRC</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/how-to-check-image-CRC/m-p/1898394#M529</link>
      <description>&lt;P&gt;Hi Victor,&lt;/P&gt;
&lt;P&gt;SEC tool uses SPSDK application nxpimage to build a CRC bootable image. You can see generated build script to find, how the nxpimage tool is used.&lt;/P&gt;
&lt;P&gt;See &lt;STRONG&gt;main menu &amp;gt; Help &amp;gt; SPSDK Online Documentation&lt;/STRONG&gt; for nxpimage documentation.&lt;/P&gt;
&lt;P&gt;SPSDK is opensource, so you can find implementation details in GitHub.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 12:14:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/how-to-check-image-CRC/m-p/1898394#M529</guid>
      <dc:creator>marek-trmac</dc:creator>
      <dc:date>2024-07-03T12:14:47Z</dc:date>
    </item>
    <item>
      <title>回复： how to check image CRC</title>
      <link>https://community.nxp.com/t5/MCX-Microcontrollers/how-to-check-image-CRC/m-p/1899456#M531</link>
      <description>&lt;P&gt;Hi Marek&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I found the &lt;FONT face="courier new,courier" color="#0000FF"&gt;Mbi_ExportMixinCrcSign&lt;/FONT&gt;&amp;nbsp;function&lt;BR /&gt;and the CRC algorithm in the nxpimage tool, which is part of SPSDK.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="victorchiou_0-1720086599812.png" style="width: 679px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/287093i48832B46785A3261/image-dimensions/679x449?v=v2" width="679" height="449" role="button" title="victorchiou_0-1720086599812.png" alt="victorchiou_0-1720086599812.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Based on the above algorithm,&lt;BR /&gt;I created a python program to verify the image CRC,&lt;BR /&gt;and it works.&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 10:04:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCX-Microcontrollers/how-to-check-image-CRC/m-p/1899456#M531</guid>
      <dc:creator>victorchiou</dc:creator>
      <dc:date>2024-07-04T10:04:34Z</dc:date>
    </item>
  </channel>
</rss>

