<?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 OM13066-Reprogram LPC11U24 via USB in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1474655#M49183</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I order OM13066 board, which is LPC11U24 evaluation board. I want to program LPC11U24 through USB interface, so I isolate this board target side, and provide the independent power for LPC11U24. I also follow UM10462 and reference one post in this community.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;Content originally posted in LPCWare by DiligentMinds.com on Thu Aug 30 10:32:12 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Just for you-- I just tested it.&amp;nbsp; I am using the 48-pin (Rev-B) version of your device, but otherwise they are the same.&amp;nbsp; Yes-- USB_CONNECT (P0.6) goes low if you enable the ISP by holding (P0.1) low during a reset.&amp;nbsp; Note that, to enter the USB ISP, "VBUS" must also be connected to P0.3, and it must be high when reset happens (and P0.1 is low).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On my device, if I leave the batteries out, it is powered by the USB host when I plug it in (through a 3V3 regulator of course).&amp;nbsp; In this case, when I hold P0.1 low, and plug in the USB cable, it DOES NOT enter the ISP (as I would expect)-- I have to further cause a reset-- and THEN it goes into the USB ISP.&amp;nbsp; I'm guessing that this is because the power is not ready (or something) when the (internal) reset goes high...&amp;nbsp; Another deviation from the ap-note is that I put a 10K resistor in series with VBUS to P0.3-- I know the data-sheet says that this pin is "5V tolerant", but I wanted to limit the current into the pin anyway, just to be safe...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the same circuit for the 1.5K pull-up through a P-channel FET as was given in the ap-notes, and it appears to work fine.&amp;nbsp; (P0.6 goes low, driving the drain of the PFET high, which pulls up the 1.5K resistor on the D+ line of the USB cable).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is used by the ISP, and if you are programming a USB device, it allows your software to do a "soft connect"-- ie., it's like unplugging the USB cable from the host, and then re-plugging it back in to re-enumerate the USB device.&amp;nbsp; This might be done if you (for some reason) have re-configured your USB device, and you want the host to treat it in a different way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, you probably do need this pull-up PFET (or PNP) arrangement if you are going to use the USB port for either USB ISP or for a USB device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--Ken Peek&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can see "CRP DISABLED" drive displayed on my PC, and I also see one bin file which is "firmware.bin" , and its date is 2/6/2009. I delete this file and drag my own bin file. After reset the board by shorting PIO0_0 to ground, unplug PIO0_1 from ground and unplug PIO)_3 from 3.3V, the board is still not working. When I re-check the "CRP DISABLE" drive, the file I loaded in is disappeared, and old file "firmware.bin" is back, so I'm wondering which step is wrong. By the way, I also padded my own file to 32kB, because document an11305 indicates&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Using a padded (128 kB or flash size) programming file also provides a means for&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;the programming tool to error-check that the correct LPC part is connected (by&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;comparing file sizes of the new firmware and the firmware.bin on the device) without&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;additional configuration information"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;the padded files is still not working. Is there any NXP technical engineer I can call in to talk?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 18:37:55 GMT</pubDate>
    <dc:creator>coolxiangm</dc:creator>
    <dc:date>2022-06-15T18:37:55Z</dc:date>
    <item>
      <title>OM13066-Reprogram LPC11U24 via USB</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1474655#M49183</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I order OM13066 board, which is LPC11U24 evaluation board. I want to program LPC11U24 through USB interface, so I isolate this board target side, and provide the independent power for LPC11U24. I also follow UM10462 and reference one post in this community.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;Content originally posted in LPCWare by DiligentMinds.com on Thu Aug 30 10:32:12 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Just for you-- I just tested it.&amp;nbsp; I am using the 48-pin (Rev-B) version of your device, but otherwise they are the same.&amp;nbsp; Yes-- USB_CONNECT (P0.6) goes low if you enable the ISP by holding (P0.1) low during a reset.&amp;nbsp; Note that, to enter the USB ISP, "VBUS" must also be connected to P0.3, and it must be high when reset happens (and P0.1 is low).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On my device, if I leave the batteries out, it is powered by the USB host when I plug it in (through a 3V3 regulator of course).&amp;nbsp; In this case, when I hold P0.1 low, and plug in the USB cable, it DOES NOT enter the ISP (as I would expect)-- I have to further cause a reset-- and THEN it goes into the USB ISP.&amp;nbsp; I'm guessing that this is because the power is not ready (or something) when the (internal) reset goes high...&amp;nbsp; Another deviation from the ap-note is that I put a 10K resistor in series with VBUS to P0.3-- I know the data-sheet says that this pin is "5V tolerant", but I wanted to limit the current into the pin anyway, just to be safe...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the same circuit for the 1.5K pull-up through a P-channel FET as was given in the ap-notes, and it appears to work fine.&amp;nbsp; (P0.6 goes low, driving the drain of the PFET high, which pulls up the 1.5K resistor on the D+ line of the USB cable).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is used by the ISP, and if you are programming a USB device, it allows your software to do a "soft connect"-- ie., it's like unplugging the USB cable from the host, and then re-plugging it back in to re-enumerate the USB device.&amp;nbsp; This might be done if you (for some reason) have re-configured your USB device, and you want the host to treat it in a different way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, you probably do need this pull-up PFET (or PNP) arrangement if you are going to use the USB port for either USB ISP or for a USB device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--Ken Peek&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I can see "CRP DISABLED" drive displayed on my PC, and I also see one bin file which is "firmware.bin" , and its date is 2/6/2009. I delete this file and drag my own bin file. After reset the board by shorting PIO0_0 to ground, unplug PIO0_1 from ground and unplug PIO)_3 from 3.3V, the board is still not working. When I re-check the "CRP DISABLE" drive, the file I loaded in is disappeared, and old file "firmware.bin" is back, so I'm wondering which step is wrong. By the way, I also padded my own file to 32kB, because document an11305 indicates&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Using a padded (128 kB or flash size) programming file also provides a means for&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;the programming tool to error-check that the correct LPC part is connected (by&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;comparing file sizes of the new firmware and the firmware.bin on the device) without&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;additional configuration information"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;the padded files is still not working. Is there any NXP technical engineer I can call in to talk?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 18:37:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1474655#M49183</guid>
      <dc:creator>coolxiangm</dc:creator>
      <dc:date>2022-06-15T18:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: OM13066-Reprogram LPC11U24 via USB</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1476591#M49244</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P class="lia-align-left"&gt;The application must be renamed to firmware.bin, and the rename cannot be performed in the CRP DISABLD disk.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Please do the following to update firmware:&lt;/P&gt;
