Content originally posted in LPCWare by mister_T on Mon May 23 10:31:15 MST 2016
I can confirm that this fixes it. Change function Board_USBD_Init() in board.c. Only new line is the one commented as USB CONNECT. New function is as follows:
void Board_USBD_Init(uint32_t port)
{
/* VBUS is not connected on the NXP LPCXpresso LPC1769, so leave the pin at default setting. */
/*Chip_IOCON_PinMux(LPC_IOCON, 1, 30, IOCON_MODE_INACT, IOCON_FUNC2);*/ /* USB VBUS */
Chip_IOCON_PinMux(LPC_IOCON, 2, 9, IOCON_MODE_INACT, IOCON_FUNC1); //USB connect
Chip_IOCON_PinMux(LPC_IOCON, 0, 29, IOCON_MODE_INACT, IOCON_FUNC1);/* P0.29 D1+, P0.30 D1- */
Chip_IOCON_PinMux(LPC_IOCON, 0, 30, IOCON_MODE_INACT, IOCON_FUNC1);
LPC_USB->USBClkCtrl = 0x12; /* Dev, AHB clock enable */
while ((LPC_USB->USBClkSt & 0x12) != 0x12);
}