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

add hpm6200 family usb id #11

merged 2 commits into from
Mar 12, 2024

Conversation

jzz007
Copy link
Contributor

@jzz007 jzz007 commented Mar 11, 2024

As mentioned, i can read the flash content in the actual test.
如题,实测能读取到flash内容

@jzz007
Copy link
Contributor Author

jzz007 commented Mar 12, 2024

HPM6200有板子测试过。又添加了HPM6800和HPM5300,没有板子测试,不过看起来是能正常工作的。昨天看着vid和pid不对劲,今天翻文档找HPM6800和HPM5300的vid确认了一下,代码里面vid和pid被交换了

@@ -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写错了。感谢作者大大的优秀软件😀

@tfx2001 tfx2001 merged commit 31e7333 into tfx2001:main Mar 12, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants