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

add hpm6200 family usb id #11

Merged
merged 2 commits into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions hpm_isp/src/hid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ use crate::isp_command::{Error, Interface, IspCommand, Packet};
enum Family {
HPM6700_6400 = 0x0001,
HPM6300 = 0x0002,
HPM6200 = 0x0003,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看了下 6200 的 UM,手册中 PID 写的是 0x0002,但我手上 6300 的板子 PID 也是 0x0002,应该是手册描述有误,先给你合了。感谢 PR。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

刚看到,6200我开始是没看手册的,直接尝试使用发现一直报错无法打开USB设备。改了代码打印USB信息,然后找到同vid的设备有一个pid是0x0003,添加之后能识别到芯片了。刚检查UM确实手册不对,下次有机会给厂家反馈一下。看后面的手册他顺序都是递增的,应该只有这个6200的pid写错了。感谢作者大大的优秀软件😀

HPM6800 = 0x0004,
HPM5300 = 0x0005,
}

impl Family {
Expand Down
Loading