EmbeddedRelated.com
Forums

LPC2148 USB problem

Started by Michal Krestan December 8, 2009
Hi,

please can anybody send me functional example code for testing usb on LPC2148? I need any hex file, which is running usb code to get work on LPC2148. I've tried usb driver from sourceforge, however still have no success. Windows always gives me message of unrecognized usb device and is not able to read class ID. I don't know, if it's hadrware or software problem on my board. Only USB pins, 12MHz crystal, reset and vcc/gnd pins are connected on my board.

Michal

An Engineer's Guide to the LPC2100 Series

--- In l..., "Michal Krestan" wrote:
> Hi,
>
> please can anybody send me functional example code for testing usb on LPC2148? I need any hex file, which is running usb code to get work on LPC2148. I've tried usb driver from sourceforge, however still have no success. Windows always gives me message of unrecognized usb device and is not able to read class ID. I don't know, if it's hadrware or software problem on my board. Only USB pins, 12MHz crystal, reset and vcc/gnd pins are connected on my board.
>
> Michal
>
Try www.jcwren.com/arm This is some excellent demo code for the LPC2148.

Richard

--- In l..., "Michal Krestan" wrote:
> Hi,
>
> please can anybody send me functional example code for testing usb on LPC2148? I need any hex file, which is running usb code to get work on LPC2148. I've tried usb driver from sourceforge, however still have no success. Windows always gives me message of unrecognized usb device and is not able to read class ID. I don't know, if it's hadrware or software problem on my board. Only USB pins, 12MHz crystal, reset and vcc/gnd pins are connected on my board.
>
> Michal
>

Hi,

Is this a known hardware or a new design ?

Do you have a schematic available ?

don

It's my own design. Schematic is very simple, D+ and D- connected via 33ohm resistors to USB connector, D+ via 1.5k to Vdd and VBUS connected to P0.23. MCU is working, I'm using serial bootloader and when I download my own code it doesn't have any problem. I've also measured some communication on USB lines, but I can't make any other diagnostic. I expected that compiled demo examples from from sourceforge will be working, however I still don't have any success.

Michal
----- Original Message -----
From: Donald H
To: l...
Sent: Wednesday, December 09, 2009 5:42 AM
Subject: [lpc2000] Re: LPC2148 USB problem

--- In l..., "Michal Krestan" wrote:
>
>
> Hi,
>
> please can anybody send me functional example code for testing usb on LPC2148? I need any hex file, which is running usb code to get work on LPC2148. I've tried usb driver from sourceforge, however still have no success. Windows always gives me message of unrecognized usb device and is not able to read class ID. I don't know, if it's hadrware or software problem on my board. Only USB pins, 12MHz crystal, reset and vcc/gnd pins are connected on my board.
>
> Michal
>

Hi,

Is this a known hardware or a new design ?

Do you have a schematic available ?

don
--- In l..., "Michal Krestan" wrote:
> It's my own design. Schematic is very simple, D+ and D- connected via 33ohm resistors to USB connector, D+ via 1.5k to Vdd and VBUS connected to P0.23. MCU is working, I'm using serial bootloader and when I download my own code it doesn't have any problem. I've also measured some communication on USB lines, but I can't make any other diagnostic. I expected that compiled demo examples from from sourceforge will be working, however I still don't have any success.
>
> Michal

I would suggest looking at a working device and compare your to it.

http://www.sparkfun.com/commerce/product_info.php?products_id27

The schematic and source code is there to look at.

don