I am using Win7 64 bit.
I am trying to run the blink.cpp example for the Sipeed Longan Nano and am stuck on step 6:
6. Install drivers using Zadig
PIO has a built-in dfu-util download tool. To use this tool, you need to install the libusb driver for the development board. (Note: different from GD official driver)
It is recommended to install the winusb driver via Zadig. download link
The âGD32 device in dfu modeâ does not appear in the Zadig drop down list.
The Longan nano board does not appear as a USB device in Windows device manager.
Zadig has a work around if a preset device config file can be created but I donât know the VID, PID, and MI parameters.
Need help getting past this point.
Hi There
mabey you should click Options -> List All Devices ,as below
Did you try to press BOOT0 and keep while for short time pres RESET?
I miss this step and no device was visible in device manager in WIN10.
I found this trick, but I moved to another computer with Ubuntu, compile blink and program with dfu-util.
But no blinking was visible. Now I back to Windows computer and Unknow device is visible in Win Device Manager
Zadig software still donât see the board on the list
Well, it is 11 months later and I am having the same problem. Zadig doesnât see the device. This is under Window 10 Pro. When I do the boot reset sequence I get an unknown device showing up under device manager and a couple of new entries in Zadig, but they are not âGD32 Device in DFU modeâ. I have read of a couple of people who fixed their machine, but it was a load of work with tools I donât have. Surely someone has fixed this by now, or is everyone just giving up and using linux?
One other thing, when I went to download the USB DFU tool as in step six of getting to blinky, I got a json message saying that it was a big file, but no download.
Hi,
i would like to debug over USB (DFU). How can I make it in Eclipse or Nuclei Studio IDE?
many greetings
2+ years later and I believe have the solution for everyone. Try the following if this is happening to you.
Before we begin, a note. Because of the possibility of bricking your WIndoze PC by F-ing with installed device drivers, we really want to sanity check that the Nano is actually getting connection, and there isnât something physically wrong with it. We do this by putting the nano in boot mode (hold boot button while plugging it in) then looking for the expected Product and Vendor IDâs in device manager. If you get nothing from this first block of steps, then you have something else going on you need to sort out first.
- Click the start/windows button, and start typing âdevice manager.â Open it.
- Find the âunknown deviceâ (under âother devicesâ for me, but you may have to search.)
- Right click, âPropertiesâ.
- Go to âDetailsâ tab.
- Select âHardware Idsâ from the âPropertyâ combo box/list.
- âValueâ display box should read âUSB\VID_28E9&PID_0189â
(28E9:0189 is the VID and PID part of the USB descriptor for the Longan Nano in DFU boot loader mode. You will not see this unless your Longan Nano is properly attached to your computer and also in boot loader mode. We now have our device, and therefore can be reasonably sure the rest of the procedure will succeed.)
- Go back to the âdriverâ tab, and click the âupdate driverâ button.
- Click âBrowse my computer for driversâ
- Click âLet me pick from a list of available drivers.â
- Scroll down the list, and pick âUniversal Serial Bus Devicesâ
- Next, under âmanufacturerâ click âUndefined Vendorâ
- At this point, you should see âWinUSB Generic Device Version x.y.zâ under âModelâ
- Click Next/Yes through the rest, you should be good.
Explanation:
It appears that Window$ is not associating the Longan Nanoâs DFU firmware IDâs with a driver. It certainly doesnât recognize it as a valid reason to let it use WinUSB. Thanks to this, Winbloz simply throws its hands up, calling it an âunknown deviceâ and just leaves it like that. It doesnât even have the decency to let you know the stuff isnât installed correctly.
The fix is to manually instruct the (P)OS to use WinUSB as this deviceâs driver via good old device manager. No need for Zadig, or to install questionable drivers/iniâs, or to compile any software from source. Windos device manager will work just fine. Then PIO will work just fine.
P.S. You REALLY should be using GNU/Linux, itâs better over here, trust me.