Code Monkey home page Code Monkey logo

Comments (7)

ggggxiaolong avatar ggggxiaolong commented on September 24, 2024 9

I have the same problem in Ubuntu and solve it by add file /etc/udev/rules.d/70-ttyusb.rules

SUBSYSTEM=="usb", ATTRS{idVendor}=="28e9", ATTRS{idProduct}=="0189", MODE="0666"
SUBSYSTEM=="usb_device", ATTRS{idVendor}=="28e9", ATTRS{idProduct}=="0189", MODE="0666"

then replug usb

from gd32-dfu-utils.

jribesgo avatar jribesgo commented on September 24, 2024 1

Hi! I was on the same page as you, and I was able to solve this issue by manually installing the WinUSB driver and by locally compiling the current version of dfu-util in the git dev branch. I have roughly documented the process here. Hope it helps!

from gd32-dfu-utils.

flxzt avatar flxzt commented on September 24, 2024

I am experiencing the same thing. I cant load the libusb drivers in Zadig either. Did you find a solution in the meantime?

from gd32-dfu-utils.

maxgerhardt avatar maxgerhardt commented on September 24, 2024

Hm I tried using libusb-win32-bin-1.2.6.0.zip from https://sourceforge.net/projects/libusb-win32/files/libusb-win32-releases/1.2.6.0/ to install a libusb-win32 filter for the USB device. It said it could install the filter successfully but then the device fails to re-enumerate and is shown as "Unknown USB device (requesting device descriptor failed)"

grafik

grafik

So I'm still at a loss on how to properly install a libusb filter for the device. I'd like to try this method

https://www.smallcab.net/download/programme/xm-07/how-to-install-libusb-driver.pdf

But the inf-wizard.exe just crashes for after being executed..

from gd32-dfu-utils.

maxgerhardt avatar maxgerhardt commented on September 24, 2024

Whoa I have no idea what I did but I used the the above libusb-win32 filter and pressed the reset button shortly after the installer wants to reset the device, and after that I still have the same device in the device manager, but dfu-util now says

C:\Users\Maxi\Desktop\Neuer Ordner>dfu-util -d 28e9:0189 -a 0 --dfuse-address 0x08000000:leave -D "C:\Users\Maxi\Documents\PlatformIO\Projects\risv5_test\.pio\build\wio_lite_risc-v\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/

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 = 11084
Download        [=========================] 100%        11084 bytes
Download done.
File downloaded successfully
Error sending dfu abort request

But exiting the DFU mode fails and also the new firmware doesn't seem to be running (still the one from the last really succesful upload). So it's still a fail.

from gd32-dfu-utils.

stanleyseow avatar stanleyseow commented on September 24, 2024

Same issues as above, I tried to follow the above instructions, I got lost in installation of the winUSB part ...

Pls help ...

from gd32-dfu-utils.

ezoia-com avatar ezoia-com commented on September 24, 2024

@jribesgo Thanks! Followed your process recompiling and replacing the dfu-util by PlatformIO, I'm now able to use the VSCode IDE to build and upload. I still get "Error during download get_status" but the code seems to run fine.

from gd32-dfu-utils.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.