<?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: How to flash sector 0 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-flash-sector-0/m-p/549179#M13784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mysepp on Tue Feb 02 10:33:23 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at "lpc21isp". There is also a option to write debug output, which contains all exchanged data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you can compare your sequence with the one of lpc21isp.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:50:39 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:50:39Z</dc:date>
    <item>
      <title>How to flash sector 0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-flash-sector-0/m-p/549178#M13783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by claudio.destro on Mon Feb 01 23:30:54 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe an old question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;How to flash sector 0 of my LPC2368 by using serial ISP?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I remember I need to do something special in order to write/read sector 0, but I was not able to find any documentation/example about it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am implementing my own programmer in node.js/electron, all works fine except for sector 0: my ARM code doesn't run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know the ARM code works because it is production code and FlashMagic can flash it, thus I would include it in the list of working software &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ISP sequence:&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;
&amp;lt;--- U 23130
---&amp;gt; 0
&amp;lt;--- P 0 1
---&amp;gt; 0
&amp;lt;--- E 0 1
---&amp;gt; 0
&amp;lt;--- W 1073752064 4096
...
---&amp;gt; OK
&amp;lt;--- U 23130
---&amp;gt; 0
&amp;lt;--- P 0 0
---&amp;gt; 0
&amp;lt;--- C 0 1073752064 4096
---&amp;gt; 0
&amp;lt;--- W 1073752064 4096
...
---&amp;gt; OK
&amp;lt;--- U 23130
---&amp;gt; 0
&amp;lt;--- P 1 1
---&amp;gt; 0
&amp;lt;--- C 4096 1073752064 4096
---&amp;gt; 0
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Claudio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:50:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-flash-sector-0/m-p/549178#M13783</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to flash sector 0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-flash-sector-0/m-p/549179#M13784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mysepp on Tue Feb 02 10:33:23 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at "lpc21isp". There is also a option to write debug output, which contains all exchanged data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you can compare your sequence with the one of lpc21isp.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:50:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-flash-sector-0/m-p/549179#M13784</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to flash sector 0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-flash-sector-0/m-p/549180#M13785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by claudio.destro on Tue Feb 02 23:52:21 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;downloaded/compiled lpc21isp ... and it succeeded ;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am clearly doing something wrong :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;by reading the code, it seems there is no something special to do except for erasing sector 0 first and flashing it last.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... and (maybe last but not least) patching the vector table so that the checksum will be 0 (otherwise the hardware boot loader keeps taking control endlessly): I think this is the key point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:50:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-flash-sector-0/m-p/549180#M13785</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:50:40Z</dc:date>
    </item>
  </channel>
</rss>

