I have taken over a project where a 4809 is used unfortunately the used UART\USB transceiver does not work in general with the 4809. My predecessor did use a nano every where he de-soldered the 4809 to flash the mcu. He used to build the firmware for the nano every. Then flashing the software works unfortunately not all pins are mapped with the nano every builds.
I would like to build for the 4809 and then flash the firmware using the nano every pcb till i have a fixed pcb. I tried to use the upload command for the nano every but that does unfortunately no work…
Any ideas how I could do that?
my platformio.ini
upload_flags =
-v
-p
atmega4809
-C
${platformio.packages_dir}/tool-avrdude/avrdude.conf
-c
jtag2updi
-Ufuse2:w:0x01:m
-Ufuse5:w:0xC9:m
-Ulock:w:0xC5:m
-b
115200
-V
-e
-D
-P
“COM7”
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i
and verbose output
avrdude -v -p atmega4809 -C C:\Users\fbosholm.platformio\packages/tool-avrdude/avrdude.conf -c jtag2updi -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ulock:w:0xC5:m -b 115200 -V -e -D -P “COM7” -U flash:w:.pio\build\ATmega4809\firmware.hex:i
avrdude: Version 7.1-arduino.1
Copyright the AVRDUDE authors;
see avrdude/AUTHORS at main · avrdudes/avrdude · GitHubSystem wide configuration file is C:\Users\fbosholm\.platformio\packages\tool-avrdude\avrdude.conf Using Port : COM7 Using Programmer : jtag2updi Overriding Baud Rate : 115200
avrdude jtagmkII_getsync() warning: attempt 1 of 10: sign-on command: status -1