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

Support Mac OS #6

Closed sabas1080 closed 4 years ago

sabas1080 commented 4 years ago

Hi @MarsTechHAN

I am testing this script and not work in Mac OS, python3 with CH559

Chip is always in mode boot

Thanks

MarsTechHAN commented 4 years ago

Hi, The script was tested on various macOS version,so it should work in macOS, but I actually didn't test on CH559 yet. Can you upload the log here, you said the chip is always in boot mode, which means that you did finish the whole process of the script? And also, did you make sure your program file is working and not corrupted.

sabas1080 commented 4 years ago

The script support file .hex or only .bin?

MarsTechHAN commented 4 years ago

Oh, it's now only support bin... I might add it when I got time. You can use convert hex to bin by objdump

objcopy --input-target=ihex --output-target=binary code00.hex code00.bin