Usb msc

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Usb msc

2,451 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Montspy on Mon Oct 04 10:43:45 MST 2010
Hi !
I'm a newbie in ARM/embedded programmation .
I'm trying to enumerate my LPCXpresso (1343) as a USB Mass Storage Device but I haven't any success so far.
I tried to : pulldown P0.1 (FT/GPIO pin), to pullup P3.1, to do both but the only result I had is the board to be enumerated as USB Device with DFU capabilities or as USB Probe v1.1.
Is there something I'm missing ?

Regards,
Val'

Original Attachment has been moved to: 1100742_LPCXpresso.zip

0 Kudos
Reply
9 Replies

2,357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Oct 08 15:37:09 MST 2010
1. As shown in schematic above, USB_CONNECT is used to switch 1.5k. So please use a FET (or transistor & basis resistor like shown in other schematics).

2. As shown in schematic above, connect VBUS via resistor to USB-VCC and also via resistor to GND. This will detect an USB connection and start USB enumeration (and also switch USB_Connect).

Unfortunately this is a little bit more work (I still don't know why this few things aren't part of LPCXpresso board) and it's annoying, but after installing it's working great: just plug USB in and wait a few seconds.
0 Kudos
Reply

2,357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Montspy on Fri Oct 08 13:31:42 MST 2010
So, I soldered a USB-A connector to the board
Red to +5V
Green to USB-DP
White to USB-DM
Black to GND
I then soldered FT/GPIO to GND and USB-VBUS to 5V

The LED2 is on but not as bright as in with the blinky example.
Windows does not detect anything, even in the device manager

I tried with a 1.5k pullup between D+ and +3V3, no result.

EDIT : I just notified that LED1 starts blinking after about 1 minute.

Regards,
Val'
0 Kudos
Reply

2,357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Oct 04 13:10:06 MST 2010

Quote:
Why PIO2.5 is connected to 3.3 volts?



Not necessary, it's a trick of my hardware engineer: he loves to place a supply voltage under the LQFP and sometimes use a pin to wire it out.


Quote:
I mixed up everything, so the micro-USB is only for the JTAG debugger !


Yes, LPC-Link is used for debugging (via SWD) and LPCXpresso1343 is the target board.


Quote:
Is it an obligation to cut the board in half ? Is it hard to do it properly ?


No, no obligation. If you cut it you need a power supply (3.3V) for your target board (or use a connector to reconnect them again). If you cut it, you can use LPC-Link to debug other boards via SWD (= 4 wires:):)).
It's not very difficult to cut it, something like a scalpel could help.


Quote:
On the photo I can see a USB connector, a led and I think a 3V3 regulator ?


You always need USB connector, resistors, LED and a transistor (I prefer a FET). If you connect a 3.3V voltage regulator via Schottky diode to your USB-Connector, it's a simple self-powered board.


Quote:
Do I need anything else than pulling low P0.1 and high P0.3 (I'll use the USB only to program the chip) ?


Should be all. I would recommend to connect UART and SWD, if you draw an own board.

Au revoir,
Zero
0 Kudos
Reply

2,357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Luis Digital on Mon Oct 04 12:02:04 MST 2010

Quote: Zero
Or:

[ATTACH]200[/ATTACH]


described in:

http://knowledgebase.nxp.com/showthread.php?t=505&highlight=schematic



Why PIO2.5 is connected to 3.3 volts?:confused:
0 Kudos
Reply

2,357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Montspy on Mon Oct 04 11:48:39 MST 2010
Okay !
I mixed up everything, so the micro-USB is only for the JTAG debugger !
Is it an obligation to cut the board in half ? Is it hard to do it properly ?
On the photo I can see a USB connector, a led and I think a 3V3 regulator ?
I'll use microbuilder's schematic for the reset to ISP schematic.
Do I need anything else than pulling low P0.1 and high P0.3 (I'll use the USB only to program the chip) ?

Regards,
Val'
0 Kudos
Reply

2,357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Oct 04 11:24:22 MST 2010
Or:

http://www.flickr.com/photos/58892165@N08/5406160762/

described in:

http://knowledgebase.nxp.com/showthread.php?t=505&highlight=schematic
0 Kudos
Reply

2,357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Luis Digital on Mon Oct 04 11:12:26 MST 2010

Quote: Montspy

Is there something I'm missing ?



Yes. You need to connect the LPC1343 to your PC.

See the start guide, and this photo for reference:
[IMG]http://psp.dip.jp/web/jpg/ARM/xpresso2.jpg[/IMG]
0 Kudos
Reply

2,357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbm on Mon Oct 04 11:11:47 MST 2010
You cannot enumerate the LPC1343 on Xpresso board as any USB device, since LPC1343 in not equipped with USB connector on the LPCXpresso board. You need to provide USB connection for 1343 first. You may find the appropriate schematic in a few places on the net.
Also, be aware that LPC1343 bootloader has some problem with initial enumeration - described in NXP errata documents.
0 Kudos
Reply

2,357 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Oct 04 11:10:04 MST 2010
1. Connect USB (of course to the LPC1343 target board )
2. Pulldown PIO0_1 (and hold it)
3. Pulldown PIO0_0 (Reset) for a second

HTH,
Zero
0 Kudos
Reply