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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,238件の閲覧回数
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 件の賞賛
返信
1 解決策
1,223件の閲覧回数
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

元の投稿で解決策を見る

2 返答(返信)
1,224件の閲覧回数
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,211件の閲覧回数
changlin_ren
Contributor II

Thank you for the help!

0 件の賞賛
返信