USB Host and USB Devices in lpc1788

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

USB Host and USB Devices in lpc1788

884 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by allanzyx on Wed Jul 02 04:46:54 MST 2014
ChipSet: lpc1788
I have worked couple days for running USB Host and USB Device at same time. USB port1 used as USB Device working as vitual com port, USB Port2 used as USB Host to connecting a USB disk. Now these 2 parts code is running well separately. when I merge them into one. Of Course, I do some changes. These 2 parts code both used USB_IRQHandle to deal with interrupt. I added VCOM USB interrupt routine and USB Host interrupt routine into one IRQHandle routine.
but after USB devices initialize routine and USB Hos initialize routine, my code hang in the interrupt routine, cann't step out.
could you please let me know to how to deal USB routine when USB host and USB device running at same time.it will be better if you can send me a sample code.
If this chip can NOT support USB Host and USB device running as same time. please let me know.
Thanks a lot.
Allan
Labels (1)
0 Kudos
Reply
1 Reply

765 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by allanzyx on Wed Jul 09 06:46:03 MST 2014
does USB host and USB device can work in lpc1788 at same time.
0 Kudos
Reply