¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

dfu_util command line for updating firmware please ?


 

Folks..

I have an ancient NanoVNA, 0-900Mhz, sandwich board type.

I have dfu_util already on my Linux PC and working.

I have a bunch of .dfu files (NOT .BIN) that I'd like to experiment with.

All I need now is the dfu_util command line params, can any one help ?

Thanks.

73 de Andy


 

These params work for me:
for dfu file:
dfu-util -a 0 -D filename.dfu

for bin file:
dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D filename.bin


 

Andy,

Don't know if this will help but these info below is what I used to update my firmware in my NanoVNA-H4.

NanoVNA H / H4 Firmware
Now you have to download the firmware. You can find it on Github under the following Link DiSLord NanoVNA: DiSLord NanoVNA-H4 Firmware
Make sure to select the correct version, depending on whether you have the H or H4 variant. The wrong firmware makes the device unusable for the time being. You can still write the firmware directly on the chip, but you will need the appropriate hardware.
At the time of this post, version 1.0.64 was current. Here you need to download the file with the extension .dfu:

NanoVNA H / H4 in DFU mode and install driver
1. First, the NanoVNA H4 must be set to DFU mode: To do this, press the joystick in the middle and switch on the device. The screen should now remain black.
2. With the NanoVNA H, the DFU mode is started via the Config Menu.
3. Now the NanoVNA H4 can be connected to the computer via USB. Probably the USB driver is missing in the Device Manager.
4. Then the driver must be installed in the device manager from the DFU installation path via the device manager. You can find it here: C:\Program Files (x86)\STMicroelectronics\Software\DfuSe v3.0.6\Bin\Driver\Win10
5. Now DfuSeDemo can be started from the start menu.
Firmware Flash with DfuSE
In the DfuSE, the lower ¡°Choose Button¡± must then be clicked:

Now the just downloaded firmware file can be selected:

John

John Barnett, Jr. P.E. - 37424
Wireless Communication Systems - F1866
Cell: 903-399-4804
email: john.barnett@...
Web Site: www.wirelesscommsys.com

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Andy Foad via groups.io
Sent: Saturday, August 12, 2023 10:01 AM
To: [email protected]
Subject: [nanovna-users] dfu_util command line for updating firmware please ?

Folks..

I have an ancient NanoVNA, 0-900Mhz, sandwich board type.

I have dfu_util already on my Linux PC and working.

I have a bunch of .dfu files (NOT .BIN) that I'd like to experiment with.

All I need now is the dfu_util command line params, can any one help ?

Thanks.

73 de Andy


 

All fine and dandy, but non-applicable on the Linux system the OP was asking about. There, you get either the CLI he is asking ahout, or the ST Cube programmer.

On August 12, 2023 12:24:53 PM EDT, John Barnett K5GYU <john.barnett@...> wrote:
Andy,

Don't know if this will help but these info below is what I used to update my firmware in my NanoVNA-H4.

NanoVNA H / H4 Firmware
Now you have to download the firmware. You can find it on Github under the following Link DiSLord NanoVNA: DiSLord NanoVNA-H4 Firmware
Make sure to select the correct version, depending on whether you have the H or H4 variant. The wrong firmware makes the device unusable for the time being. You can still write the firmware directly on the chip, but you will need the appropriate hardware.
At the time of this post, version 1.0.64 was current. Here you need to download the file with the extension .dfu:

NanoVNA H / H4 in DFU mode and install driver
1. First, the NanoVNA H4 must be set to DFU mode: To do this, press the joystick in the middle and switch on the device. The screen should now remain black.
2. With the NanoVNA H, the DFU mode is started via the Config Menu.
3. Now the NanoVNA H4 can be connected to the computer via USB. Probably the USB driver is missing in the Device Manager.
4. Then the driver must be installed in the device manager from the DFU installation path via the device manager. You can find it here: C:\Program Files (x86)\STMicroelectronics\Software\DfuSe v3.0.6\Bin\Driver\Win10
5. Now DfuSeDemo can be started from the start menu.
Firmware Flash with DfuSE
In the DfuSE, the lower ¡°Choose Button¡± must then be clicked:

Now the just downloaded firmware file can be selected:

John

John Barnett, Jr. P.E. - 37424
Wireless Communication Systems - F1866
Cell: 903-399-4804
email: john.barnett@...
Web Site: www.wirelesscommsys.com

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Andy Foad via groups.io
Sent: Saturday, August 12, 2023 10:01 AM
To: [email protected]
Subject: [nanovna-users] dfu_util command line for updating firmware please ?

Folks..

I have an ancient NanoVNA, 0-900Mhz, sandwich board type.

I have dfu_util already on my Linux PC and working.

I have a bunch of .dfu files (NOT .BIN) that I'd like to experiment with.

All I need now is the dfu_util command line params, can any one help ?

Thanks.

73 de Andy










--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


 

On Sat, Aug 12, 2023 at 05:20 PM, <btomek@...> wrote:


These params work for me:
for dfu file:
dfu-util -a 0 -D filename.dfu

for bin file:
dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D filename.bin
Dzi?ki ;-)


David McGuire
 

Hi John.

My Device Manager says that it is STM32 BOOTLOADER. I cannot seem to get a driver for the software. I went into the location your suggested. Would you have another idea?

Thank you.

David


 

on my v2plus4 and my saa2n (a v2 clone with 4 inch and n sockets) the upload of a new fw is with pressing the left (connectors down) or the right (connectors up) button to switch the unit into bl mode .. in your case pressing the jog dial in is the same as when i press MIDDLE button (not left or right!!) ... so you need to press jog dial sideways? and switch on to get the unit in bl mode (just a guess)

for uploading i use nano vna APP (nice frontend, easy to use and besides using the nano with it you also can make SCREENSHOTS from the nanos display)

hth

dg9bfc sigi


 

David,

I had a similar problem. DFUseDemo was loaded with the Bootloader driver which I use with STM32 CubeProgrammer for my Malahite DSP2 receiver. It uses the bootloader mode to update firmware. Sometimes when I exit it saves the bootloader driver.

To change drivers for the DFU Mode perform the following:

Start DFuSe Demo. If it does not detect any device in DFU mode do the following:
Start the Device Manager
- Under "Universal Serial Bus devices" you should see "STM32 BOOTLOADER"
- right click on "STM32 BOOTLOADER" and select "Update Driver"
- select "Browse my computer for drivers"
- select "Let me pick from a list of available drivers on my computer"
- Under "Select the device driver you want to install for this hardware". Check the "Show compatible hardware" box
- You should see the "STM Device in DFU Mode" and "STM32 Bootloader" drivers.
- Select the "STM Device in DFU Mode" driver.
- Select "Next" and it should display "Windows has successfully updated your drivers" Close this box
- The Device Manager should show:
"Universal Serial Bus Controllers"
"STM Device in DFU Mode"
- DfuSe Demo will detect the device in under DFU Mode.

Mike N2MS

On 08/13/2023 2:57 PM EDT David McGuire <leviticus25_9@...> wrote:


Hi John.

My Device Manager says that it is STM32 BOOTLOADER. I cannot seem to get a driver for the software. I went into the location your suggested. Would you have another idea?

Thank you.

David