rgwan / librech551

Open-source CH55x flashing tool, SDK....
146 stars 36 forks source link

CH551 Changed? #11

Open pangus45 opened 5 years ago

pangus45 commented 5 years ago

Using http://www.electronics-lab.com/ch551-1-80-usb-mini-development-board-based-8-bit-c51-micro-controller/

lsusb shows

idVendor 0x4348 WinChip Head
idProduct 0x55e0

Flashing example code - https://github.com/mogenson/ch551

First attempt gives...

[ 66%] Built target ch551_blinky
[100%] Flashing ch551_blinky.bin to CH551 using wchisptool
Error while bulking in: LIBUSB_ERROR_OVERFLOW
Libre CH551 Flasher 2018
The chip id 0xFFFFFFA2 is currently not support in this program
[100%] Built target flash

I change the code to force the CH551...

 //     if(inbuffer[0] == 0x51)
        if(1)

I then get...

[ 66%] Built target ch551_blinky
[100%] Flashing ch551_blinky.bin to CH551 using wchisptool
Error while bulking in: LIBUSB_ERROR_OVERFLOW
Libre CH551 Flasher 2018
Detected device CH551
Device rom capacity 10240, data flash capacity 128
Binary length 144
Error while bulking in: LIBUSB_ERROR_OVERFLOW
Device bootloader version: -5.11

Error while bulking in: LIBUSB_ERROR_OVERFLOW
Now performing erase...
Error while bulking in: LIBUSB_ERROR_OVERFLOW
Erase failed!
[100%] Built target flash

Any ideas?

NgoHungCuong commented 5 years ago

Yes, now bootloader version is 2.3.1

NgoHungCuong commented 5 years ago

https://github.com/NgoHungCuong/vnproch551/