&lt;P class="lia-align-left"&gt;-Remove the original firmware.bin in the CRP DISABLD disk.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;-Rename the application ( .bin file) to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;firmware.bin&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;-Copy the application firmware.bin to the CRP DISABLD disk.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;-Reset the MCU, if the LED is observed blinking, it proves that the application has been successfully upgraded.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Please test again.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Have a nice day,&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 07:54:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1476591#M49244</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-06-20T07:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: OM13066-Reprogram LPC11U24 via USB</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1477714#M49269</link>
      <description>&lt;P&gt;Hi Jun,&lt;/P&gt;&lt;P&gt;I follow the procedure you list, but it still does not work. I want to ask some additional question?&lt;/P&gt;&lt;P&gt;1. For my new "firmware.bin" file, do I have to pad file to 32KB?&lt;/P&gt;&lt;P&gt;2. What tool are you use to pad the file, and what values are being padded with?&lt;/P&gt;&lt;P&gt;Currently, I'm using OM13066-LPC11U24 Evaluation board. I can successfully to load file through JTAG by using lpcxpresso. The file type is .axf. This is what I got so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 23:55:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1477714#M49269</guid>
      <dc:creator>coolxiangm</dc:creator>
      <dc:date>2022-06-21T23:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: OM13066-Reprogram LPC11U24 via USB</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1477858#M49272</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;/P&gt;
