<?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>LPCXpresso IDE中的主题 Re: Code porting from lpc11u24 -&amp;gt; lpc11u37 USB problem</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539257#M6418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dennisdd on Sat Jul 06 22:29:13 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Tsuneo&lt;/STRONG&gt;&lt;BR /&gt;I have a LPCXpresso board, on which a LPC11U14 is replaced with a LPC11U37/401.&lt;BR /&gt;&lt;BR /&gt;As this is LPCXpresso forum, I report the result on LPCXpresso IDE, first.&lt;BR /&gt;On this board, the USB examples in this code bundle (USB_ROM_CDC, USB_ROM_HID and USB_ROM_MSC) work without ANY change.&lt;BR /&gt;&lt;BR /&gt;"Sample Code Bundle for LPC11Uxx Peripherals using LPCXpresso"&lt;BR /&gt;&lt;A href="http://"&gt;http://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11uxx-peripherals-using-lpcxpresso&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;These examples target LPC11U24/301 in project MCU setting, as the default.&lt;BR /&gt;They also work, after just the MCU setting changes to LPC11u37/401, and rebuilt.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Next, report on KEIL uVision.&lt;BR /&gt;Above board was connected to uVision over a ULINK-ME, instead of on-board LPC-link.&lt;BR /&gt;The examples in this bundle were tested.&lt;BR /&gt;&lt;BR /&gt;"Sample Code Bundle for LPC11Uxx Peripherals using Keil's MDK-ARM"&lt;BR /&gt;&lt;A href="http://"&gt;http://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11uxx-peripherals-using-keils-mdk-arm-0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;- USBCDC&lt;BR /&gt;- USBHID&lt;BR /&gt;- USBMem&lt;BR /&gt;- USBROMDriver\USB_CDC&lt;BR /&gt;- USBROMDriver\USB_HID&lt;BR /&gt;- USBROMDriver\USB_MSC&lt;BR /&gt;&lt;BR /&gt;The default Device setting of these examples is LPC11U14/201&lt;BR /&gt;The examples work on LPC11U37 without ANY change with this setting.&lt;BR /&gt;&lt;BR /&gt;After the Device is changed to LPC11U37/401 (Options - Device tab),&lt;BR /&gt;- by this change, the value of Target - IROM1, IRAM1, IRAM2 and Flash Programming Algorithm are automatically tuned for 11U37 by the IDE,&lt;BR /&gt;the examples work without any problem.&lt;BR /&gt;&lt;BR /&gt;Tsuneo&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsuneo, I just did the porting to the example(Sample Code Bundle for LPC11Uxx Peripherals using Keil's MDK-ARM) so my USB script can try to talk with device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The default setting of example code doesn't work. Breakpoint doesn't stop on vendor request, descriptor request and etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think my keil ide is the main cause?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:45:17 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:45:17Z</dc:date>
    <item>
      <title>Code porting from lpc11u24 -&gt; lpc11u37 USB problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539253#M6414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dennisdd on Wed Jul 03 04:19:25 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Porting the same code from lpc11u24 to lpc11u37, the usb problems arises.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for lpc11u37 address&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that SRAM0 0x10000000 -&amp;gt; 0x10002000, then USB RAM 0x20004000-&amp;gt;0x20004800&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But after setting usb still not good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached is my setting. How is the proper setting to this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539253#M6414</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Code porting from lpc11u24 -&gt; lpc11u37 USB problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539254#M6415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dennisdd on Fri Jul 05 02:04:34 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I solved this problem by setting the address only to 0x1000 0000 size:0x2000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I notice something else come up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I encountered a problem my code change doesn't being executed/reflected during SWD debugging mode. I notice the part that the code is not able to be executed during debug mode is USB. The main{} however is able to be break point. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My USB code only able to be executed after I disconnect from debug session, power cycle it then the new code I wrote reflected into the device. I verified this using USB scripting method. My device able to response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Previously, my code is running on lpc11u24.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I change the memory region according to lpc11u37's, which is IRAM1-&amp;gt;0x1000 0000 size 0x2000. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do I need to do to make proper porting to lpc11u37?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539254#M6415</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Code porting from lpc11u24 -&gt; lpc11u37 USB problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539255#M6416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by whitecoe on Fri Jul 05 03:48:39 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Your screenshot looks like its from the Keil tools -&amp;gt; you do realise that you are posting on the LPCXpresso forum? :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might get more help on the Keil or maybe the LPCware forums.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539255#M6416</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Code porting from lpc11u24 -&gt; lpc11u37 USB problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539256#M6417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tsuneo on Fri Jul 05 09:30:07 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a LPCXpresso board, on which a LPC11U14 is replaced with a LPC11U37/401.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As this is LPCXpresso forum, I report the result on LPCXpresso IDE, first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On this board, the USB examples in this code bundle (USB_ROM_CDC, USB_ROM_HID and USB_ROM_MSC) work without ANY change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Sample Code Bundle for LPC11Uxx Peripherals using LPCXpresso"&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11uxx-peripherals-using-lpcxpresso&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These examples target LPC11U24/301 in project MCU setting, as the default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;They also work, after just the MCU setting changes to LPC11u37/401, and rebuilt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next, report on KEIL uVision.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Above board was connected to uVision over a ULINK-ME, instead of on-board LPC-link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The examples in this bundle were tested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Sample Code Bundle for LPC11Uxx Peripherals using Keil's MDK-ARM"&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11uxx-peripherals-using-keils-mdk-arm-0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- USBCDC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- USBHID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- USBMem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- USBROMDriver\USB_CDC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- USBROMDriver\USB_HID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- USBROMDriver\USB_MSC&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The default Device setting of these examples is LPC11U14/201&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The examples work on LPC11U37 without ANY change with this setting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After the Device is changed to LPC11U37/401 (Options - Device tab),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- by this change, the value of Target - IROM1, IRAM1, IRAM2 and Flash Programming Algorithm are automatically tuned for 11U37 by the IDE,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the examples work without any problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsuneo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539256#M6417</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Code porting from lpc11u24 -&gt; lpc11u37 USB problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539257#M6418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dennisdd on Sat Jul 06 22:29:13 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Tsuneo&lt;/STRONG&gt;&lt;BR /&gt;I have a LPCXpresso board, on which a LPC11U14 is replaced with a LPC11U37/401.&lt;BR /&gt;&lt;BR /&gt;As this is LPCXpresso forum, I report the result on LPCXpresso IDE, first.&lt;BR /&gt;On this board, the USB examples in this code bundle (USB_ROM_CDC, USB_ROM_HID and USB_ROM_MSC) work without ANY change.&lt;BR /&gt;&lt;BR /&gt;"Sample Code Bundle for LPC11Uxx Peripherals using LPCXpresso"&lt;BR /&gt;&lt;A href="http://"&gt;http://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11uxx-peripherals-using-lpcxpresso&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;These examples target LPC11U24/301 in project MCU setting, as the default.&lt;BR /&gt;They also work, after just the MCU setting changes to LPC11u37/401, and rebuilt.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Next, report on KEIL uVision.&lt;BR /&gt;Above board was connected to uVision over a ULINK-ME, instead of on-board LPC-link.&lt;BR /&gt;The examples in this bundle were tested.&lt;BR /&gt;&lt;BR /&gt;"Sample Code Bundle for LPC11Uxx Peripherals using Keil's MDK-ARM"&lt;BR /&gt;&lt;A href="http://"&gt;http://www.lpcware.com/content/nxpfile/sample-code-bundle-lpc11uxx-peripherals-using-keils-mdk-arm-0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;- USBCDC&lt;BR /&gt;- USBHID&lt;BR /&gt;- USBMem&lt;BR /&gt;- USBROMDriver\USB_CDC&lt;BR /&gt;- USBROMDriver\USB_HID&lt;BR /&gt;- USBROMDriver\USB_MSC&lt;BR /&gt;&lt;BR /&gt;The default Device setting of these examples is LPC11U14/201&lt;BR /&gt;The examples work on LPC11U37 without ANY change with this setting.&lt;BR /&gt;&lt;BR /&gt;After the Device is changed to LPC11U37/401 (Options - Device tab),&lt;BR /&gt;- by this change, the value of Target - IROM1, IRAM1, IRAM2 and Flash Programming Algorithm are automatically tuned for 11U37 by the IDE,&lt;BR /&gt;the examples work without any problem.&lt;BR /&gt;&lt;BR /&gt;Tsuneo&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsuneo, I just did the porting to the example(Sample Code Bundle for LPC11Uxx Peripherals using Keil's MDK-ARM) so my USB script can try to talk with device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The default setting of example code doesn't work. Breakpoint doesn't stop on vendor request, descriptor request and etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think my keil ide is the main cause?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539257#M6418</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Code porting from lpc11u24 -&gt; lpc11u37 USB problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539258#M6419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dennisdd on Sat Jul 06 22:29:48 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: whitecoe&lt;/STRONG&gt;&lt;BR /&gt;Your screenshot looks like its from the Keil tools -&amp;gt; you do realise that you are posting on the LPCXpresso forum? :eek:&lt;BR /&gt;&lt;BR /&gt;You might get more help on the Keil or maybe the LPCware forums.&lt;BR /&gt;&lt;BR /&gt;HTH!&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry...offended you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539258#M6419</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Code porting from lpc11u24 -&gt; lpc11u37 USB problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539259#M6420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Tsuneo on Sun Jul 07 20:21:48 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Breakpoint doesn't stop on vendor request, descriptor request and etc.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On my side, breakpoint works as expected even on the default LPC11U14/201 setting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- USBCDC and USBHID examples have a breakpoint at the initialization in main() as the project default. Delete these breakpoints.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- When your breakpoint disturbs enumeration sequence, the host will get timeout (50 or 500 ms). And then, host move to error recovery sequence, running off from normal enumeration sequence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tsuneo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:45:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Code-porting-from-lpc11u24-gt-lpc11u37-USB-problem/m-p/539259#M6420</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:45:18Z</dc:date>
    </item>
  </channel>
</rss>

