I'm attempting to upload a bare minimum sketch using Arduino's IDE to an ATmega808. I downloaded jtag2updi and uploaded it to a genuine Arduino nano board to convert it into a UPDI programmer. I then disabled the reset with a 10uF capacitor, connected D6 to the 808's UDPI pin via a 4.7kOhm resistor. The 808 is powered using the nano's 5V output.
Initially I figured the problem was my newly acquired SMD soldering "skills" but after purchasing an SSOP28 socket for troubleshooting, the problem hasn't gone away. Since this was my first time surface mounting chips, I had another 18 Atmel branded 808s on standby, but all of them returned the same error. In terms of software, I have already wiped and reinstalled Arduino IDE to my laptop, and did the same for all board hardware and libraries.
The issue I am running into is #402 and occurs with avrdude immediately after it establishes a system-wide configuration file. I've run the command just prior in the windows CMD, but nothing popped up with respect to missing .dll files. I've performed the exact same setup as countless others, with the only difference being the microcontroller I am using. The documentation for the 808 provided by microchip (assuming they're exactly the same as the Atmel ones) mentions High Voltage "HV" programming which I've never heard of before, but it doesn't seem to be required? I made sure that no bootloader was selected, and programming was done with JTAG2UDPI via the "Upload using Programmer" option.
Output:
FQBN: MegaCoreX-master:megaavr:808:pinout=28pin_standard
Using board '808' from platform in folder: C:\Users\ian.lisk\AppData\Local\Arduino15\packages\MegaCoreX-master\megaavr
Using core 'coreX-corefiles' from platform in folder: C:\Users\ian.lisk\AppData\Local\Arduino15\packages\MegaCoreX-master\megaavr
Detecting libraries used...
C:\Users\ian.lisk\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=atmega808 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega808 -DARDUINO_ARCH_MEGAAVR -IC:\Users\ian.lisk\AppData\Local\Arduino15\packages\MegaCoreX-master\megaavr\cores\coreX-corefiles/api/deprecated -IC:\Users\ian.lisk\AppData\Local\Arduino15\packages\MegaCoreX-master\megaavr\cores\coreX-corefiles -IC:\Users\ian.lisk\AppData\Local\Arduino15\packages\MegaCoreX-master\megaavr\variants\28pin-standard C:\Users\ian.lisk\AppData\Local\Temp\arduino\sketches\9B55C372C9F1F6B05B5C73A03EDD60EF\sketch\Blink.ino.cpp -o nul
Generating function prototypes...
C:\Users\ian.lisk\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=atmega808 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega808 -DARDUINO_ARCH_MEGAAVR -IC:\Users\ian.lisk\AppData\Local\Arduino15\packages\MegaCoreX-master\megaavr\cores\coreX-corefiles/api/deprecated -IC:\Users\ian.lisk\AppData\Local\Arduino15\packages\MegaCoreX-master\megaavr\cores\coreX-corefiles -IC:\Users\ian.lisk\AppData\Local\Arduino15\packages\MegaCoreX-master\megaavr\variants\28pin-standard C:\Users\ian.lisk\AppData\Local\Temp\arduino\sketches\9B55C372C9F1F6B05B5C73A03EDD60EF\sketch\Blink.ino.cpp -o C:\Users\ian.lisk\AppData\Local\Temp\3021378699\sketch_merged.cpp
C:\Users\ian.lisk\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\ian.lisk\AppData\Local\Temp\3021378699\sketch_merged.cpp
Compiling sketch...
"C:\\Users\\ian.lisk\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=atmega808 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega808 -DARDUINO_ARCH_MEGAAVR "-IC:\\Users\\ian.lisk\\AppData\\Local\\Arduino15\\packages\\MegaCoreX-master\\megaavr\\cores\\coreX-corefiles/api/deprecated" "-IC:\\Users\\ian.lisk\\AppData\\Local\\Arduino15\\packages\\MegaCoreX-master\\megaavr\\cores\\coreX-corefiles" "-IC:\\Users\\ian.lisk\\AppData\\Local\\Arduino15\\packages\\MegaCoreX-master\\megaavr\\variants\\28pin-standard" "C:\\Users\\ian.lisk\\AppData\\Local\\Temp\\arduino\\sketches\\9B55C372C9F1F6B05B5C73A03EDD60EF\\sketch\\Blink.ino.cpp" -o "C:\\Users\\ian.lisk\\AppData\\Local\\Temp\\arduino\\sketches\\9B55C372C9F1F6B05B5C73A03EDD60EF\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\ian.lisk\AppData\Local\Temp\arduino\cores\376c52e62d470a89ea55b8b417a5cfc9\core.a
Linking everything together...
"C:\\Users\\ian.lisk\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -mrelax -Wl,--gc-sections -Wl,--section-start=.text=0x0 -mmcu=atmega808 -o "C:\\Users\\ian.lisk\\AppData\\Local\\Temp\\arduino\\sketches\\9B55C372C9F1F6B05B5C73A03EDD60EF/Blink.ino.elf" "C:\\Users\\ian.lisk\\AppData\\Local\\Temp\\arduino\\sketches\\9B55C372C9F1F6B05B5C73A03EDD60EF\\sketch\\Blink.ino.cpp.o" "C:\\Users\\ian.lisk\\AppData\\Local\\Temp\\arduino\\sketches\\9B55C372C9F1F6B05B5C73A03EDD60EF/..\\..\\cores\\376c52e62d470a89ea55b8b417a5cfc9\\core.a" "-LC:\\Users\\ian.lisk\\AppData\\Local\\Temp\\arduino\\sketches\\9B55C372C9F1F6B05B5C73A03EDD60EF" -lm
"C:\\Users\\ian.lisk\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\ian.lisk\\AppData\\Local\\Temp\\arduino\\sketches\\9B55C372C9F1F6B05B5C73A03EDD60EF/Blink.ino.elf" "C:\\Users\\ian.lisk\\AppData\\Local\\Temp\\arduino\\sketches\\9B55C372C9F1F6B05B5C73A03EDD60EF/Blink.ino.eep"
"C:\\Users\\ian.lisk\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\ian.lisk\\AppData\\Local\\Temp\\arduino\\sketches\\9B55C372C9F1F6B05B5C73A03EDD60EF/Blink.ino.elf" "C:\\Users\\ian.lisk\\AppData\\Local\\Temp\\arduino\\sketches\\9B55C372C9F1F6B05B5C73A03EDD60EF/Blink.ino.hex"
cmd /C echo. && "C:\\Users\\ian.lisk\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objdump" --disassemble --source --line-numbers --demangle --section=.text "C:\\Users\\ian.lisk\\AppData\\Local\\Temp\\arduino\\sketches\\9B55C372C9F1F6B05B5C73A03EDD60EF/Blink.ino.elf" > "C:\\Users\\ian.lisk\\AppData\\Local\\Temp\\arduino\\sketches\\9B55C372C9F1F6B05B5C73A03EDD60EF/Blink.ino_atmega808_16000000L.lst"
"C:\\Users\\ian.lisk\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\ian.lisk\\AppData\\Local\\Temp\\arduino\\sketches\\9B55C372C9F1F6B05B5C73A03EDD60EF/Blink.ino.elf"
Sketch uses 748 bytes (9%) of program storage space. Maximum is 8192 bytes.
Global variables use 4 bytes (0%) of dynamic memory, leaving 1020 bytes for local variables. Maximum is 1024 bytes.
"C:\Users\ian.lisk\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\ian.lisk\AppData\Local\Arduino15\packages\MegaCoreX-master\megaavr/avrdude.conf" -v -V -patmega808 -cjtag2updi -PCOM5 -Ufuses:w:0x00,0x54,0x01,0xff,0x00,0b11001001,0x06,0x00,0x00:m -Ulock:w:0xC5:m "-Uflash:w:C:\Users\ian.lisk\AppData\Local\Temp\arduino\sketches\9B55C372C9F1F6B05B5C73A03EDD60EF/Blink.ino.with_bootloader.hex:i"
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\ian.lisk\AppData\Local\Arduino15\packages\MegaCoreX-master\megaavr/avrdude.conf"
avrdude: error at C:\Users\ian.lisk\AppData\Local\Arduino15\packages\MegaCoreX-master\megaavr/avrdude.conf:402: syntax error
avrdude: error reading system wide configuration file "C:\Users\ian.lisk\AppData\Local\Arduino15\packages\MegaCoreX-master\megaavr/avrdude.conf"
Failed programming: uploading error: exit status 1
I'm completely stumped as to why this isn't working. In the meantime, I have ordered a USB-to-TTL converter, and am learning PlatformIO since it has the 808 built in. Maybe that will fix my problem, maybe not? Perhaps trying another chipset might work?