EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

USB driver problem LPC-2148

Started by pratik pujar June 1, 2006
Hi everybody,

I am using LPC 214x USB stack (open source can be downloaded from https://sourceforge.net/cvs/?group_id=160384 ) on my proprietary ARM board with LPC 2148 microcontroller chip.
But I am facing problems.

When i run it , and plug in then USB LINK led lights up and when unplugged goes off.
But my linux machine is not able to detect any USB device when plugged in and on windows machine it shows "Unknown USB device attached."

When i enable debug prints then results what i found is that the device is not getting end point (EP SLOW) interrupts.

Where as at the end of main function there is continuous while loop polling for interrupt. In which it checks value of USB device Interrupt status register(0xE0090000) and accordingly call handler routines.

Am i missing with anything ? is there anything i need to do?
Please help me.

Thanks & regards,
Pratik.

---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2/min or less.







An Engineer's Guide to the LPC2100 Series

Hi ,
Sorry that link for open source was wrong so making a correction
It is (LPC -214x USB Stack)
https://sourceforge.net/projects/lpcusb

Thanks & regards,
Pratik.

pratik pujar wrote: Hi everybody,

I am using LPC 214x USB stack (open source can be downloaded from https://sourceforge.net/cvs/?group_id=160384 ) on my proprietary ARM board with LPC 2148 microcontroller chip.
But I am facing problems.

When i run it , and plug in then USB LINK led lights up and when unplugged goes off.
But my linux machine is not able to detect any USB device when plugged in and on windows machine it shows "Unknown USB device attached."

When i enable debug prints then results what i found is that the device is not getting end point (EP SLOW) interrupts.

Where as at the end of main function there is continuous while loop polling for interrupt. In which it checks value of USB device Interrupt status register(0xE0090000) and accordingly call handler routines.

Am i missing with anything ? is there anything i need to do?
Please help me.

Thanks & regards,
Pratik.

---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2/min or less.





SPONSORED LINKS
Microcontrollers Microprocessor Intel microprocessors

---------------------------------

Hi everybody ,
In routine which is checking the USB device interrupt status register values and calling corresponding handlers, i put prints.
I debug into the problem i found is :

As soon as i plug in the device I am getting error interrupt . Error code i am geeting after that is saying "end of packet error".
so what might be the problem? Am i missing with any initialization?
Plz help me

Thanks & Regards,
Pratik.


pratik pujar wrote: Hi ,
Sorry that link for open source was wrong so making a correction
It is (LPC -214x USB Stack)
https://sourceforge.net/projects/lpcusb

Thanks & regards,
Pratik.

pratik pujar wrote: Hi everybody,

I am using LPC 214x USB stack (open source can be downloaded from https://sourceforge.net/cvs/?group_id=160384 ) on my proprietary ARM board with LPC 2148 microcontroller chip.
But I am facing problems.

When i run it , and plug in then USB LINK led lights up and when unplugged goes off.
But my linux machine is not able to detect any USB device when plugged in and on windows machine it shows "Unknown USB device attached."

When i enable debug prints then results what i found is that the device is not getting end point (EP SLOW) interrupts.

Where as at the end of main function there is continuous while loop polling for interrupt. In which it checks value of USB device Interrupt status register(0xE0090000) and accordingly call handler routines.

Am i missing with anything ? is there anything i need to do?
Please help me.

Thanks & regards,
Pratik.

---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2/min or less.





SPONSORED LINKS
Microcontrollers Microprocessor Intel microprocessors

---------------------------------

Yes, you need a mass storage device implemented as well. The USB
stack is just a transport mechanism.

Have a look at:
For a working USB mass storage demo.

http://www.keil.com/download/docs/307.asp

--- In l..., pratik pujar wrote:
>
> Hi everybody,
>
> I am using LPC 214x USB stack (open source can be downloaded from
https://sourceforge.net/cvs/?group_id=160384 ) on my proprietary ARM
board with LPC 2148 microcontroller chip.
> But I am facing problems.
>
> When i run it , and plug in then USB LINK led lights up and when
unplugged goes off.
> But my linux machine is not able to detect any USB device when
plugged in and on windows machine it shows "Unknown USB device
attached."
>
> When i enable debug prints then results what i found is that the
device is not getting end point (EP SLOW) interrupts.
>
> Where as at the end of main function there is continuous while
loop polling for interrupt. In which it checks value of USB device
Interrupt status register(0xE0090000) and accordingly call handler
routines.
>
> Am i missing with anything ? is there anything i need to do?
> Please help me.
>
> Thanks & regards,
> Pratik.
>
> ---------------------------------
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and
30+ countries) for 2/min or less.
>
>
>





Hi,
Thanks for looking into the problem.
Actually there was problem with my hardware, i solved it and working perfectly fine.
Thanks,
Pratik.

myfriendmarkis wrote:
Yes, you need a mass storage device implemented as well. The USB
stack is just a transport mechanism.

Have a look at:

For a working USB mass storage demo.

http://www.keil.com/download/docs/307.asp

--- In l..., pratik pujar wrote:
>
> Hi everybody,
>
> I am using LPC 214x USB stack (open source can be downloaded from
https://sourceforge.net/cvs/?group_id=160384 ) on my proprietary ARM
board with LPC 2148 microcontroller chip.
> But I am facing problems.
>
> When i run it , and plug in then USB LINK led lights up and when
unplugged goes off.
> But my linux machine is not able to detect any USB device when
plugged in and on windows machine it shows "Unknown USB device
attached."
>
> When i enable debug prints then results what i found is that the
device is not getting end point (EP SLOW) interrupts.
>
> Where as at the end of main function there is continuous while
loop polling for interrupt. In which it checks value of USB device
Interrupt status register(0xE0090000) and accordingly call handler
routines.
>
> Am i missing with anything ? is there anything i need to do?
> Please help me.
>
> Thanks & regards,
> Pratik.
>
> ---------------------------------
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and
30+ countries) for 2/min or less.
>
>
>






---------------------------------
Yahoo! Sports Fantasy Football 06 - Go with the leader. Start your league today!








The 2024 Embedded Online Conference