-
Notifications
You must be signed in to change notification settings - Fork 24
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
Missing chip data file after pipy installation #25
Comments
The version on pipy is relatively old, please use the source code directly to support the version you mentioned. This tool has been tested to support versions 2.5, 2.6, 2.7 and higher, the version you reported is probably not the version in the current code. |
PS D:\Keil\01-KeilExample\01-Blink\Objects> pip show ch55xtool
Name: ch55xtool
Version: 0.0.2
Summary: An open sourced python tool for flashing WCH CH55x series USB microcontroller
Home-page: https://github.com/MarsTechHAN/ch552tool
Author: Han Xiao
Author-email: [email protected]
License: UNKNOWN
Location: c:\python310\lib\site-packages
Requires: pyusb
Required-by:
PS D:\Keil\01-KeilExample\01-Blink\Objects> python -m ch55xtool -f .\Blink.hex
Chip ID: 52 is not known = not supported
Welcome to report this issue with a screen shot from the official CH5xx tool. WCH tool log: ** User file name:D:\KEIL\01-KEILEXAMPLE\01-BLINK\OBJECTS\BLINK.HEX
** Download bytes:2744 B
User file HASH: B482ADA6A070DA0A5CE963F34EBD700635A46617
Via usb download CH552 firmware
Device No.65729464 is started to download
Jump to BOOT from the user area,configuration bits cannot be modified!
BTVER:02.50
UID:71-79-0-0-0-0-0
Erasing...
complete
Programing...
complete
Verifying...
complete
1#device device download is complete
Total download:1, 1 succeed, 0 failed
time used:0.908s |
Run |
Same again
|
52 is id in HEX, but in the typeall.wcfg it is in DEC. Could there be a problem here? |
This is because the chip data file is missing after pipy is installed, so the installation from pipy cannot be programmed. |
Bug: #25 Signed-off-by: Huang Rui <[email protected]>
We have figured out the cause of this bug and repackaged v1.0.2. The new package will install two chip id configuration files, extended.wcfg and typeall.wcfg. This is not a hex conversion problem, but the file is not found. |
It's works! Thanks! PS D:\Keil\01-KeilExample\01-Blink\Objects> python -m ch55xtool -f .\Blink.bin
Found CH552 with SubId:17
BTVER:02.50
UID:71-79-00-00-00-00-00-00
Erasing chip flash. Done.
Flashing chip. Done.
Finalize communication. Done. |
Should perhaps this line: ch552tool/ch55xtool/ch55xtool.py Line 469 in b9979e4
be changed to this?
then |
then ch55xtool would work as well as python3 -m ch55xtool Issue: #25 Signed-off-by: Huang Rui <[email protected]>
Done e33ff9b. Thanks a lot, this is a nice improvement. |
The text was updated successfully, but these errors were encountered: