Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有大佬试过V307的host吗? #5

Closed
eddylin83 opened this issue Apr 21, 2023 · 2 comments
Closed

有大佬试过V307的host吗? #5

eddylin83 opened this issue Apr 21, 2023 · 2 comments

Comments

@eddylin83
Copy link

用官方EVT板试了一下。FS下的host demo出现:


 \ | /
- RT -     Thread Operating System
 / | \     3.1.3 build Apr 21 2023
 2006 - 2019 Copyright by rt-thread team
Start usb host task...
ms[I/USB] Dev connect
h >[I/USB] Dev USB_SPEED_FULL
[I/USB] Dev connect
[I/USB] New full-speed device on Hub 1, Port 1 connected
[W/USB] Setup Timeout and retry
[W/USB] Setup Timeout and retry
[W/USB] Setup Timeout and retry
[W/USB] Setup Timeout and retry
[W/USB] Setup Timeout and retry
[W/USB] Setup Timeout and retry
[W/USB] Setup Timeout and retry
[W/USB] Setup Timeout and retry
[W/USB] Setup Timeout and retry
[W/USB] Setup Timeout and retry
[W/USB] Setup Timeout and retry
[W/USB] Setup Timeout and retry
[W/USB] Setup Timeout and retry
[W/USB] Setup Timeout and retry 
......
[E/USB] Failed to get device descriptor,errorcode:-116
[E/USB] Port 1 enumerate fail

但是运行官方的HOST_KM例程是可以成功枚举hub以及下级的鼠标的(鼠标插拔事件都正常)。

至于HS也会有bug,g_hub_intbuf[CONFIG_USBHOST_MAX_EXTHUBS + 1][1]需要改为g_hub_intbuf[CONFIG_USBHOST_MAX_EXTHUBS + 1][CONFIG_USB_ALIGN_SIZE],不然hub使用的buf指针不对齐,出现IN DMA错误。不过HS可以成功枚举hub,但是hub接的鼠标又没有检测出来。

@HaiMianBBao
Copy link
Collaborator

不好意思,在用hub的时候确实有问题,等我后面有时间修复一下。

@sakumisu
Copy link
Contributor

已记录,CONFIG_USB_ALIGN_SIZE 已经修改至主线,wch 的host功能还需要进一步的修改,请耐心等待。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants