Re: NanoVNA bricked
Just buy ST-LINK2 on aliexpress: https://www.aliexpress.com/item/32839270086.html
it allows to flash STM32 even if it is bricked. You will need to connect GND=GND, VDD=3.3V, SWDIO=SWDIO, SWCLK=SWCLK. These signals are placed near boot jumper on the right side of nanoVNA.
In order to flash you will need ST-LINK Utility: https://www.st.com/en/development-tools/stsw-link004.html
Connect ST-LINK to NanoVNA, start ST-LINK Utility, and set the following values in the window:
Data width: 8 bits
After that select menu: Target => Connect, it should connect to STM32 and show it's memory content.
Use File => Open file menu to open HEX file with NanoVNA firmware.
And then flash it into NanoVNA with menu Target => Program and verify
That's it :)
See HEX file with NanoVNA firmware in attachment.