<?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: LPC1837 Xplorer board USB0 and USB1</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1837-Xplorer-board-USB0-and-USB1/m-p/530830#M10086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mysepp on Sun Nov 29 04:18:40 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what you describe as "DEBUG" is not debugging, but a test result. It is too far away, too abstract,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you must go deeper into analysis, following what the implementation is doing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Till a host (LPC1837) does find a attached device (e.g. memory stick), there are a lot of steps needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to find out what is already working, how far it reaches to detect/find your device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Usually there is USB communication over EP0 where descriptors are read out from device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you see this communication? Do you see the requests sent by LPC1837?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you see the answers of these requests? Are these accepted or contain something &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which your implementation doesn't want/not assume to receive?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Usually USB is time sensitive, so perhaps single stepping does not help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;because timeouts occur!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you can have a look at the same data packets, function, memory areas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when you don't exchange USB0&amp;lt;-&amp;gt;USB1 to learn how it work before switching to non-working configuration?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Often a hardware analyser is helpful, but I assume you don't have such an analyzer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you connected the device to PC, e.g. had a look with usbview on descriptor,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so you know at least how they are looking? Have you had already a look into books about&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USB, like "USB complete" ( Updated: ISBN-13: ISBN 978-1-931448-28-4 -&amp;gt; Fifth edition)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fjanaxelson.com%2Fusb.htm" rel="nofollow" target="_blank"&gt;http://janaxelson.com/usb.htm&lt;/A&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you read the chapters about USB in user manual of LPC1837?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pay attention: You will need almost all of them, every piece gives a part of the solutions,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to bring you faster to a running solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:18:02 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:18:02Z</dc:date>
    <item>
      <title>LPC1837 Xplorer board USB0 and USB1</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1837-Xplorer-board-USB0-and-USB1/m-p/530829#M10085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by stefacc on Sun Nov 29 02:52:55 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I bought the Xplorer LPC1837 board for a project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The board comes with the firmware which sets the USB0 in host mode and the USB1 in device mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did several tests to sets the USB1 in host mode and USB0 in device mode but nothing. The copying does not run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DEBUG: the program doesn't find any device attached (usb memory) on USB1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is welcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:18:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1837-Xplorer-board-USB0-and-USB1/m-p/530829#M10085</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1837 Xplorer board USB0 and USB1</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1837-Xplorer-board-USB0-and-USB1/m-p/530830#M10086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mysepp on Sun Nov 29 04:18:40 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what you describe as "DEBUG" is not debugging, but a test result. It is too far away, too abstract,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you must go deeper into analysis, following what the implementation is doing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Till a host (LPC1837) does find a attached device (e.g. memory stick), there are a lot of steps needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to find out what is already working, how far it reaches to detect/find your device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Usually there is USB communication over EP0 where descriptors are read out from device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you see this communication? Do you see the requests sent by LPC1837?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you see the answers of these requests? Are these accepted or contain something &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which your implementation doesn't want/not assume to receive?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Usually USB is time sensitive, so perhaps single stepping does not help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;because timeouts occur!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you can have a look at the same data packets, function, memory areas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when you don't exchange USB0&amp;lt;-&amp;gt;USB1 to learn how it work before switching to non-working configuration?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Often a hardware analyser is helpful, but I assume you don't have such an analyzer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you connected the device to PC, e.g. had a look with usbview on descriptor,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so you know at least how they are looking? Have you had already a look into books about&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USB, like "USB complete" ( Updated: ISBN-13: ISBN 978-1-931448-28-4 -&amp;gt; Fifth edition)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fjanaxelson.com%2Fusb.htm" rel="nofollow" target="_blank"&gt;http://janaxelson.com/usb.htm&lt;/A&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you read the chapters about USB in user manual of LPC1837?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pay attention: You will need almost all of them, every piece gives a part of the solutions,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to bring you faster to a running solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:18:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1837-Xplorer-board-USB0-and-USB1/m-p/530830#M10086</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1837 Xplorer board USB0 and USB1</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1837-Xplorer-board-USB0-and-USB1/m-p/530831#M10087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by stefacc on Sun Nov 29 14:21:58 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that the only problem is the pin configuration because all others functions are developed by NXP&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is my setting sequence:&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;
 /* P2_5 USB1_VBUS, MUST CONFIGURE THIS SIGNAL FOR USB1 NORMAL OPERATION */
Chip_SCU_PinMux(0x2, 5, (MD_PLN | MD_EZI | MD_ZI), FUNC2);

/* P9_5 USB1_PPWR, USB1 VBus function */
Chip_SCU_PinMux(0x9, 5, (MD_PUP | MD_EZI), FUNC2);

 /* P2_6 USB1_PWR_EN, USB1 VBus function */
Chip_SCU_PinMux(0x2, 6, (MD_PUP | MD_EZI), FUNC4);

/* GPIO5[6] = USB1_PWR_EN */
Chip_GPIO_WriteDirBit(LPC_GPIO_PORT, 5, 6, true);

/* GPIO5[6] output high */
Chip_GPIO_WritePortBit(LPC_GPIO_PORT, 5, 6, true);
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but nothing &lt;SPAN class="lia-unicode-emoji" title=":disappointed_face:"&gt;&lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:18:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1837-Xplorer-board-USB0-and-USB1/m-p/530831#M10087</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1837 Xplorer board USB0 and USB1</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1837-Xplorer-board-USB0-and-USB1/m-p/530832#M10088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by olaek on Fri Jan 22 06:48:36 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been fiddling a bit with this too and I think the problem is that the TFBGA100 package doesn't have a P9_5. (see 6.2, Table 3 in the LPC1850/30/20/10 Product data sheet).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's a bit wierd that under 4.1, Table 2 it is stated that the package supports USB1 host and device but not ULPI. I believe that's where the data sheet is wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:18:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1837-Xplorer-board-USB0-and-USB1/m-p/530832#M10088</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:18:03Z</dc:date>
    </item>
  </channel>
</rss>

