<?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>LPC MicrocontrollersのトピックRe: LPC824 not entering ISP mode after first programming</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-not-entering-ISP-mode-after-first-programming/m-p/684605#M27579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pedro,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you very much for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you are not mind, you can send me your problem test project or the .hex file, I will test it on my LPCXpresso824 board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&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>Fri, 16 Jun 2017 09:42:12 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-06-16T09:42:12Z</dc:date>
    <item>
      <title>LPC824 not entering ISP mode after first programming</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-not-entering-ISP-mode-after-first-programming/m-p/684602#M27576</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;I'm starting to use the LPC824 on a custom board, after I used a development board for some time.&lt;/P&gt;&lt;P&gt;It happens however that I could program the microcontroller only once! The first try it programmed without any problem. After that it doesn't seem to be entering ISP mode anymore.&lt;/P&gt;&lt;P&gt;It seems like a standard CRP behaviour (I can no longer access the chip neither by ISP nor by SWDIO with an LPC Link2 I have). But I didn't change the "startup_LPC82x.s" and I already checked that the CRP is not activated:&lt;BR /&gt;"&lt;/P&gt;&lt;P&gt;IF :LNOT::DEF:NO_CRP&lt;BR /&gt; AREA |.ARM.__at_0x02FC|, CODE, READONLY&lt;BR /&gt; DCD 0xFFFFFFFF&lt;BR /&gt; ENDIF&lt;/P&gt;&lt;P&gt;AREA |.text|, CODE, READONLY&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Can there be other reason why the chip is not entering ISP mode?&lt;/P&gt;&lt;P&gt;I'm using deep-power-down mode, but I couldn't find anywhere in the documentation something that relates deep-power-down with a problem in ISP.&lt;/P&gt;&lt;P&gt;Here is my main.c, if there is someone who can help me:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;while(1) {&lt;/P&gt;&lt;P&gt;// System initialization&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;SYS_Init();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;UART_Init();&lt;/P&gt;&lt;P&gt;// Debug UART initialization&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;uart_dbg = UART_GetUart(UART_DEBUG);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;UART_ConfigureUART(uart_dbg, B115200, FALSE);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;UART_EchoOn(uart_dbg);&lt;/P&gt;&lt;P&gt;// Read the device UID and store it for future use&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;SYS_ReadUID(UID);&lt;/P&gt;&lt;P&gt;// Identifies itself on the debug UART&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;sprintf(str, "\r\n\r\nI'm alive!\r\n");&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;UART_SendText(uart_dbg, str);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;sprintf(str, "Dev UID:\"%08X:%08X:%08X:%08X\"\r\n", UID[0], UID[1], UID[2], UID[3]);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;UART_SendText(uart_dbg, str);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;sprintf(str, "Reset Type: %02X\r\n", SYS_GetResetStatus());&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;UART_SendText(uart_dbg, str);&lt;/P&gt;&lt;P&gt;// Clears the reset status register if wake-up was not from POR (Power-On Reset)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if(SYS_GetResetStatus() != 0) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SYS_ClearResetStatus();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;sprintf(str, "Time since first boot: %lu\r\n", SYS_GetTimeSinceStart());&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;UART_SendText(uart_dbg, str);&lt;/P&gt;&lt;P&gt;// Configures the watchdog and BOD blocks to be powered-down during deep-power-down mode&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_SYSCON-&amp;gt;PDSLEEPCFG = (1 &amp;lt;&amp;lt; 3) | (1 &amp;lt;&amp;lt; 6);&lt;BR /&gt;// Configures the wake-up configuration register to have all blocks powered-up upon wake-up&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_SYSCON-&amp;gt;PDAWAKECFG = 0;&lt;BR /&gt;// Enables the self-wake-up timer interrupt wake-up&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;LPC_SYSCON-&amp;gt;STARTERP1 = (1 &amp;lt;&amp;lt; 15);&lt;/P&gt;&lt;P&gt;//Waits while the Debug UART is still transmitting&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;while(UART_CheckTransmitIdle(uart_dbg) == 0);&lt;/P&gt;&lt;P&gt;// Configures self wake-up timer to wake-up SLEEP_TIME seconds before next cycle&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SYS_SetSelfWakeTimer(SLEEP_TIME);&lt;/P&gt;&lt;P&gt;// Enters deep-power-down&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SYS_DeepPowerDown();&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Pedro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 10:23:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-not-entering-ISP-mode-after-first-programming/m-p/684602#M27576</guid>
      <dc:creator>pmlousa</dc:creator>
      <dc:date>2017-06-13T10:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPC824 not entering ISP mode after first programming</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-not-entering-ISP-mode-after-first-programming/m-p/684603#M27577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello pedro Lousa,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you enter deep sleep mode, it is normally can't use SWD to connect it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can enter ISP mode like this:&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/20539i7889F01F76EAA4EB/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;PIO0_12 is low, then press the reset button.&lt;/P&gt;&lt;P&gt;Now the chip will enter ISP mode.&lt;/P&gt;&lt;P&gt;Use the flash magic to connect the chip by U0_RXD=pio0_1 and U0_TXD=pio0_4.&lt;/P&gt;&lt;P&gt;Please try it at first.&lt;/P&gt;&lt;P&gt;If you still have problem, you can send me your test project, I will try it on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Kerry&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, 14 Jun 2017 09:38:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-not-entering-ISP-mode-after-first-programming/m-p/684603#M27577</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-06-14T09:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPC824 not entering ISP mode after first programming</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-not-entering-ISP-mode-after-first-programming/m-p/684604#M27578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry.&lt;/P&gt;&lt;P&gt;I'm already using Flash Magic and I had already tried the ISP sequence by using PIO0_12 and PIO0_1 and PIO0_4 as rx and tx. But it wouldn't enter ISP anyway...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But after several attempts yesterday, I managed to enter ISP mode! I did it by completely turning off the circuit for some time and then powering it on with both the ISP and reset buttons already pressed. If I tried to do it (1-press ISP, 2-press reset, 3-release reset, 4-release ISP) without turning off power, it seemed that the chip would react to reset but not&amp;nbsp;the ISP... I don't know why...&lt;/P&gt;&lt;P&gt;So I decided to modify my program to perform all the tests without entering deep power down (I added a simple delay loop to simulate the deep power down cycle) and I will add the deep power down cycle only at the end of this stage.&lt;/P&gt;&lt;P&gt;After this modification I'm able to reprogram the chip&amp;nbsp;without any problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help,&lt;/P&gt;&lt;P&gt;Pedro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 10:22:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-not-entering-ISP-mode-after-first-programming/m-p/684604#M27578</guid>
      <dc:creator>pmlousa</dc:creator>
      <dc:date>2017-06-14T10:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC824 not entering ISP mode after first programming</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-not-entering-ISP-mode-after-first-programming/m-p/684605#M27579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pedro,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you very much for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you are not mind, you can send me your problem test project or the .hex file, I will test it on my LPCXpresso824 board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&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>Fri, 16 Jun 2017 09:42:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-not-entering-ISP-mode-after-first-programming/m-p/684605#M27579</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-06-16T09:42:12Z</dc:date>
    </item>
  </channel>
</rss>

