<?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 Erase Flash in ISP mode [LPC1778] in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Erase-Flash-in-ISP-mode-LPC1778/m-p/518842#M2878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Jun 02 09:23:02 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you reduce the baudrate?&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;UART ISP must be used at 57,600 bits per second or a lower communications speed.&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;See: &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%2Fforum%2Flpc1788-isp-autoboaud-issue" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.lpcware.com/content/forum/lpc1788-isp-autoboaud-issue&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:35:44 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:35:44Z</dc:date>
    <item>
      <title>How to Erase Flash in ISP mode [LPC1778]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Erase-Flash-in-ISP-mode-LPC1778/m-p/518841#M2877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vinay.madapura on Tue Jun 02 09:11:33 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Community,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPC1778 in a custom board. I tried to debug/write into the Flash using LPC Link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am able to write to the Flash when I use a fresh board with no code in it. After the write is done, I get the following debug error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"System rejected access at location 0xE000EDF0",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and the board doesn't come up. I can not re-write to the Flash afterwards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The same code was working fine with LPC1754 earlier and then we had to change the controller for memory and functionality reasons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed the headers, includes and such things. Found out the problem that I had wrongly configured the clocking. (I am a newbie).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I feel that these changes are sufficient for me to try on another board. But I don't want to unnecesarily spoil another board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On a separate custom board(identical to the spoilt one), I tried to run an LPCOpen example: "periph_blinky" by modifying the PIN config. It runs somewhat successfully( Doesn't blink though, but I was able to write and rewrite the Flash many times and an LED also turns ON).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the destroyed board, I tried to erase the flash in ISP mode using FlashMagic and grounding the P2[10] pin and that doesn't seem to work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the "Failed to Autobaud." Error from FlashMagic.!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anyone please shed some light on how to erase the flash so that I can first try the revised code on the already used board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please keep in mind while answering that I am a newbie.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vinay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:35:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Erase-Flash-in-ISP-mode-LPC1778/m-p/518841#M2877</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Erase Flash in ISP mode [LPC1778]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Erase-Flash-in-ISP-mode-LPC1778/m-p/518842#M2878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Jun 02 09:23:02 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you reduce the baudrate?&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;UART ISP must be used at 57,600 bits per second or a lower communications speed.&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;See: &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%2Fforum%2Flpc1788-isp-autoboaud-issue" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.lpcware.com/content/forum/lpc1788-isp-autoboaud-issue&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:35:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Erase-Flash-in-ISP-mode-LPC1778/m-p/518842#M2878</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Erase Flash in ISP mode [LPC1778]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Erase-Flash-in-ISP-mode-LPC1778/m-p/518843#M2879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vinay.madapura on Tue Jun 02 09:52:15 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi R2D2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the quick response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I tried different baudrates from 9,600 up until 57,600.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For all the baudrates, I get the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meanwhile I read something about CRP functionality. I am sure I have not described that. But I want to check if I have entered the CRP-3 level.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The datasheet says one can not enter ISP mode if the CRP-3 is activated. How will I know if I have done so?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vinay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:35:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Erase-Flash-in-ISP-mode-LPC1778/m-p/518843#M2879</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Erase Flash in ISP mode [LPC1778]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Erase-Flash-in-ISP-mode-LPC1778/m-p/518844#M2880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue Jun 02 10:24:29 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: vinay.madapura&lt;/STRONG&gt;&lt;BR /&gt;The datasheet says one can not enter ISP mode if the CRP-3 is activated. How will I know if I have done so?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In CRP3 your MCU is locked and there's no further access with SWD or ISP possible...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure that you are booting into ISP and your UART converter is working?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you ever erase / flash this board with FlashMagic?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:35:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Erase-Flash-in-ISP-mode-LPC1778/m-p/518844#M2880</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:35:45Z</dc:date>
    </item>
  </channel>
</rss>