&lt;P&gt;afx file can not be accepted. firmware can only accept bin file.&lt;/P&gt;
&lt;P&gt;To generate bin file,&amp;nbsp; refer below screenshot&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZhangJennie_0-1655875373283.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/184143iD92F85CAB177AC80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZhangJennie_0-1655875373283.png" alt="ZhangJennie_0-1655875373283.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;make sure rename it as "firmware.bin", lower case&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 05:25:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1477858#M49272</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-06-22T05:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: OM13066-Reprogram LPC11U24 via USB</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1478345#M49282</link>
      <description>&lt;P&gt;Hi Jun,&lt;BR /&gt;This is what I did to get the original binary file, but this file is not padded to 32KB, so&lt;BR /&gt;1. do we need to pad file to 32KB?&amp;nbsp;&lt;BR /&gt;2. Is there any other hardware setup trick?&lt;BR /&gt;When I supply independent power to LPC11U24&lt;BR /&gt;I have PIO0_1 connects to GND, and PIO0_3 connects to 3.3V (all the time). If I leave PIO0_3 floated, the "CRP DISABLED" drive display and disappear, so PIO0_3 should connects 3.3V. I also screenshot my hardware setup. Please take a look. If I setup anything wrong, please tell me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="coolxiangm_0-1655918380580.png" style="width: 462px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/184290i69B2B72329741330/image-dimensions/462x240?v=v2" width="462" height="240" role="button" title="coolxiangm_0-1655918380580.png" alt="coolxiangm_0-1655918380580.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 17:20:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1478345#M49282</guid>
      <dc:creator>coolxiangm</dc:creator>
      <dc:date>2022-06-22T17:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: OM13066-Reprogram LPC11U24 via USB</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1479653#M49316</link>
      <description>&lt;P&gt;Yes, please pad it.&lt;/P&gt;
&lt;P&gt;if your firmware.bin can't work after programming, test if your code can work in standalone mode:&lt;/P&gt;
&lt;P&gt;- download your application with debugger.&lt;/P&gt;
&lt;P&gt;- disconnect the PC.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- provide external power to the board. let it run in standalone mode.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you see the blinky code working?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 07:27:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1479653#M49316</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-06-24T07:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: OM13066-Reprogram LPC11U24 via USB</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1479969#M49327</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;"download application with debugger"- if you mean left side of the board, I successfully load file through left side, but the file type is .axf, and then I applied standalone at right size, the right part of circuitry is work. I can see LED is blinking. But it is still not able to reprogram from right side.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="coolxiangm_1-1656097538784.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/184612iC5CA41ED48BC8EC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="coolxiangm_1-1656097538784.png" alt="coolxiangm_1-1656097538784.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 19:09:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1479969#M49327</guid>
      <dc:creator>coolxiangm</dc:creator>
      <dc:date>2022-06-24T19:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: OM13066-Reprogram LPC11U24 via USB</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1480277#M49330</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Most likely it goes wrong in the first step, generation of the bin file.&lt;BR /&gt;The bootcode of the LPC checks whether a valid flash signature is found at a specific location, probably this signature is missing in the .bin file.&lt;BR /&gt;This process is explained in the User Manual (&amp;nbsp;&lt;A href="https://www.nxp.com/webapp/Download?colCode=UM10462&amp;amp;location=null" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=UM10462&amp;amp;location=null&lt;/A&gt;&amp;nbsp;&amp;nbsp;), chapter '20.7 Criterion for Valid User Code'&lt;/P&gt;
&lt;P&gt;You can also refer this article to add checksum.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/LPC8N04-LPC-Boot-ROM-checksum/ta-p/1126196" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/LPC8N04-LPC-Boot-ROM-checksum/ta-p/1126196&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 05:50:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1480277#M49330</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-06-27T05:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: OM13066-Reprogram LPC11U24 via USB</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1480758#M49347</link>
      <description>&lt;P&gt;I think this reply is the right direction. I will try to correct checksum, I will get back to you soon.&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 19:50:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1480758#M49347</guid>
      <dc:creator>coolxiangm</dc:creator>
      <dc:date>2022-06-27T19:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: OM13066-Reprogram LPC11U24 via USB</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1575948#M51152</link>
      <description>&lt;P&gt;How did you go on this...&lt;/P&gt;&lt;P&gt;I now have the same problem on my own circuit board...&lt;/P&gt;&lt;P&gt;Did you find a way to pad the file?&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 05:52:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13066-Reprogram-LPC11U24-via-USB/m-p/1575948#M51152</guid>
      <dc:creator>FLS</dc:creator>
      <dc:date>2023-01-02T05:52:59Z</dc:date>
    </item>
  </channel>
</rss>

