<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Interfacing USB Pen Drive to MCB2300 V4.50 (LPC2387)</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/29924/interfacing-usb-pen-drive-to-mcb2300-v4-50-lpc2387</link><description> 
Hi, I am using MCB2300 (mounted with LPC2387) which i want to act
as USB Host for USB Pen Drive. 
I tried downloading the example code of http://www.keil.com/support/man/docs/rlarm/rlarm_fs_ex_msd.htm. 
but it says &amp;quot;Drive not connected, please connect</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Interfacing USB Pen Drive to MCB2300 V4.50 (LPC2387)</title><link>https://community.arm.com/thread/131943?ContentTypeID=1</link><pubDate>Sun, 20 Jan 2013 02:44:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4372c509-8177-4e9c-8474-1c09a87d1f91</guid><dc:creator>jagdish panchal</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi, Please ignore my previous reply.&lt;br /&gt;
I tried to change the hardware as mentioned in your reply except the
jumper between P1.31 and P1.27. as when i connected this jumper, my
code behaves in an abnormal way. Nothing is getting displayed on LCD.
So i left that jumper unconnected.&lt;br /&gt;
But still there is no difference. The output still says the Drive is
not connected, please connect it and the light on USB pen drive is
also not glowing.&lt;br /&gt;
To enable the USB power supply, I tried to pull down the LM3526
enable pin(P1.19) by configuring it as IO pin and then setting the
pin direction as Output and then clearing P1.19. But still it didn&amp;#39;t
helped.&lt;br /&gt;
I am stuck at this status where, i have done the jumper connections
on the pads around the micro-controller, loaded the modified
software, but still the output says Drive not connected, please
connect it.&lt;/p&gt;

&lt;p&gt;
Require your help to diagnose the problem, please help.&lt;/p&gt;

&lt;p&gt;
Jagdish&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing USB Pen Drive to MCB2300 V4.50 (LPC2387)</title><link>https://community.arm.com/thread/131183?ContentTypeID=1</link><pubDate>Sat, 19 Jan 2013 20:08:24 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8fece0d4-6e4c-4f98-9d26-d33573d622d1</guid><dc:creator>jagdish panchal</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi thanks for the data.&lt;br /&gt;
I had one query regarding the Hardware connections and number of pins
used for USB port 1.&lt;br /&gt;
I have prepared a setup where, i have mounted a separate USB
connector on veroboard. I have connected its USB connectors (D+ and
D-) to the LPC2387 (P0.29 and P0.30) respectively. Power(5Vdc and
Gnd) to the USB connector on veroboard is provided directly via the
supply pins provided on evaluation kit (5V, GND).&lt;/p&gt;

&lt;p&gt;
I haven&amp;#39;t used P1.19, P1.22 and P1.27. I am doing this because In
our project, we will be providing continuous 5v supply to the USB
connector. it won&amp;#39;t be via LM3526.&lt;br /&gt;
Does the host controller inside LPC2387 require USB power read
(USB_PWRD1) signal for its functionality.&lt;br /&gt;
&lt;b&gt;If i leave this pins (USB_PWRD1 - P1.22) and (USB_OVRCR1 P1.27)
unconnected, will my USB host code still work properly.(/b)&lt;/b&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing USB Pen Drive to MCB2300 V4.50 (LPC2387)</title><link>https://community.arm.com/thread/127978?ContentTypeID=1</link><pubDate>Sat, 19 Jan 2013 08:53:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9951d187-eaa6-40f5-a2b4-1ae8393b9979</guid><dc:creator>Chinzei Tsuneo</dc:creator><description>&lt;p&gt;&lt;p&gt;
To connect the USB-A receptacle to the USB port1 pins on the
MCB2300 board,&lt;br /&gt;
place these extra jumpers at the pads around the MCU.&lt;/p&gt;

&lt;pre&gt;
LPC2387            LPC2388
USB port 1         USB port 2

