<?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: LPC824: Why can I program the device just once? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Why-can-I-program-the-device-just-once/m-p/555896#M15028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code is probably putting the chip into a 'strange' state. Suggest that you read this FAQ for further information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389112"&gt;Regaining debug access to target MCU&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jun 2016 13:26:40 GMT</pubDate>
    <dc:creator>thefallguy</dc:creator>
    <dc:date>2016-06-21T13:26:40Z</dc:date>
    <item>
      <title>LPC824: Why can I program the device just once?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Why-can-I-program-the-device-just-once/m-p/555895#M15027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have recently made a pcb with a LPC824M201JDH20 on it. The first time I can program a .hex file into the microcontroller by using Flash Magic ISP. Actually if I try to do it the second time, it will not work anymore. Flash Magic gives an autobaud error. If I look at the signals(ISP reset, ISP enable, ISP TX) to the microcontroller, the signals are right. Actually there is no rx signal, so the LPC824 is not responding. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like the LPC824 is coming into CRP mode. This because I can read the device until I do a powercycle. This CRP mode protects the device from re-writing a .hex file. Actually how can I turn this mode off or set it in a state that I can reprogram the controller? And is my interpretation on this related to this CRP mode correct, or do I have to look at something else?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In settings the CRP is unchecked and also crp.c says "CRP_WORD = CRP_NO_CRP".&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 10:58:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Why-can-I-program-the-device-just-once/m-p/555895#M15027</guid>
      <dc:creator>rmikkers</dc:creator>
      <dc:date>2016-06-21T10:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPC824: Why can I program the device just once?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Why-can-I-program-the-device-just-once/m-p/555896#M15028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code is probably putting the chip into a 'strange' state. Suggest that you read this FAQ for further information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/389112"&gt;Regaining debug access to target MCU&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 13:26:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Why-can-I-program-the-device-just-once/m-p/555896#M15028</guid>
      <dc:creator>thefallguy</dc:creator>
      <dc:date>2016-06-21T13:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPC824: Why can I program the device just once?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Why-can-I-program-the-device-just-once/m-p/555897#M15029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fall Guy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer on my question. I finally worked out how to fix the problem. My chip was not in the CRP mode. The work around to this code is to add the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void configurePins()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Enable SWM clock */&lt;/P&gt;&lt;P&gt;&amp;nbsp; //&amp;nbsp; LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= (1 &amp;lt;&amp;lt; 7);&amp;nbsp; // this is already done in SystemInit()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Pin Assign 8 bit Configuration */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* U0_TXD */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* U0_RXD */&lt;/P&gt;&lt;P&gt;&amp;nbsp; LPC_SWM-&amp;gt;PINASSIGN[0] = 0xffff0004UL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Pin Assign 1 bit Configuration */&lt;/P&gt;&lt;P&gt;&amp;nbsp; #if !defined(USE_SWD)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Pin setup generated via Switch Matrix Tool&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIO0_5 = RESET&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIO0_4 = U0_TXD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIO0_3 = GPIO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Disables SWDCLK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIO0_2 = GPIO (User LED) - Disables SWDIO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIO0_1 = GPIO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIO0_0 = U0_RXD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOTE: SWD is disabled to free GPIO pins!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ------------------------------------------------ */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SWM-&amp;gt;PINENABLE0 = 0xffffffbfUL;&lt;/P&gt;&lt;P&gt;&amp;nbsp; #else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Pin setup generated via Switch Matrix Tool&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIO0_5 = RESET&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIO0_4 = U0_TXD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIO0_3 = SWDCLK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIO0_2 = SWDIO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIO0_1 = GPIO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIO0_0 = U0_RXD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOTE: LED on PIO0_2 unavailable due to SWDIO!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ------------------------------------------------ */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SWM-&amp;gt;PINENABLE0 = 0xffffffb3UL;&lt;/P&gt;&lt;P&gt;&amp;nbsp; #endif&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is to make sure the pins are correctly configured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 06:19:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-Why-can-I-program-the-device-just-once/m-p/555897#M15029</guid>
      <dc:creator>rmikkers</dc:creator>
      <dc:date>2016-08-12T06:19:45Z</dc:date>
    </item>
  </channel>
</rss>

