Nano Every AVRDude Hex file upload

Hi folks,

How can i upload a hex file to a arduino?
Some how i got the following output from cmd when i uses what the ide gives me.

C:\Users\Jeffrey\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\Jeffrey\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega4809 -cjtag2updi -PCOM42 -b115200 -e -D -Uflash:w:C:\Users\Jeffrey\Desktop\150001-12.ino.hex:i -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x00:m {upload.extra_files}

Is what the ide gave me, only the location is different.

The output is:

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\Jeffrey\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM42
         Using Programmer              : jtag2updi
         Overriding Baud Rate          : 115200
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1

Am surprised that the {upload.extra_files} does not give an error.

Press reset on the programmer and try again - jtag2updi is flaky and hangs alot. The newest version is much better, but I have still seen it hang... It was updated within the past week or so (slightly earlier in my github) after I spent far too long working on it.

Is it wired correctly? What value for the resistor are you using?
I don't know the wiring of the nano every off hand - check the value of the resistor between UPDI pin of the chip and the mEDGB chip on the nano every schematic. Your resistor has to be smaller than this for it to work (4.7k is unnecessarily high in any event) - but you'd get further if that were the issue. Right now, jtag2updi is hung (or not installed at all)

Well thanks for your reply!

But ive just figured out why it didnt work, it might be a stupid solution.
I had to push the reset button twice fast to put the nano in bootloader mode.
That fixed my problem, and now everything works fine!

Best Wishes.