<?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: Calculating a CRC32 for program code over multiple pages via prm instructions in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Calculating-a-CRC32-for-program-code-over-multiple-pages-via-prm/m-p/141680#M2744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks very much for your answer - not what I was hoping for but there you go. Is there any chance that Metrowerks will extend the checksum functionality in the future?&lt;/DIV&gt;&lt;DIV&gt;Steve&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2007 07:44:50 GMT</pubDate>
    <dc:creator>Stephen</dc:creator>
    <dc:date>2007-08-03T07:44:50Z</dc:date>
    <item>
      <title>Calculating a CRC32 for program code over multiple pages via prm instructions</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Calculating-a-CRC32-for-program-code-over-multiple-pages-via-prm/m-p/141678#M2742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I have&amp;nbsp;an application whose program code spans&amp;nbsp;several 16k&amp;nbsp;pages of Banked ROM.&lt;/DIV&gt;&lt;DIV&gt;I am trying to use the prm CHECKSUM instruction to calculate a CRC32 value for the program code, however I cannot find the right syntax for the CHECKSUM block to do this.&lt;/DIV&gt;&lt;DIV&gt;I have tried the following:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CHECKSUM&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHECKSUM_ENTRY&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; METHOD_CRC32&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; READ_ONLY&amp;nbsp;&amp;nbsp; 0x4004 TO 0x7FFF, 0xC000 TO 0xFFFF&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp;&amp;nbsp;&amp;nbsp; READ_ONLY&amp;nbsp;&amp;nbsp; 0x4000&amp;nbsp;SIZE 4&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNDEFINED 0xFF&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; END&lt;BR /&gt;END&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;and&lt;/DIV&gt;&lt;DIV&gt;CHECKSUM&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHECKSUM_ENTRY&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; METHOD_CRC32&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; READ_ONLY&amp;nbsp;&amp;nbsp; 0x4004 TO 0x7FFF&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; READ_ONLY&amp;nbsp;&amp;nbsp; 0xC000 TO 0xFFFF&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp;&amp;nbsp;&amp;nbsp; READ_ONLY&amp;nbsp;&amp;nbsp; 0x4000&amp;nbsp;SIZE 4&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNDEFINED 0xFF&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; END&lt;BR /&gt;END&lt;BR /&gt;Both generate error message from the linker&lt;/DIV&gt;&lt;DIV&gt;I am currently Code Warrior running version 4.5&lt;/DIV&gt;&lt;DIV&gt;Any suggestion please?&lt;/DIV&gt;&lt;DIV&gt;Steve&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 07:36:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Calculating-a-CRC32-for-program-code-over-multiple-pages-via-prm/m-p/141678#M2742</guid>
      <dc:creator>Stephen</dc:creator>
      <dc:date>2007-07-31T07:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a CRC32 for program code over multiple pages via prm instructions</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Calculating-a-CRC32-for-program-code-over-multiple-pages-via-prm/m-p/141679#M2743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; You cannot&amp;nbsp;compute a checksum across page boundary.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; You need to define a CHECKSUM_ENTRY block for each page you are using in your PRM file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Checksum calculation cannot be performed on non-contiguous memory area.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Also you cannot have several memory areas specified in a CHECKSUM_ENTRY block.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 13:39:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Calculating-a-CRC32-for-program-code-over-multiple-pages-via-prm/m-p/141679#M2743</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-07-31T13:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a CRC32 for program code over multiple pages via prm instructions</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Calculating-a-CRC32-for-program-code-over-multiple-pages-via-prm/m-p/141680#M2744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks very much for your answer - not what I was hoping for but there you go. Is there any chance that Metrowerks will extend the checksum functionality in the future?&lt;/DIV&gt;&lt;DIV&gt;Steve&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 07:44:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Calculating-a-CRC32-for-program-code-over-multiple-pages-via-prm/m-p/141680#M2744</guid>
      <dc:creator>Stephen</dc:creator>
      <dc:date>2007-08-03T07:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a CRC32 for program code over multiple pages via prm instructions</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Calculating-a-CRC32-for-program-code-over-multiple-pages-via-prm/m-p/141681#M2745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;That would be a feature request (or a change request).&lt;/DIV&gt;&lt;DIV&gt;I would recommend you to submit a service request for that through our web interface to ask for this extension.&lt;BR /&gt;&lt;BR /&gt;Click &lt;A href="https://www.freescale.com/webapp/servicerequest.create_SR.framework?regFlag=fromOpenSR" rel="nofollow" target="_blank"&gt;here&lt;/A&gt; to submit a service request.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 12:46:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Calculating-a-CRC32-for-program-code-over-multiple-pages-via-prm/m-p/141681#M2745</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-08-03T12:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a CRC32 for program code over multiple pages via prm instructions</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Calculating-a-CRC32-for-program-code-over-multiple-pages-via-prm/m-p/141682#M2746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;What's the gain of having a single checksum for two areas compared to 2 checksums for two separate areas?&lt;BR /&gt;In the end the code computing the checksum at runtime has to know the boundaries of the two areas explicitely anyway. I doubt that the single checksum area uses less flash as it explicitely has to combine the two checksum while the 2 checksum version can just reuse the same code twice.&lt;BR /&gt;&lt;BR /&gt;It's a different story when we have 10 pages with the same range in each page, then a combined checksum would help a bit, but I doubt much.&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 18:09:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Calculating-a-CRC32-for-program-code-over-multiple-pages-via-prm/m-p/141682#M2746</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2007-08-03T18:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a CRC32 for program code over multiple pages via prm instructions</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Calculating-a-CRC32-for-program-code-over-multiple-pages-via-prm/m-p/141683#M2747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Simple - the reason is that the customer specification asks that we give a single CRC32&amp;nbsp;checksum for the complete code.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 07:59:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Calculating-a-CRC32-for-program-code-over-multiple-pages-via-prm/m-p/141683#M2747</guid>
      <dc:creator>Stephen</dc:creator>
      <dc:date>2007-08-14T07:59:55Z</dc:date>
    </item>
  </channel>
</rss>

