<?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 Why does the programmer change these bytes in the flash of LPC812 and what do these bytes mean. in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-does-the-programmer-change-these-bytes-in-the-flash-of/m-p/655576#M26044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flash a hex-file in-circuit into&amp;nbsp;a LPC812 I use flash magic with an ISP serial interface or i use J-flash with a SWD interface. With these tools we have no problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the production run we use Beeprog2 from elnec. After programming de LPC812 doesn't boot. The same hex-file is used. After programming I see that the flash in the LPC812 is not identical to the data in de .hex-file. Both flash-magic and J-flash change the data in the first row of 64 bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first 64-bits in the hex file is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;:40000000E80400106901000079010000710100000000000000000000000000000000000000000000000000000000000073010000000000000000000075010000770100000C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first 64-bits in the flash of the LPC812 is:&lt;/P&gt;&lt;P&gt;:40000000E8040010690100007901000071010000000000000000000000000000&lt;SPAN style="color: #ff0000;"&gt;C5F6FFEF&lt;/SPAN&gt;000000000000000000000000730100000000000000000000750100007701000063&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The red part is different and is missing when using the Elnec program tool. I wonder what these bytes mean and why flash magic and j-flash load these files into the flash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jan 2017 14:53:30 GMT</pubDate>
    <dc:creator>nkremers</dc:creator>
    <dc:date>2017-01-03T14:53:30Z</dc:date>
    <item>
      <title>Why does the programmer change these bytes in the flash of LPC812 and what do these bytes mean.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-does-the-programmer-change-these-bytes-in-the-flash-of/m-p/655576#M26044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flash a hex-file in-circuit into&amp;nbsp;a LPC812 I use flash magic with an ISP serial interface or i use J-flash with a SWD interface. With these tools we have no problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the production run we use Beeprog2 from elnec. After programming de LPC812 doesn't boot. The same hex-file is used. After programming I see that the flash in the LPC812 is not identical to the data in de .hex-file. Both flash-magic and J-flash change the data in the first row of 64 bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first 64-bits in the hex file is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;:40000000E80400106901000079010000710100000000000000000000000000000000000000000000000000000000000073010000000000000000000075010000770100000C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first 64-bits in the flash of the LPC812 is:&lt;/P&gt;&lt;P&gt;:40000000E8040010690100007901000071010000000000000000000000000000&lt;SPAN style="color: #ff0000;"&gt;C5F6FFEF&lt;/SPAN&gt;000000000000000000000000730100000000000000000000750100007701000063&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The red part is different and is missing when using the Elnec program tool. I wonder what these bytes mean and why flash magic and j-flash load these files into the flash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 14:53:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-does-the-programmer-change-these-bytes-in-the-flash-of/m-p/655576#M26044</guid>
      <dc:creator>nkremers</dc:creator>
      <dc:date>2017-01-03T14:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the programmer change these bytes in the flash of LPC812 and what do these bytes mean.</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Why-does-the-programmer-change-these-bytes-in-the-flash-of/m-p/655577#M26045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, N Kremers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;C5F6FFEF&lt;/SPAN&gt; is the vector 7 in the NVIC, each vector have 4 bytes, vector 7 is the checksum complement data of vector0 to vector6, just like the following picture:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/6178iCC319C69683F89DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This checksum complement data normally calculated by the development tools, and write to the chip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is why you will find the vector 7 (checksum) data is different as the original data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you use Beeprog2 , and can't boot, you can contact with elnec, whether you forget some operation step, we don't have this tool on our side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&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>Wed, 04 Jan 2017 08:43:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Why-does-the-programmer-change-these-bytes-in-the-flash-of/m-p/655577#M26045</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-01-04T08:43:32Z</dc:date>
    </item>
  </channel>
</rss>

