Just bought 2 from the official taobao store. I have tried both compiling
gd32-dfu-utils on macOS and Linux, and the one came with platformio on Linux, but with no success. The only thing working for me is the GigaDevice DFU tool on windows.
The output of
dfu-util 0.9 Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2016 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/ Found DFU: [28e9:0189] ver=0100, devnum=7, cfg=1, intf=0, path="20-3", alt=0, name="@Internal Flash /0x08000000/128*001Kg", serial="3CBJ"
The output of
dfu-util -alt 0 -s 0x08000000:leave -D ./firmware.bin:
dfu-util 0.9 Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2016 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/ dfu-util: Invalid DFU suffix signature dfu-util: A valid DFU suffix will be required in a future dfu-util release!!! Opening DFU capable USB device... ID 28e9:0189 Run-time device DFU version 011a Claiming USB DFU Interface... Setting Alternate Setting #0 ... Determining device status: state = dfuIDLE, status = 0 dfuIDLE, continuing DFU mode device DFU version 011a Device returned transfer size 2048 GD32 flash memory access detected Device model: GD32VF103CB Memory segment (0x08000000 - 0801ffff)(rew) Erase size 1024, page count 128 Downloading to address = 0x08000000, size = 6584 Download [=========================] 100% 6584 bytes Download done. File downloaded successfully dfu-util: Error during download get_status
The download was actually not successful.
I have also opened an issue at https://github.com/riscv-mcu/gd32-dfu-utils/issues/4.