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!
Solved! Go to Solution.
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
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
Thank you for the help!