MarsTechHAN / ch552tool

An open sourced python tool for flashing WCH CH55x series USB microcontroller with bootloader v2.30, v2.31 & v2.40.
GNU General Public License v3.0
158 stars 24 forks source link

Failed to recongnize a CH552 device on UBUNTU 22.04 #26

Open MALossov opened 2 years ago

MALossov commented 2 years ago

$ ch55xtool -p Chip ID: 52 is not known = not supported Welcome to report this issue with a screen shot from the official CH5xx tool.

May it be my device's problem with its bootloader version?

kossnikita commented 2 years ago

probably duplicate https://github.com/MarsTechHAN/ch552tool/issues/25

gniezen commented 2 years ago

Seeing a similar issue with CH582 on Ubuntu 20.04:

Chip ID: 82 is not known = not supported
Welcome to report this issue with a screen shot from the official CH5xx tool.

According to typeall.wcfg CH582 should have chip ID 130, which is 0x82. Could it be an issue with hex->dec on Linux?

kossnikita commented 2 years ago

Check the file typeall.wcfg in your package. To do this:

  1. get location of package
pip3 show ch55xtool | grep Location
  1. get file list
ls -l <package location>/ch55xtool

If there is no typeall.wcfg, please reopen #25.

gniezen commented 2 years ago

I can confirm that there is a typeall.wcfg in the package. Ran python ./ch55xtool.py in that folder and it worked.

Just realised that I should be using python -m ch55xtool instead of just ch55xtool. :facepalm: Looks like that is maybe @MALossov 's problem as well?

Now getting another error:

Erasing chip flash. Done.
 Failed. Address 0
Flashing chip.

but that should be handled as a separate issue I guess.