nanovna-v2 / NanoVNA2-firmware

Firmware for NanoVNA V2
https://nanorfe.com/nanovna-v2.html
222 stars 87 forks source link

Unable to enter DFU mode #7

Closed nieldk closed 4 years ago

nieldk commented 4 years ago

After updating to the recent firmare - git-20200531-429c186 I am unable to stay in DFU mode.

menu->config->dfu->reset and enter dfu

It does enter DFU, but the device resets instantly and powers up in normal mode.

nanovna commented 4 years ago

does entering dfu by holding down the left button still work?

nieldk commented 4 years ago

No, it also boots straight up (everything seems to work as normal, just I can’t enter DFU)

nlroth commented 4 years ago

That was never an option on the original Nanovna.On the H4, you could enter DFU by pushing the jog straight in and applying power.It's a hardware thing - not software.Anyone can modify their older nanovna device by adding a jumper and changing a resistor so that it too, can enter DFU by holding in the jog switch and applying power.See my post on that (Search through my posts from the last 6 months - can't remember the number off hand) Regards,Larry

On Tuesday, June 2, 2020, 8:42:47 a.m. EDT, nanovna <notifications@github.com> wrote:  

does entering dfu by holding down the left button still work?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

nanovna commented 4 years ago

if you used st-link or jtag programmer to flash the firmware, it probably overwrote the bootloader at 0x08000000, you can reflash the bootloader at 0x08000000 and firmware at 0x08004000. if you used dfu to flash the firmware it protects against writing to the bootloader.

nieldk commented 4 years ago

This is the Nanovna-2 firmware Rev 2.02 board, not the original version 1.

I figured out the problem. I flashed the bootloader, and now it works again. Probably I erased that when flashing using Jlink.

nieldk commented 4 years ago

Solved by flashing bootloader