Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Bug or fubar'd upgrade?
#firmware
TL:DR I upgraded my NanoVNA-H to DiSlord 1.1.01 and now Marker min is max and max is min. Is this a known bug or did I mess up the upgrade?
The details I know you'll want: I'm running Windows 10 on a HP EliteBook. I tried every possible set of instructions to upgrade with DfuSeDemo, but was never able to see the NanoVNA in DFU mode. I mean, every possible variation. I've installed and uninstalled DfuSeDemo and various versions of the driver so many times in so many ways I could do it in my sleep. I would have asked for help except I suspect you lot are sick and tired of newbies asking for help updating firmware. But here I am... Finally I noticed a comment that STM32CubeProgrammer has worked for Linux and found a PDF from Tim Dawson (/g/nanovna-users/message/28607) on how to do it and decided to give it a try on the theory that if the Linux version worked there's no reason why the Win10 version shouldn't work. I was able to find a .bin file from Huygen () and loaded it following the instructions with no issues. I should probably mention that I used the NanoVNA-H-SI version, not the NanoVNA-H-MS version. My NanoVNA is a few years old and reading creatively between the lines it seemed like MS might be some newer technology, so SI seemed the safer route. No errors - I compared the file with the image, perfect match. When I started the NanoVNA everything seemed to be working as expected, with a few menu changes and wording modifications, but nothing I couldn't figure out. Then I connected my antenna to run it through it's paces and I noticed that when I select my SWR marker and select Marker -> Minimum it work immediately move the marker to maximum SWR, and v.v. So, the question is - is this a known bug or something I messed up in the upgrade, or an advanced setting of some sort that I can change? |
Jeff -
toggle quoted message
Show quoted text
I'm glad that my doc was useful to you! Please be aware, though, that there is no "Linux" or "Windows" version of the firmware. The dfu is simply an encapsulation of the same image that is in a .nin (or .hex) for that matter. The different tools just jse the different packages - IE Cube on Linux or Windows will want the .bin, and the various dfu based tools will want a dfu, again, on either platform. I'm not sure how many revisions you jumped, but the one thing that can bite you is an incompatible config file. Try resetting the NanoVNA to defaults and reconfigure, if you have not do e so already. Oh, and can't say that I have seen that bug, but I have not used my unit much since that upgrade either - others likely know more on the topic. - Ti On August 21, 2022 3:03:29 PM CDT, Jeff Peacock <km6nqx@...> wrote:
TL:DR I upgraded my NanoVNA-H to DiSlord 1.1.01 and now Marker min is max and max is min. Is this a known bug or did I mess up the upgrade? --
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
He was referring to Linux and Windows versions of STM32CubeProgrammer, not
toggle quoted message
Show quoted text
the firmware. However you get the firmware there, it's running on an ARM microcontroller that doesn't run a full OS at all. DfuSe Demo not working on modern machines is a known issue and STMicro won't fix it. That software is no longer supported (though you can still download it) and STM32CubeProgrammer is the recommended replacement.The new software does not appear to have any problems with running on new computers. Those of you who have a tinySA or a DMR radio from China will encounter the same issue with those; they also use DfuSe Demo or STM32CubeProgrammer to update their firmware. On Sun, Aug 21, 2022 at 5:15 PM Tim Dawson <tadawson@...> wrote:
Jeff - |
Cliff
Where would I find the corresponding .bin file for the H4?
toggle quoted message
Show quoted text
73, Cliff, AE5ZA On Aug 22, 2022, at 15:16, DiSlord <dislordlive@...> wrote: |
Cliff,
I suggest you use NanoVNA app as your PC program. It is easy to use for firmware updates and has never failed me yet. It also does all the things that NanoSaver does and in my opinion is better. Owen Duffy did some nice bug fixes on the original code by OneOfEleven. You can get it at the link below. Once installed you do the following easy steps: 1. Put your device in DFU mode 2. Start NanoVNA app 3. Push multiple up arrow button (do not use connect - it is for regular connect not DFU) 4. Select the location of your dfu file and select file 5. Program does the upload and says to power off device when finished. Roger |
Cliff
Thank you for your suggestion Roger, but I don't think you understand what I am looking for. I'm looking for the .bin version of the firmware 1.2 update file. I'm on Mac and use the STM Cube Programmer to update my NanoVNA H4. The NanoVNA-App appears to be a Windows program.
toggle quoted message
Show quoted text
73, Cliff, AE5ZA On Aug 22, 2022, at 16:53, Roger Need via groups.io <sailtamarack@...> wrote: |
Note that Cube is the *ONLY* programmer tool that STMicro officially supports . . . (and which should support all platforms).
toggle quoted message
Show quoted text
It should be without flaw, the developers just need to drop plain .bin files as well as the .dfu (encapsulation of the .bin). Huygen seems to have .dfu, .bin, and .hex for all his builds, not sure why DisLord does not do likewise - it's not much of a change in the build process. - Tim On 08/22/2022 04:53 PM, Roger Need via groups.io wrote:
Cliff, --
Tim Dawson 972-567-9360 |
I was able to use STDFU File Manager to extract the .bin file from the 1.2.0 .dfu and then load it with STM32CubeProgrammer, which seems to have worked fine. I've been playing around with it a bit, and I think I've realized that I had a fundamental misunderstanding of the search function. I've been thinking that Search Minimum was an action, but I realize now that it's a setting/target to be used in conjunction with Search Left or Search Right (i.e. for the next minimum). Which makes DiSlord's comment above (#29375) make a lot more sense to me in retrospect. Words are slippery things.
Anyway, all is well and I really appreciate the comments and pointers. |
Does that program (STDFU File Manager) have a Linux build?
toggle quoted message
Show quoted text
It's about the only component missing on tbe Linux side for coders that only output .dfu (and why Cube can't extract ftom dfu is a mystery, unless ST really wants to drop dfu support completely) I see "dfuse-extract" on GitHub, and being a Python tool, it should be portable across all Cube supported platforms . . . might you have tried it? There has got to be a way to have a consistent programming platform across all platforms, and while not small, Cube appears to be the closest (other than directly using .dfu files . .) On August 22, 2022 11:12:40 PM CDT, Jeff Peacock <km6nqx@...> wrote:
I was able to use STDFU File Manager to extract the .bin file from the 1.2.0 .dfu and then load it with STM32CubeProgrammer, which seems to have worked fine. I've been playing around with it a bit, and I think I've realized that I had a fundamental misunderstanding of the search function. I've been thinking that Search Minimum was an action, but I realize now that it's a setting/target to be used in conjunction with Search Left or Search Right (i.e. for the next minimum). Which makes DiSlord's comment above (#29375) make a lot more sense to me in retrospect. Words are slippery things. --
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
On Tue, Aug 23, 2022 at 06:41 AM, Tim Dawson wrote:
For FW upgrade on a Linux system you can use "dfu-util" that is available e.g. for Debian: $ apt show dfu-util Package: dfu-util Version: 0.9-1+b1 Priority: optional Section: electronics Source: dfu-util (0.9-1) Maintainer: Uwe Hermann <uwe@...> ... DFU is intended to download and upload firmware to devices connected over USB. It ranges from small devices like micro-controller boards up to mobile phones. With dfu-util you are able to download firmware to your device or upload firmware from it. Just do "apt install dfu-util" The program can flash *.bin as well as *.dfu binaries: dfu-util -a 0 -D NanoVNA.H.v1.2.00.dfu To build the FW on your own from the github clone (you need also "apt install gcc-arm-none-eabi") just type "make" and "make flash", this calls: dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D build/ch.bin HTH, Martin |
No desire - Cube is a far better tool, and supported by ST. I see no real advantage to .dfu over .bin, and ST has obsoleted it as well.
toggle quoted message
Show quoted text
On August 23, 2022 1:58:56 AM CDT, Ho-Ro <homuth-rosemann@...> wrote:
On Tue, Aug 23, 2022 at 06:41 AM, Tim Dawson wrote:For FW upgrade on a Linux system you can use "dfu-util" that is available e.g. for Debian: --
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
On Mon, Aug 22, 2022 at 03:04 PM, Cliff wrote:
Cliff, You can covert a dfu file to bin using the DFU File Manager that comes with DfuSe demo but unfortunately that only installs on Windows. I did the conversion for you of DiSlords version 1.2 dfu file that I found at the link below. I hope the attached bin file works for you. Please post after you have tried it. Roger |
Cliff
Hey Roger,
toggle quoted message
Show quoted text
Thanks a bunch! I'll give it a go and let you know how it went. 73, Cliff, AE5ZA On Aug 23, 2022, at 13:26, Roger Need via groups.io <sailtamarack@...> wrote: |
Cliff
Roger,
toggle quoted message
Show quoted text
Worked great. Now I have to figure out the extra menus, but that's to be expected. Thanks so much for the file. Maybe it could be uploaded to the file section of the group for others to use if they wish? 73, Cliff, AE5ZA On Aug 23, 2022, at 13:26, Roger Need via groups.io <sailtamarack@...> wrote: |
FYI, the python based tool at appears to pull perfect binary images out of the NanoVNA .dfu files found on Huygen's site (checksums the same as his .bin files).
toggle quoted message
Show quoted text
The best news is that it is tiny, and being Python based, should work on any platform - Mac, Win, *nix - and allows the use of the ST Micro recommended Cube programmer tool FWIW . . . ?- Tim On 08/23/2022 02:37 AM, Ho-Ro wrote:
On Tue, Aug 23, 2022 at 08:58 AM, Ho-Ro wrote:To build the FW ... just type "make" and "make flash",Default is -H, for -H4 the command is --
Tim Dawson 972-567-9360 |
Cliff
Cool! Seems to work fine here on MacOS.
toggle quoted message
Show quoted text
73, Cliff, AE5ZA On Aug 23, 2022, at 19:15, Tim Dawson <tadawson@...> wrote: |
to navigate to use esc to dismiss