LPCUSB randomly hangs on Olimex LPC-P2378 board.

I am working on a HID type device using the above devel board and I am having issues with the code randomly hanging.

I went back and commented out most of my changes (I started with the hid example main_hid.c) and I’m still having random lockups, so I don’t think its my changes.

Has anyone else used LPCUSB with an LPC2378? Did it work?

I really hope I can get this to work. I’m writing some companion code in C# and .NET to access my HID device that if I can get it to work I will be releasing back (its based on the code on lvr.com but I put in fixes for getting report caps and fixed some other small bugs). If I can’t get it to work I won’t be able to test it :frowning:

Thanks for any help,

Mike

On a system we build, we have USB as main interface, based on Coldfire MCF5272. During ESD testing, I also have software randomly hanging and finaly discovered that it is always running, but USB communication is stopped. The problem comes on USB electric levels, with low margins and some forbidden states. The PC USB controller is very sensitive and hangs. We have to disconnect the USB cable and restart the PC application. Check your cabling, ground loops, etc…

Angelo

I wish that was the issue. :frowning: I have debug messages that go out the serial port on the LPC once a second, and they hang mid print usually when this happens.

I thought at first I was blowing the IRQ stack, but I have since quadrupled it and I am still having the issues.

Mike

So has no one else had lockup issues with LPCUSB on an LPC23xx? I guess at this point I should determine whether it would be easier for me to fix LPCUSB or rewrite it myself… Implementing chapter 9 support does not look all that hard…