USB_D+     P0.29 - P0.31  USB_D+2
USB_D-     P0.30 - USBD-B
USB_PPWR1  P1.19 - P0.12  USB_PPWR2
USB_PWRD1  P1.22 - P1.30  USB_PWRD2
USB_OVRCR1 P1.27 - P1.31  USB_OVRCR2
&lt;/pre&gt;

&lt;p&gt;
Keil host examples are modified as follows,&lt;/p&gt;

&lt;pre&gt;
&lt;b&gt;C:\Keil\ARM\Boards\Keil\MCB2300\RL\USB\Host\HID_Kbd\usbh_ohci_lpc23xx.c&lt;/b&gt;
&lt;b&gt;C:\Keil\ARM\Boards\Keil\MCB2300\RL\USB\Host\MSD_File\usbh_ohci_lpc23xx.c&lt;/b&gt;

#define USBH_OHCI_PORTS             0x00000002     &lt;b&gt;// &amp;lt;--- 0x00000001 for USB port1&lt;/b&gt;


BOOL usbh_ohci_hw_pins_config (BOOL on) {
  // USB_D+     P0.29  PINSEL1 bit27:26 01
  // USB_D-     P0.30  PINSEL1 bit29:28 01
  // USB_PPWR1  P1.19  PINSEL3 bit 7: 6 10
  // USB_PWRD1  P1.22  PINSEL3 bit13:12 10
  // USB_OVRCR1 P1.27  PINSEL3 bit23:22 10

  // Reset pin functions
  PINSEL1   &amp;amp;= ~((3 &amp;lt;&amp;lt; 26) | (3 &amp;lt;&amp;lt; 28));
  PINSEL3   &amp;amp;= ~((3 &amp;lt;&amp;lt;  6) | (3 &amp;lt;&amp;lt; 12) | (3 &amp;lt;&amp;lt; 22));

  if (on) {
    // Set pin functions
    PINSEL1   |=  ((1 &amp;lt;&amp;lt; 26) | (1 &amp;lt;&amp;lt; 28));
    PINSEL3   |=  ((2 &amp;lt;&amp;lt;  6) | (2 &amp;lt;&amp;lt; 12) | (2 &amp;lt;&amp;lt; 22));
  }
  return (__TRUE);
}


