<?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 Adding a CRC during post-build steps in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Adding-a-CRC-during-post-build-steps/m-p/547865#M10267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lsimons on Tue Jun 03 12:32:15 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to add a 32-bit CRC to my code on the LPC1769 for integrity checking during startup.&amp;nbsp; To add the CRC, I use the following post-build operations with &lt;/SPAN&gt;&lt;A href="http://http://srecord.sourceforge.net/" rel="nofollow noopener noreferrer" target="_blank"&gt;SRecord &lt;/A&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;arm-none-eabi-size "${BuildArtifactFileName}"
arm-none-eabi-objcopy -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin"
checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.bin"
../util/srec_cat "${BuildArtifactFileBaseName}.bin" -binary -crop 0 0x7FFFC -fill 0x00 0 0x7FFFC -crc32-b-e 0x7FFFC -unfill 0x00 8 -o "${BuildArtifactFileBaseName}.crc.bin" -binary&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, this gives me a binary with a 32-bit checksum in the last 4 bytes of user Flash. Is there a way to debug using this modified binary from LPCXpresso, or can I only burn the binary to Flash and run?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Louis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:36:54 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:36:54Z</dc:date>
    <item>
      <title>Adding a CRC during post-build steps</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Adding-a-CRC-during-post-build-steps/m-p/547865#M10267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lsimons on Tue Jun 03 12:32:15 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to add a 32-bit CRC to my code on the LPC1769 for integrity checking during startup.&amp;nbsp; To add the CRC, I use the following post-build operations with &lt;/SPAN&gt;&lt;A href="http://http://srecord.sourceforge.net/" rel="nofollow noopener noreferrer" target="_blank"&gt;SRecord &lt;/A&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;arm-none-eabi-size "${BuildArtifactFileName}"
arm-none-eabi-objcopy -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin"
checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.bin"
../util/srec_cat "${BuildArtifactFileBaseName}.bin" -binary -crop 0 0x7FFFC -fill 0x00 0 0x7FFFC -crc32-b-e 0x7FFFC -unfill 0x00 8 -o "${BuildArtifactFileBaseName}.crc.bin" -binary&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, this gives me a binary with a 32-bit checksum in the last 4 bytes of user Flash. Is there a way to debug using this modified binary from LPCXpresso, or can I only burn the binary to Flash and run?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Louis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:36:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Adding-a-CRC-during-post-build-steps/m-p/547865#M10267</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a CRC during post-build steps</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Adding-a-CRC-during-post-build-steps/m-p/547866#M10268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Wed Jun 04 01:31:13 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Simplest way to do this is probably to program the binary, then do an 'attach only' debug…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fdebugging-running-system" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/debugging-running-system&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fgui-flash-programming-tool" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/gui-flash-programming-tool&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:36:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Adding-a-CRC-during-post-build-steps/m-p/547866#M10268</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:36:55Z</dc:date>
    </item>
  </channel>
</rss>

