OpenNuvoton / N9H30_NonOS

N9H30 Non-OS BSP
10 stars 4 forks source link

HID HOST issue with N9H30K41 #6

Open updesh31 opened 2 years ago

updesh31 commented 2 years ago

Currently I am using HMI-N9H30 dev board with N9H30K41 MPU with RT-Thread V4.1.0. All peripherals working ok. In USB HOST mode MSC is working Ok but when I am going to attach a keyboard always getting an error: msh />EHCI port2 status change: 0x1403 EHCI port 2 - port reset failed! OHCI port2 status change: 0x10301 OHCI connect device. get full device descriptor failed

ychuang3 commented 2 years ago

In Library/UsbHostLib/inc/config.h, enable all debug message and post the UART messages.

define ENABLE_ERROR_MSG / enable debug messages /

define ENABLE_DEBUG_MSG / enable debug messages /

define ENABLE_VERBOSE_DEBUG / verbos debug messages /

define DUMP_DESCRIPTOR / dump descriptors /

updesh31 commented 2 years ago

msh />start enumnation pipe transform remain size,: 8 pipe transform remain size,: 0 1 == USBH_PID_DATA, nil buf-0 rt_usb_set_address pipe transform remain size,: 0 1 == USBH_PID_DATA, nil buf-0 get device descriptor length 18 pipe transform remain size,: 18 get full device descriptor failed port 2 status 0x0

wosayttn commented 2 years ago

Replied https://github.com/RT-Thread/rt-thread/issues/6216.

updesh31 commented 2 years ago

Replied RT-Thread/rt-thread#6216.

How can I use HID host for it?

ychuang3 commented 2 years ago

At present, N9H30 USB Host library supports mass storage device only. Try N9H30_nonOS example https://github.com/OpenNuvoton/N9H30_NonOS/tree/master/SampleCode/USBH_HID