<?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 Generate CRC by linker (ld) in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584338#M26232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tomkrysl on Sun Jan 15 06:05:44 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we're porting our existing application and bootloader to LPC now and I have problem to port following behavior from old architecture (Renesas NEC):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to generate checksum (CRC) by ld or another gnu tool and place it to the resulting intel hex file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The purpose is to check integrity of the application after loading to FLASH by my bootloader.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This boot loader calculates his own CRC after loading the application to FLASH and compare this with that one generated by ld.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any method to generate a CRC and to place it to resulting hex file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any documented one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I produce the hex file by objcopy. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remark: In post build steps there was sth. like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"checksum -p ${TargetChip} -d ${BuildArtifactFileBaseName}.bin;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;, but I didn't find any documentation about that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:09:27 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:09:27Z</dc:date>
    <item>
      <title>Generate CRC by linker (ld)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584338#M26232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tomkrysl on Sun Jan 15 06:05:44 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we're porting our existing application and bootloader to LPC now and I have problem to port following behavior from old architecture (Renesas NEC):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to generate checksum (CRC) by ld or another gnu tool and place it to the resulting intel hex file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The purpose is to check integrity of the application after loading to FLASH by my bootloader.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This boot loader calculates his own CRC after loading the application to FLASH and compare this with that one generated by ld.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any method to generate a CRC and to place it to resulting hex file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any documented one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I produce the hex file by objcopy. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remark: In post build steps there was sth. like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"checksum -p ${TargetChip} -d ${BuildArtifactFileBaseName}.bin;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;, but I didn't find any documentation about that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:09:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584338#M26232</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Generate CRC by linker (ld)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584339#M26233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Skashkash on Sun Jan 15 06:43:32 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You can probably use the srecord utility to calculate and insert a CRC into your .hex file. Not sure if the CRC formula will be the same one you use, but srecord has a few options for that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://srecord.sourceforge.net/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-skashkash&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:09:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584339#M26233</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Generate CRC by linker (ld)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584340#M26234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sun Jan 15 07:27:55 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: tomkrysl&lt;/STRONG&gt;&lt;BR /&gt;Remark: In post build steps there was sth. like:&lt;BR /&gt;"checksum -p ${TargetChip} -d ${BuildArtifactFileBaseName}.bin;"&lt;BR /&gt;, but I didn't find any documentation about that.&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt; (deleted smiley)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could be helpful to search issues like this at Code Red Wiki (deleted smiley)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;[B]Image Checksums (NXP LPC families) [/B]NXP parts&amp;nbsp; use a word in the vector table of the processor to store a checksum that&amp;nbsp; is examined by the bootloader to identify a valid image. For ARM7/ARM9&amp;nbsp; based parts this checksum word is stored at offset 0x14, for Cortex-M&amp;nbsp; based parts it is stored at offset 0x1C. &lt;BR /&gt;When downloading code via the debugger, this checksum word will be filled in automatically as the image is downloaded. &lt;BR /&gt;When&amp;nbsp; creating a binary file, you will need to ensure that you run the&amp;nbsp; supplied checksum utility to post-process the binary yourself. If you&amp;nbsp; modify the supplied post-build step to create your binary (as per the&amp;nbsp; FAQ &lt;A href="http://http://support.code-red-tech.com/CodeRedWiki/PostProcessApp"&gt;Post-processing your linked application&lt;/A&gt;, then this will normally be done automatically by the post-build step... &lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/OutputFormats&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:09:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584340#M26234</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generate CRC by linker (ld)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584341#M26235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tomkrysl on Sun Jan 15 12:46:56 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;:confused:&lt;BR /&gt;&lt;BR /&gt;Could be helpful to search issues like this at Code Red Wiki :eek:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/OutputFormats&lt;/A&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear senior member,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your answer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please keep out those smileys next time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not asking for those.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you feel burdened by my question please don't answer next time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously I am starting with LPC and I really DON'T know there is some particular wiki. I think you didn't know this either when you were junior member.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, this should be described in the Xpresso documentation. Why to search some google or wiki for this simple thing...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:09:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584341#M26235</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generate CRC by linker (ld)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584342#M26236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sun Jan 15 13:23:30 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear tomkrysl,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sorry if you feel offended by this smileys, I've deleted them. Since I use a lot of them to colour the text I'll follow you wish and don't answer you question any more to avoid further excitement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if you wish me to delete my complete answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't feel burdened or anything, this answer is just what it is: a 1 minute answer to give you a hint. Obviously you don't like my style and I'll respect that, that's no problem. I'm old enough to survive this and can spent my time with other things :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:09:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584342#M26236</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Generate CRC by linker (ld)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584343#M26237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Sun Jan 15 13:46:29 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Anyway, this should be described in the Xpresso documentation. Why to search some google or wiki for this simple thing...&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Product documentation goes out of date.:mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the top of the forum is a sticky thread with some guidance on how to find more information. As a Junior Member, I suggest you start there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:09:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584343#M26237</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Generate CRC by linker (ld)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584344#M26238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tomkrysl on Sun Jan 15 15:49:00 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: TheFallGuy&lt;/STRONG&gt;&lt;BR /&gt;Product documentation goes out of date.:mad:&lt;BR /&gt;&lt;BR /&gt;At the top of the forum is a sticky thread with some guidance on how to find more information. As a Junior Member, I suggest you start there.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, hopefully LPC chips are not going out of date too. Our company decided to use these a month ago...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:09:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584344#M26238</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Generate CRC by linker (ld)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584345#M26239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Europe on Tue Jan 17 02:39:54 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You don't state which chip you are using, but this code to attach a checksum to LPC1343 binaries may be helpful as a starting point: &lt;/SPAN&gt;&lt;A href="http://"&gt;https://github.com/microbuilder/LPC1343CodeBase/tree/master/tools/lpcrc&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:09:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Generate-CRC-by-linker-ld/m-p/584345#M26239</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:09:32Z</dc:date>
    </item>
  </channel>
</rss>

