I'm porting our existing code from the LPC11U68 to the LPC54114.
Here's what I have so so far:
- Changed the ROM ptr to 0x03000200 so USBD_API will work.
- Enabled the VBUS
- Setup the USB parameters and descriptors
- Initialized via USBD_API->hw->init()
- Setup the CDC parameters and descriptors
- Initialized via USBD_API->cdc->init()
- Enabled the USB IRQ via NVIC_Enable
It's not working yet, and I don't know why.
Two things I noticed after my coworker took back the board is that I wasn't setting the USB IRQ priority and that USB_IRQHandler() changed to USB0_IRQHandler().
I'll try it again when I'm set back up.
Update: Still not working, but I've also disabled the power-down with POWER_DisablePD().
I'm working through the lpcxpresso54114_rom_dev_cdc_bm example and it's way easier to understand than the weight scale example I started with.