BOOL usbh_ohci_hw_init (BOOL on) {
    ...
    ...
    /* Port 2 is used for USB host                                            */
    USBPortSel    &amp;amp;= ~0x01;             /* Enable Port 2 as Host port         */
          &lt;b&gt;// &amp;lt;--- delete this line&lt;/b&gt;
&lt;/pre&gt;

&lt;p&gt;
Tsuneo&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing USB Pen Drive to MCB2300 V4.50 (LPC2387)</title><link>https://community.arm.com/thread/117145?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2013 07:22:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c39681a9-7d93-4a93-a3a8-23bff6631a2e</guid><dc:creator>jagdish panchal</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi, Thanks for all the inputs,&lt;br /&gt;
I did a little study of the USB ports in lpc2378 and the MCB2300
schematics. Now I too realized that mcb2300 eval kit lying with me
needs a little hardware changes. so as to make USB host operational.
I have started by using P0.29(USB:D+A),and P0.30(USB:D-A) and
P1.18(USB_UP_LED). Currently i am not using LM3526 for providing the
supply to USB port. I am providing 5V directly to USB port via eval
kit.&lt;br /&gt;
I am thinking of using the LPC2388 example to start the activity,
will do firmware changes to map the USB ports. I will start the
activity and inform about the progress on this forum so that it can
be of help to others. Thanks once again.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing USB Pen Drive to MCB2300 V4.50 (LPC2387)</title><link>https://community.arm.com/thread/106764?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2013 09:01:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c5393daa-67d5-42cb-bbd5-2899b5ad6c5b</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Just note that the MCB2300 board supports a large number of
LPC23xx chips (and could be used with a number of LPC17xx chips too)
so it is always important to check the user manual for the used
processor to make sure what is supported by the specific
processor.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing USB Pen Drive to MCB2300 V4.50 (LPC2387)</title><link>https://community.arm.com/thread/106754?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2013 08:59:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:59bc5260-8dfd-42cc-94ba-7b9a793b349f</guid><dc:creator>Chinzei Tsuneo</dc:creator><description>&lt;p&gt;&lt;p&gt;
I got to above conclusion, seeing the schematic of MCB2300 board
on the Keil&amp;#39;s web.&lt;br /&gt;
&lt;a href="http://www.keil.com/mcb2300/mcb2300-schematics.pdf"&gt;http://www.keil.com/mcb2300/mcb2300-schematics.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Sheet #6 of the schematics shows the circuit around the USB-A
receptacle.&lt;br /&gt;
You&amp;#39;ll see these USB-A connections on the schematics,&lt;/p&gt;

&lt;p&gt;
D+2 -- R83 -- P0.31&lt;br /&gt;
D-2 -- R82 -- USBD-B&lt;/p&gt;

&lt;p&gt;
P0.31 and USBD-B pins are seen just on LPC2388 (IC4, on sheet #1),
not on LPC2387 (IC10, on sheet #5)&lt;/p&gt;

&lt;p&gt;
But Keil mounts the USB-A receptacle on MCB2387, though they don&amp;#39;t
put the receptacle on MCB2360/2370&lt;/p&gt;

&lt;p&gt;
Pictures of MCB2360/2370/2387/2388&lt;br /&gt;
&lt;a href="http://www.keil.com/support/man/docs/mcb2300/mcb2300_intro.htm"&gt;http://www.keil.com/support/man/docs/mcb2300/mcb2300_intro.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
I recommend you to contact to Keil support to ask why MCB2387
mounts unused USB-A receptacle. They may have updated the board
circuit from above schematics.&lt;/p&gt;

&lt;p&gt;
Tsuneo&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing USB Pen Drive to MCB2300 V4.50 (LPC2387)</title><link>https://community.arm.com/thread/80888?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2013 07:58:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:148bfb16-e1d3-42b5-a2e1-31eaae9e3900</guid><dc:creator>jagdish panchal</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi, I am shocked to hear this. Is this mentioned anywhere, which i
missed out, please share the link/document.&lt;br /&gt;
And as you have mentioned, it means that this is the limitation of
the mcb2300 board lying with me. By upgrading the Controller to
LPC2388 or by modifying the connections from USB B to USB A, i would
be able to work out USB A connector. I will work out the feasible
option.&lt;br /&gt;
But Just in case, if i change the USB connector connections, can u
please suggest, which firmware example should i use for
development.&lt;br /&gt;
And Really thanks for your reply, it saved much of my future time
that i was going to put in debugging why USB A connector is not
working on MCB2300 with LPC2387 on it.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing USB Pen Drive to MCB2300 V4.50 (LPC2387)</title><link>https://community.arm.com/thread/61553?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2013 06:26:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:46db698b-2b14-4d05-a90c-5ca82ae27566</guid><dc:creator>Chinzei Tsuneo</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;gt; I am using MCB2300 (mounted with LPC238&lt;b&gt;7&lt;/b&gt;)&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
The USB standard-A receptacle on the MCB2300 board works just for
LPC238&lt;b&gt;8&lt;/b&gt;, which has the second USB port.&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/mcb2300/mcb2300-schematics.pdf"&gt;http://www.keil.com/mcb2300/mcb2300-schematics.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
a) You may replace LPC2387FBD100 to LPC2388FBD144.&lt;/p&gt;

&lt;p&gt;
OR&lt;/p&gt;

&lt;p&gt;
b) Make up extra connections for the standard-A receptacle, so
that it connects to the &amp;quot;first&amp;quot; USB port (USBD+A / USBD-A, etc).
Modify the firmware example, so that it uses the &amp;quot;first&amp;quot; USB
port.&lt;/p&gt;

&lt;p&gt;
Tsuneo&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>