Open prosper00 opened 3 years ago
edit: the vnproch55 programmer used in ch55xduino works fine:
/home/bdroy/.arduino15/packages/CH55xDuino/tools/MCS51Tools/2020.12.01/linux/vnproch55x /tmp/arduino_build_302531/CMSIS_DAP.ino.hex
------------------------------------------------------------------
CH55x Programmer by VNPro
------------------------------------------------------------------
Load file as hex
Loaded 9670 bytes between: 0000 to 25F3
DeviceVersion of CH55x: 2.40
MCU ID: 52 11
Found Device CH552
Bootloader: 2.4.0
ID: 92 11 8A 5C
XOR Mask: 89 89 89 89 89 89 89 DB
Write 9716 bytes from bin file.
.................................................[2K
Write complete!!!
Verify chip
.................................................[2K
Verify complete!!!
------------------------------------------------------------------
so does ch55xtool:
$ ./ch552tool.sh
Found CH552.
BTVER: V2.40.
So, I guess this is because new (since about a year ago) chips ship with bootloader version 2.40, which librech551 doesn't support.
For the benefit of anyone else stumbling onto this repo with this problem, the following flashers DO work with more recent chips:
VNPro (patched for more CH55x chips) (https://github.com/LoveMHz/vnproch55x) This is what's used in ch55xduino
ch55x-isptool (https://github.com/ElectronicCats/ch55x-isptool)
chflasher (https://github.com/atc1441/chflasher)
Linux (Ubuntu 20.10):
I did get a few compiler warnings when building: