Updating the software
Linux
Connect the nanoVNA_H4 to the PC using the USB cable. Press the jog button next to the on/off switch and switch the nanoVNA-H4 on to get the device into DFU mode. After starting the device in DFU mode, one can use dfu-util, https://dfu-util.sourceforge.net/ and run this command (as root unless the needed user permissions have been properly set up)
dfu-util -a 0 -s 0x08000000:leave -D tinyPFA.bin
Windows
If you already have STM32Cube programmer installed on your PC you may skip to "When finished"
Go to https://www.st.com/en/development-tools/stm32cubeprog.html
Scroll down to Get SW, click select version and select version 2.15. Do not use Latest version or version 2.16. You will have to register with ST and they will start sending you emails but you can quickly opt out Once download is done, make sure the nanoVNA-H4 is not connected and install the SW , accept the license and keep all the default options. This will also install all required drivers
When finished connect the nanoVNA_H4 to the PC using the USB cable Press the jog button next to the on/off switch and switch the nanoVNA-H4 on to get the device into DFU mode The screen should stay black. If something appears on the display the jog button was not correctly pressed when powering on. Try again.
Go to http://athome.kaashoek.com/tinyPFA/DFU/ and download the latest tinyPFA.bin software image and store somewhere on your PC.
Start STM32CubeProgrammer and click on the button in the red circle. Make sure "USB" is selected in the button left of CONNECT and click on "No DFU" to select a USB port listed, you may have to click the refresh button to the right to refresh the list of ports, and once "No DFU" has changed to something like "USB1", click CONNECT
Now the window will look like this:
Use the BROWSE button to select the downloaded tinyPFA.bin file. Leave all settings as shown above and click START PROGRAMMING. After some seconds the nanoVNA-H4 will reboot and start up as a PFA
Go to First Use