Migrating from LPC11U68 to LPC54114: What's different with USB?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Migrating from LPC11U68 to LPC54114: What's different with USB?

Jump to solution
743 Views
dean_sands
Contributor II

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.

 

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
704 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

If you want to usb port for LPC54114, you have to enable the usb clock.

1)pls use the code to enable usb clock

SYSCON->AHBCLKCTRL1|=1<<25;

2)you have to set up the USB clock to be 48Mhz before you call the usb code in ROM

 

xiangjun_rong_0-1696836071084.png

 

Pls have a check.

BR

XiangJun Rong

 

View solution in original post

0 Kudos
Reply
2 Replies
705 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

If you want to usb port for LPC54114, you have to enable the usb clock.

1)pls use the code to enable usb clock

SYSCON->AHBCLKCTRL1|=1<<25;

2)you have to set up the USB clock to be 48Mhz before you call the usb code in ROM

 

xiangjun_rong_0-1696836071084.png

 

Pls have a check.

BR

XiangJun Rong

 

0 Kudos
Reply
695 Views
dean_sands
Contributor II

Thanks for the response. It turns out that our board is using the other VUSB pin. After modifying the code to use Pin 1.11, the firmware works and I can use the USB device.

0 Kudos
Reply