riscv-mcu / gd32-dfu-utils

Dfu-utils GD32 fork.
GNU General Public License v2.0
42 stars 11 forks source link

dfu-util: Error during download get_status with Longan Nano #4

Open thinxer opened 4 years ago

thinxer commented 4 years ago

I compiled the project on both macOS and ArchLinux, but could not flash successfully. The device could be discovered successfully. However, I am getting error on get_status after downloading consistently.

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
thinxer commented 4 years ago

The board itself seems to be okay and could be flashed successfully on Windows with the GigaDevice DFU tool.

noxer commented 4 years ago

I've got the exact same problem with Ubuntu 19.04. It works for me when using https://devanlai.github.io/webdfu/dfu-util/ (in Chrome). It still shows the error but at least the flashing is successful.

thinxer commented 4 years ago

Upstream has added the support for Longan Nano and exhibits the same error.

https://bbs.sipeed.com/t/topic/1718

DaveDavenport commented 4 years ago

Any solution for this?