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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,360 次查看
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.

 

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
1,321 次查看
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 项奖励
回复
2 回复数
1,322 次查看
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 项奖励
回复
1,312 次查看
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 项奖励
回复