Hi,
Pls try to set the USBDIV with a non-zero value, you'd better get 48MHz USB clock by configuring the register including the USBDIV bits and USBSEL bits.
This is the procedure:
1)LPC_SC->PCONP |= 0x80000000
2)LPC_SC->USBCLKSEL=0x01|xx;
3)LPC_USB->OTGClkCtrl = 0x00000019;
4)checking the LPC_USB->OTGClkSt register
Hope it can help you
BR
XiangJun Rong
xiangjun_rong_0-1657075233785.png