ch552tool icon indicating copy to clipboard operation
ch552tool copied to clipboard

Failed to recongnize a CH552 device on UBUNTU 22.04

Open MALossov opened this issue 3 years ago • 4 comments

$ 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?

MALossov avatar Aug 22 '22 08:08 MALossov

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

kossnikita avatar Sep 02 '22 08:09 kossnikita

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?

gniezen avatar Oct 05 '22 10:10 gniezen

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.

kossnikita avatar Oct 05 '22 18:10 kossnikita

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.

gniezen avatar Oct 06 '22 07:10 gniezen