LPC54628 use USB0 as FS host controller and USB1 as HS device controller

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

LPC54628 use USB0 as FS host controller and USB1 as HS device controller

Jump to solution
1,236 Views
changlin_ren
Contributor II

One of my project goal is to set USB0 as host controller to control our USB devices and USB1 as device controller to allow external devices to access on board flash. 

I create separate projects for USB0 FS host controller and USB1 HS device controller, each project worked OK on my board. (I used lpcxpresso54628_host_msd_fatfs_bm and  lpcxpresso54628_dev_composite_cdc_msc_disk_bm as reference)

But when I put the code together, seems USB1 HS device controller worked OK, but USB0 FS host controller always failed during enumeration in USB_HostSendSetup(...) on kStatus_DEV_GetDes8. USB_HostOhciGetGtd(...) always returns kStatus_USB_Busy.

From general point, is there any conflicts to run both host controller code and device controller code together? any troubleshooting hints?

Does anyone have an example?

Thank you!

 

0 Kudos
Reply
1 Solution
1,221 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI changlin_ren 

USB0 and USB1 can work parallel in the same project. But in order to avoid conflict, we suggest setting different task priority on each task when created. You could take usb_keyboard2mouse sdk example as reference.

Thanks,

Jun Zhang

View solution in original post

2 Replies
1,222 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI changlin_ren 

USB0 and USB1 can work parallel in the same project. But in order to avoid conflict, we suggest setting different task priority on each task when created. You could take usb_keyboard2mouse sdk example as reference.

Thanks,

Jun Zhang

1,209 Views
changlin_ren
Contributor II

Thank you for the help!

0 Kudos
Reply