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
153 stars 24 forks source link

Failed to flash firmware of CH55x #15

Open Kashouryo opened 3 years ago

Kashouryo commented 3 years ago

I can not flash my CH554 with this tool

python -m ch55xtool -f C:\Users\Gigabyte\Documents\Keil\CH554EXAM\USB\U_DISK\EXAM1\EXAM1.bin -r
Found CH554.
BTVER: V2.31.
Failed to flash firmware of CH55x.

Do you need any other information? I am using a converted version of U_DISK example bin from their official example pack.

I am using Windows, with Zadig and libusb-win32 properly installed, I can see an unknown device that manufactured by WinChipHead.

MarsTechHAN commented 3 years ago

The error is caused by ch55x does not respond correctly during writing flash. Can you flash it with the official WCH tool?

Kashouryo commented 3 years ago

Yes, I can flash it with the official tool

Pe3ucTop commented 2 years ago

I think this problem relay on wrong erase command, which erase only firs 8kb. Because of that verification after flashing could definitely fail for big programs. Problem was reported in #17 , there is first fix but probably not final.