CCEMTY_INT no respond

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by canalejose on Sat Feb 20 06:27:24 MST 2010
I'm debugging the USB examples and there hangs in the line:

while ((LPC_USB->DevIntSt & (CCEMTY_INT | DEV_STAT_INT)) == 0);

When I plug the LPC1343 USB cable the program continues and works fine but I need to initialize the USB and continue with another tasks.

It seems like the USB device only work when the usb cable is attached. When I dettach the USB cable the uC hangs again in the same while.