Page 1 of 1

USB hub with usb host keyboard error

Posted: 03 Dec 2020, 20:17
by sridhar
Hi
My usb host sample code is not working with usb hub with pendrive and keyboard

When I connect keyboard/flash drive directly into USB HOST port, it is working fine
When I am inserting/ejecting usb hub, it gets detected
When I connect flash drive into usb hub, it is also working fine
But when I connect keyboard into usb hub, it is not responding properly

We mainly need to know why we are facing this TD error
I am also attaching our product prototype

I am attaching my error in screen shot
So reply us with your good working code
Thanks
R Sridhar

Re: USB hub with usb host keyboard error

Posted: 15 Apr 2021, 11:46
by suyu
Hi,

There are USBH_HIDs for different devices in the BSP. You can have a try on it with NuMaker board.
Take M2351 for example. You can find the BSP here https://github.com/OpenNuvoton/M2351BSP ... /StdDriver.
There are corresponding drivers for different devices, and you can find the sample code based on your situation. E.g. USBH_HID_Keyboard.