<?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: Flash CRC checksum calculation in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Flash-CRC-checksum-calculation/m-p/748897#M6586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Taimur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1. Calculate CRC of hex file and place it into particular memory location follow below link&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://embdsysbasics.blogspot.com/2018/12/hex-file-checksum-calculator-using.html" title="https://embdsysbasics.blogspot.com/2018/12/hex-file-checksum-calculator-using.html"&gt;HEX file CRC calculation using SREC Tool: Hex file CRC calculation using Srecord tool&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this link it clearly mentioned how to calculate CRC and place it into particular memory with steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q2.&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;On startup (reset), verify the corresponding CRC .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Load the hex file with CRC appended from Q1 to target.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Also write down a routine to calculate CRC using same algo. (e.g. CRC32).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Call same routine at startup/init function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Compare calculated CRC with Stored CRC (appended at particular address From Q1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2019 15:32:43 GMT</pubDate>
    <dc:creator>padmanabhlanke</dc:creator>
    <dc:date>2019-01-02T15:32:43Z</dc:date>
    <item>
      <title>Flash CRC checksum calculation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Flash-CRC-checksum-calculation/m-p/748895#M6584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm using Kinetis K10 and codewarriors 10.7 IDE. I wants to do the following:&lt;/P&gt;&lt;P&gt;- calculate CRC checksum of flash&lt;/P&gt;&lt;P&gt;- Place the calculated CRC checksum in .hex file&lt;/P&gt;&lt;P&gt;- On startup (reset), verify the corresponding CRC .&lt;/P&gt;&lt;P&gt;Can someone please guide me how to proceed further?&lt;/P&gt;&lt;P&gt;I tried the procedure described in&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2015/04/26/crc-checksum-generation-with-srecord-tools-for-gnu-and-eclipse/" title="https://mcuoneclipse.com/2015/04/26/crc-checksum-generation-with-srecord-tools-for-gnu-and-eclipse/"&gt;CRC Checksum Generation with ‘SRecord’ Tools for GNU and Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;without any success. I think I'm not able to follow above link properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Taimur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 17:14:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Flash-CRC-checksum-calculation/m-p/748895#M6584</guid>
      <dc:creator>taimurwajad123</dc:creator>
      <dc:date>2018-03-29T17:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Flash CRC checksum calculation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Flash-CRC-checksum-calculation/m-p/748896#M6585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Taimur,&lt;/P&gt;&lt;P&gt;About CRC Checksum caculation, you can use CRCgen under CW,&lt;/P&gt;&lt;P&gt;there is a document shows a demo how to do it :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-333431"&gt;How to use CRCgen in CodeWarrior for MCU&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the doc of "Targeting_Microcontrollers.pdf" (under the CW installation: CW MCU v10.7\MCU\Help\PDF)&lt;/P&gt;&lt;P&gt;-&amp;gt;18.1 Using CRCgen on Microcontrollers&amp;nbsp;&amp;nbsp; describe it in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it heps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 03:51:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Flash-CRC-checksum-calculation/m-p/748896#M6585</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-03-30T03:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Flash CRC checksum calculation</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Flash-CRC-checksum-calculation/m-p/748897#M6586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Taimur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1. Calculate CRC of hex file and place it into particular memory location follow below link&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://embdsysbasics.blogspot.com/2018/12/hex-file-checksum-calculator-using.html" title="https://embdsysbasics.blogspot.com/2018/12/hex-file-checksum-calculator-using.html"&gt;HEX file CRC calculation using SREC Tool: Hex file CRC calculation using Srecord tool&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this link it clearly mentioned how to calculate CRC and place it into particular memory with steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q2.&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;On startup (reset), verify the corresponding CRC .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Load the hex file with CRC appended from Q1 to target.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Also write down a routine to calculate CRC using same algo. (e.g. CRC32).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Call same routine at startup/init function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Compare calculated CRC with Stored CRC (appended at particular address From Q1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2019 15:32:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Flash-CRC-checksum-calculation/m-p/748897#M6586</guid>
      <dc:creator>padmanabhlanke</dc:creator>
      <dc:date>2019-01-02T15:32:43Z</dc:date>
    </item>
  </channel>
</rss>

