SerialUPDI, can't select COM port

I have just made up a serialUPDI board/cable (per Spences page) to make programming easier than with the JTAG2UPDI board. My problem is I can't select the port, none show up.

ny ideas?

There must be someone with a thought.

If the serial port doesn't show up on your computer, that's where you should start troubleshooting.

If I plug other devices in it works

Either driver problem or you slipped while asding components to the serial adapter and it no longer works....

Well, Magically it now connects to it but it now has the following error.

Arduino: 1.8.19 (Linux), Board: "ATtiny3227/3217/1627/1617/1607/827/817/807/427/417, ATtiny3217, 20 MHz internal, 1.8V (5 MHz or less), Disabled/Disabled, EEPROM retained, Enabled (default timer), UPDI (no reset pin), 8ms, Master or Slave (saves flash and RAM), Default (doesn't print floats, 1.4k flash use), On all pins, like usual"

/home/jason/arduino-1.8.19/arduino-builder -dump-prefs -logger=machine -hardware /home/jason/arduino-1.8.19/hardware -hardware /home/jason/.arduino15/packages -hardware /home/jason/Arduino/hardware -tools /home/jason/arduino-1.8.19/tools-builder -tools /home/jason/arduino-1.8.19/hardware/tools/avr -tools /home/jason/.arduino15/packages -built-in-libraries /home/jason/arduino-1.8.19/libraries -libraries /home/jason/Arduino/libraries -fqbn=megaTinyCore:megaavr:atxy7:chip=3217,clock=20internal,bodvoltage=1v8,bodmode=disabled,eesave=enable,millis=enabled,resetpin=UPDI,startuptime=8,wiremode=mors,printf=default,attach=allenabled -vid-pid=0403_6001 -ide-version=10819 -build-path /tmp/arduino_build_998382 -warnings=none -build-cache /tmp/arduino_cache_779437 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-azduino4b.path=/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b -prefs=runtime.tools.python3.path=/home/jason/.arduino15/packages/megaTinyCore/tools/python3/3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=/home/jason/.arduino15/packages/megaTinyCore/tools/python3/3.7.2-post1 -prefs=runtime.tools.arduinoOTA.path=/home/jason/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/jason/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avrdude.path=/home/jason/.arduino15/packages/DxCore/tools/avrdude/6.3.0-arduino17or18 -prefs=runtime.tools.avrdude-6.3.0-arduino17or18.path=/home/jason/.arduino15/packages/DxCore/tools/avrdude/6.3.0-arduino17or18 -verbose /home/jason/Arduino/PI_GPI_ATRE_OLED_TNR_3217/PI_GPI_ATRE_OLED_TNR_3217.ino
/home/jason/arduino-1.8.19/arduino-builder -compile -logger=machine -hardware /home/jason/arduino-1.8.19/hardware -hardware /home/jason/.arduino15/packages -hardware /home/jason/Arduino/hardware -tools /home/jason/arduino-1.8.19/tools-builder -tools /home/jason/arduino-1.8.19/hardware/tools/avr -tools /home/jason/.arduino15/packages -built-in-libraries /home/jason/arduino-1.8.19/libraries -libraries /home/jason/Arduino/libraries -fqbn=megaTinyCore:megaavr:atxy7:chip=3217,clock=20internal,bodvoltage=1v8,bodmode=disabled,eesave=enable,millis=enabled,resetpin=UPDI,startuptime=8,wiremode=mors,printf=default,attach=allenabled -vid-pid=0403_6001 -ide-version=10819 -build-path /tmp/arduino_build_998382 -warnings=none -build-cache /tmp/arduino_cache_779437 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-azduino4b.path=/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b -prefs=runtime.tools.python3.path=/home/jason/.arduino15/packages/megaTinyCore/tools/python3/3.7.2-post1 -prefs=runtime.tools.python3-3.7.2-post1.path=/home/jason/.arduino15/packages/megaTinyCore/tools/python3/3.7.2-post1 -prefs=runtime.tools.arduinoOTA.path=/home/jason/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/home/jason/.arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.avrdude.path=/home/jason/.arduino15/packages/DxCore/tools/avrdude/6.3.0-arduino17or18 -prefs=runtime.tools.avrdude-6.3.0-arduino17or18.path=/home/jason/.arduino15/packages/DxCore/tools/avrdude/6.3.0-arduino17or18 -verbose /home/jason/Arduino/PI_GPI_ATRE_OLED_TNR_3217/PI_GPI_ATRE_OLED_TNR_3217.ino
Using board 'atxy7' from platform in folder: /home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10
Using core 'megatinycore' from platform in folder: /home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10
Detecting libraries used...
/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-g++ -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny3217 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERD0 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_ATtiny3217 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.5.9\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=5UL -DMEGATINYCORE_PATCH=9UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore/api/deprecated -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/variants/txy7 /tmp/arduino_build_998382/sketch/PI_GPI_ATRE_OLED_TNR_3217.ino.cpp -o /dev/null
Alternatives for Adafruit_GFX.h: [Adafruit_GFX_Library@1.10.13]
ResolveLibrary(Adafruit_GFX.h)
  -> candidates: [Adafruit_GFX_Library@1.10.13]
/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-g++ -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny3217 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERD0 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_ATtiny3217 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.5.9\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=5UL -DMEGATINYCORE_PATCH=9UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore/api/deprecated -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/variants/txy7 -I/home/jason/Arduino/libraries/Adafruit_GFX_Library /tmp/arduino_build_998382/sketch/PI_GPI_ATRE_OLED_TNR_3217.ino.cpp -o /dev/null
Alternatives for Adafruit_SSD1306.h: [Adafruit_SSD1306@2.5.1]
ResolveLibrary(Adafruit_SSD1306.h)
  -> candidates: [Adafruit_SSD1306@2.5.1]
/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-g++ -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny3217 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERD0 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_ATtiny3217 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.5.9\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=5UL -DMEGATINYCORE_PATCH=9UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore/api/deprecated -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/variants/txy7 -I/home/jason/Arduino/libraries/Adafruit_GFX_Library -I/home/jason/Arduino/libraries/Adafruit_SSD1306 /tmp/arduino_build_998382/sketch/PI_GPI_ATRE_OLED_TNR_3217.ino.cpp -o /dev/null
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
  -> candidates: [SPI@1.0]
/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-g++ -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny3217 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERD0 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_ATtiny3217 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.5.9\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=5UL -DMEGATINYCORE_PATCH=9UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore/api/deprecated -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/variants/txy7 -I/home/jason/Arduino/libraries/Adafruit_GFX_Library -I/home/jason/Arduino/libraries/Adafruit_SSD1306 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/SPI/src /tmp/arduino_build_998382/sketch/PI_GPI_ATRE_OLED_TNR_3217.ino.cpp -o /dev/null
Alternatives for Wire.h: [Wire@2.0.5]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@2.0.5]
/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-g++ -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny3217 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERD0 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_ATtiny3217 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.5.9\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=5UL -DMEGATINYCORE_PATCH=9UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore/api/deprecated -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/variants/txy7 -I/home/jason/Arduino/libraries/Adafruit_GFX_Library -I/home/jason/Arduino/libraries/Adafruit_SSD1306 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/SPI/src -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/Wire/src /tmp/arduino_build_998382/sketch/PI_GPI_ATRE_OLED_TNR_3217.ino.cpp -o /dev/null
Alternatives for EEPROM.h: [EEPROM@2.1.3]
ResolveLibrary(EEPROM.h)
  -> candidates: [EEPROM@2.1.3]
/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-g++ -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny3217 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERD0 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_ATtiny3217 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.5.9\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=5UL -DMEGATINYCORE_PATCH=9UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore/api/deprecated -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/variants/txy7 -I/home/jason/Arduino/libraries/Adafruit_GFX_Library -I/home/jason/Arduino/libraries/Adafruit_SSD1306 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/SPI/src -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/Wire/src -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/EEPROM/src /tmp/arduino_build_998382/sketch/PI_GPI_ATRE_OLED_TNR_3217.ino.cpp -o /dev/null
Alternatives for GEARS_C059_INV.h: [GEARS_C059_INV]
ResolveLibrary(GEARS_C059_INV.h)
  -> candidates: [GEARS_C059_INV]
/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-g++ -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny3217 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERD0 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_ATtiny3217 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.5.9\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=5UL -DMEGATINYCORE_PATCH=9UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore/api/deprecated -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/variants/txy7 -I/home/jason/Arduino/libraries/Adafruit_GFX_Library -I/home/jason/Arduino/libraries/Adafruit_SSD1306 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/SPI/src -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/Wire/src -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/EEPROM/src -I/home/jason/Arduino/libraries/GEARS_C059_INV /tmp/arduino_build_998382/sketch/PI_GPI_ATRE_OLED_TNR_3217.ino.cpp -o /dev/null
Using cached library dependencies for file: /home/jason/Arduino/libraries/Adafruit_GFX_Library/Adafruit_GFX.cpp
Using cached library dependencies for file: /home/jason/Arduino/libraries/Adafruit_GFX_Library/Adafruit_GrayOLED.cpp
Alternatives for Adafruit_I2CDevice.h: [Adafruit_BusIO@1.11.0]
ResolveLibrary(Adafruit_I2CDevice.h)
  -> candidates: [Adafruit_BusIO@1.11.0]
Using cached library dependencies for file: /home/jason/Arduino/libraries/Adafruit_GFX_Library/Adafruit_SPITFT.cpp
Using cached library dependencies for file: /home/jason/Arduino/libraries/Adafruit_GFX_Library/glcdfont.c
Using cached library dependencies for file: /home/jason/Arduino/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp
Using cached library dependencies for file: /home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/SPI/src/SPI.cpp
Using cached library dependencies for file: /home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/Wire/src/Wire.cpp
Using cached library dependencies for file: /home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/Wire/src/twi.c
Using cached library dependencies for file: /home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/Wire/src/twi_pins.c
Using cached library dependencies for file: /home/jason/Arduino/libraries/Adafruit_BusIO/Adafruit_BusIO_Register.cpp
Using cached library dependencies for file: /home/jason/Arduino/libraries/Adafruit_BusIO/Adafruit_I2CDevice.cpp
Using cached library dependencies for file: /home/jason/Arduino/libraries/Adafruit_BusIO/Adafruit_SPIDevice.cpp
Generating function prototypes...
/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-g++ -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=attiny3217 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERD0 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_ATtiny3217 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.5.9\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=5UL -DMEGATINYCORE_PATCH=9UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore/api/deprecated -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/variants/txy7 -I/home/jason/Arduino/libraries/Adafruit_GFX_Library -I/home/jason/Arduino/libraries/Adafruit_SSD1306 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/SPI/src -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/Wire/src -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/EEPROM/src -I/home/jason/Arduino/libraries/GEARS_C059_INV -I/home/jason/Arduino/libraries/Adafruit_BusIO /tmp/arduino_build_998382/sketch/PI_GPI_ATRE_OLED_TNR_3217.ino.cpp -o /tmp/arduino_build_998382/preproc/ctags_target_for_gcc_minus_e.cpp
/home/jason/arduino-1.8.19/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_998382/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-g++ -c -g -Os -Wall -std=gnu++17 -fpermissive -Wno-sized-deallocation -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=attiny3217 -DF_CPU=20000000L -DCLOCK_SOURCE=0 -DTWI_MORS -DMILLIS_USE_TIMERD0 -DCORE_ATTACH_ALL -DARDUINO=10819 -DARDUINO_AVR_ATtiny3217 -DARDUINO_ARCH_MEGAAVR "-DMEGATINYCORE=\"2.5.9\"" -DMEGATINYCORE_MAJOR=2UL -DMEGATINYCORE_MINOR=5UL -DMEGATINYCORE_PATCH=9UL -DMEGATINYCORE_RELEASED=1 -DARDUINO_attinyxy7 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore/api/deprecated -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/cores/megatinycore -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/variants/txy7 -I/home/jason/Arduino/libraries/Adafruit_GFX_Library -I/home/jason/Arduino/libraries/Adafruit_SSD1306 -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/SPI/src -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/Wire/src -I/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/EEPROM/src -I/home/jason/Arduino/libraries/GEARS_C059_INV -I/home/jason/Arduino/libraries/Adafruit_BusIO /tmp/arduino_build_998382/sketch/PI_GPI_ATRE_OLED_TNR_3217.ino.cpp -o /tmp/arduino_build_998382/sketch/PI_GPI_ATRE_OLED_TNR_3217.ino.cpp.o
Compiling libraries...
Compiling library "Adafruit_GFX_Library"
Using previously compiled file: /tmp/arduino_build_998382/libraries/Adafruit_GFX_Library/glcdfont.c.o
Using previously compiled file: /tmp/arduino_build_998382/libraries/Adafruit_GFX_Library/Adafruit_GFX.cpp.o
Using previously compiled file: /tmp/arduino_build_998382/libraries/Adafruit_GFX_Library/Adafruit_SPITFT.cpp.o
Using previously compiled file: /tmp/arduino_build_998382/libraries/Adafruit_GFX_Library/Adafruit_GrayOLED.cpp.o
Compiling library "Adafruit_SSD1306"
Using previously compiled file: /tmp/arduino_build_998382/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp.o
Compiling library "SPI"
Using previously compiled file: /tmp/arduino_build_998382/libraries/SPI/SPI.cpp.o
Compiling library "Wire"
Using previously compiled file: /tmp/arduino_build_998382/libraries/Wire/twi.c.o
Using previously compiled file: /tmp/arduino_build_998382/libraries/Wire/twi_pins.c.o
Using previously compiled file: /tmp/arduino_build_998382/libraries/Wire/Wire.cpp.o
Compiling library "EEPROM"
Compiling library "GEARS_C059_INV"
Compiling library "Adafruit_BusIO"
Using previously compiled file: /tmp/arduino_build_998382/libraries/Adafruit_BusIO/Adafruit_BusIO_Register.cpp.o
Using previously compiled file: /tmp/arduino_build_998382/libraries/Adafruit_BusIO/Adafruit_SPIDevice.cpp.o
Using previously compiled file: /tmp/arduino_build_998382/libraries/Adafruit_BusIO/Adafruit_I2CDevice.cpp.o
Compiling core...
Using precompiled core: /tmp/arduino_cache_779437/core/core_481f5e9d985981583a3b74e408a9df6c.a
Linking everything together...
/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-gcc -Wall -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -Wl,--section-start=.text=0x0 -mrelax -mmcu=attiny3217 -o /tmp/arduino_build_998382/PI_GPI_ATRE_OLED_TNR_3217.ino.elf /tmp/arduino_build_998382/sketch/PI_GPI_ATRE_OLED_TNR_3217.ino.cpp.o /tmp/arduino_build_998382/libraries/Adafruit_GFX_Library/glcdfont.c.o /tmp/arduino_build_998382/libraries/Adafruit_GFX_Library/Adafruit_GFX.cpp.o /tmp/arduino_build_998382/libraries/Adafruit_GFX_Library/Adafruit_GrayOLED.cpp.o /tmp/arduino_build_998382/libraries/Adafruit_GFX_Library/Adafruit_SPITFT.cpp.o /tmp/arduino_build_998382/libraries/Adafruit_SSD1306/Adafruit_SSD1306.cpp.o /tmp/arduino_build_998382/libraries/SPI/SPI.cpp.o /tmp/arduino_build_998382/libraries/Wire/twi.c.o /tmp/arduino_build_998382/libraries/Wire/twi_pins.c.o /tmp/arduino_build_998382/libraries/Wire/Wire.cpp.o /tmp/arduino_build_998382/libraries/Adafruit_BusIO/Adafruit_BusIO_Register.cpp.o /tmp/arduino_build_998382/libraries/Adafruit_BusIO/Adafruit_I2CDevice.cpp.o /tmp/arduino_build_998382/libraries/Adafruit_BusIO/Adafruit_SPIDevice.cpp.o /tmp/arduino_build_998382/../arduino_cache_779437/core/core_481f5e9d985981583a3b74e408a9df6c.a -L/tmp/arduino_build_998382 -lm
/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-objcopy -O binary -R .eeprom /tmp/arduino_build_998382/PI_GPI_ATRE_OLED_TNR_3217.ino.elf /tmp/arduino_build_998382/PI_GPI_ATRE_OLED_TNR_3217.ino.bin
/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/arduino_build_998382/PI_GPI_ATRE_OLED_TNR_3217.ino.elf /tmp/arduino_build_998382/PI_GPI_ATRE_OLED_TNR_3217.ino.eep
/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-objcopy -O ihex -R .eeprom /tmp/arduino_build_998382/PI_GPI_ATRE_OLED_TNR_3217.ino.elf /tmp/arduino_build_998382/PI_GPI_ATRE_OLED_TNR_3217.ino.hex
bash -c "/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-objdump --disassemble --source --line-numbers --demangle --section=.text /tmp/arduino_build_998382/PI_GPI_ATRE_OLED_TNR_3217.ino.elf > /tmp/arduino_build_998382/PI_GPI_ATRE_OLED_TNR_3217.ino.lst"
bash -c "/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-nm --numeric-sort --line-numbers --demangle --print-size --format=s  /tmp/arduino_build_998382/PI_GPI_ATRE_OLED_TNR_3217.ino.elf > /tmp/arduino_build_998382/PI_GPI_ATRE_OLED_TNR_3217.ino.map"
Using library Adafruit_GFX_Library at version 1.10.13 in folder: /home/jason/Arduino/libraries/Adafruit_GFX_Library 
Using library Adafruit_SSD1306 at version 2.5.1 in folder: /home/jason/Arduino/libraries/Adafruit_SSD1306 
Using library SPI at version 1.0 in folder: /home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/SPI 
Using library Wire at version 2.0.5 in folder: /home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/Wire 
Using library EEPROM at version 2.1.3 in folder: /home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/libraries/EEPROM 
Using library GEARS_C059_INV in folder: /home/jason/Arduino/libraries/GEARS_C059_INV (legacy)
Using library Adafruit_BusIO at version 1.11.0 in folder: /home/jason/Arduino/libraries/Adafruit_BusIO 
/home/jason/.arduino15/packages/DxCore/tools/avr-gcc/7.3.0-atmel3.6.1-azduino4b/bin/avr-size -A /tmp/arduino_build_998382/PI_GPI_ATRE_OLED_TNR_3217.ino.elf
Sketch uses 21316 bytes (65%) of program storage space. Maximum is 32768 bytes.
Global variables use 178 bytes (8%) of dynamic memory, leaving 1870 bytes for local variables. Maximum is 2048 bytes.
/home/jason/.arduino15/packages/megaTinyCore/tools/python3/3.7.2-post1/python3 -u /home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/tools/prog.py -t uart -u /dev/ttyUSB0 -b 230400 -wd 1 -d attiny3217 --fuses 2:0x02 6:0x04 8:0x00 -f/tmp/arduino_build_998382/PI_GPI_ATRE_OLED_TNR_3217.ino.hex -a write -v 
SerialUPDI
UPDI programming for Arduino using a serial adapter
Based on pymcuprog, with significant modifications
By Quentin Bolsee and Spence Konde
Version 1.2.3 - Jan 2022
Using serial port /dev/ttyUSB0 at 230400 baud.
Delaying next op after each page write command by 1.0ms (-wd).
Target: attiny3217
Set fuses: ['2:0x02', '6:0x04', '8:0x00']
Action: write
File: /tmp/arduino_build_998382/PI_GPI_ATRE_OLED_TNR_3217.ino.hex
pymcuprog.programmer - INFO - Setting up programming session for 'attiny3217'
pymcuprog.deviceinfo.deviceinfo - INFO - Looking for device attiny3217
pymcuprog.serialupdi.physical - INFO - Opening port '/dev/ttyUSB0' at '115200' baud
pymcuprog.serialupdi.link - INFO - STCS 08 to 0x03
pymcuprog.serialupdi.link - INFO - STCS 06 to 0x02
pymcuprog.serialupdi.link - INFO - LDCS from 0x00
pymcuprog.serialupdi.link - WARNING - UPDI init failed: Can't read CS register.
pymcuprog.serialupdi.physical - INFO - Sending double break
pymcuprog.serialupdi.physical - INFO - Double-break sent. Retrying.
pymcuprog.serialupdi.physical - INFO - Opening port '/dev/ttyUSB0' at '115200' baud
pymcuprog.serialupdi.link - INFO - STCS 08 to 0x03
pymcuprog.serialupdi.link - INFO - STCS 06 to 0x02
pymcuprog.serialupdi.link - INFO - LDCS from 0x00
pymcuprog.serialupdi.link - WARNING - UPDI init failed: Can't read CS register.
Traceback (most recent call last):
  File "/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/tools/prog.py", line 285, in <module>
    main()
  File "/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/tools/prog.py", line 128, in main
    return_code = pymcuprog_basic(args, fuses_dict)
  File "/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/tools/prog.py", line 199, in pymcuprog_basic
    status = pymcu._start_session(backend,
  File "/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/tools/libs/pymcuprog/pymcuprog_main.py", line 545, in _start_session
    backend.start_session(sessionconfig)
  File "/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/tools/libs/pymcuprog/backend.py", line 359, in start_session
    self.programmer.setup_device(
  File "/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/tools/libs/pymcuprog/programmer.py", line 78, in setup_device
    self.device_model = get_nvm_access_provider(self.transport,
  File "/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/tools/libs/pymcuprog/nvm.py", line 42, in get_nvm_access_provider
    accessprovider = NvmAccessProviderSerial(transport, device_info, baud=frequency)
  File "/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/tools/libs/pymcuprog/nvmserialupdi.py", line 53, in __init__
    self.avr = UpdiApplication(port, baud, self.dut)
  File "/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/tools/libs/pymcuprog/serialupdi/application.py", line 79, in __init__
    datalink.init_datalink()
  File "/home/jason/.arduino15/packages/megaTinyCore/hardware/megaavr/2.5.10/tools/libs/pymcuprog/serialupdi/link.py", line 44, in init_datalink
    raise PymcuprogError("UPDI initialisation failed")
pymcuprog.pymcuprog_errors.PymcuprogError: UPDI initialisation failed
pymcuprog.serialupdi.physical - INFO - Closing port '/dev/ttyUSB0'
the selected serial port pymcuprog.serialupdi.physical - INFO - Closing port '/dev/ttyUSB0'
 does not exist or your board is not connected

Also. Is it possible that orriginally this borad was programmed with the UPDI pin as GPIO (which no longer seems to be an option) that it won't enter programming mode?

After building up another board my previous question was answered. You can't reprogram if the UPDI pin is set to GPIO. Also the JTAG2UPDI programmer no longer allows this setting. I have decided to not use the GPIO setting as it is too painful.

Right, you you need UPDI pin in order to program via UPDI, if you turn it into GPIO that's not a UPDI pin anymore, it's just a normal I/O pin (except a particularly weak one). In that case you need to use the 12v override to turn it back into a UPDI pin (HV UPDI programming). That requires special hardware - something capable of generating that 12v pulse that will tell the chip to make the pin a UPDI pin (if it's been set as GPIO or Reset) and also capable of cutting power to the board if it's set as GPIO, because you need to be able to apply the 12v pulse almost immediately after power-on, before the pin's output drivers are enabled (there's like a 64ms delay).

I think my core only allows you to set the function of the UPDI pin when burning Optiboot bootloader, (in which case there's a warning next to the option that you can't further program it without UPDI). I go into more detail - I think - in the documentation - the idea is that an Optiboot user desperate for pins would turn the pin into GPIO, then forget about UPDI programming and program using the bootloader, by uploading within 8 seconds of applying power with it connected to a serial port. Similar deal with turning UPDI into reset, except that that also makes the user experience much nicer for optiboot, because you can rig up autoreset like on a classic AVR and have optiboot uploads work "normally". Because of the difficulty of further UPDI programmming (HV UPDI programmers are still exotic - and on new parts, they will have to work differently - it looks like on DD and later, the HV pulse has to go on the reset pin, not the UPDI pin - so while there are a few hobbyist-made HV UPDI programmers, I would expect most people who might make one to be holding off until DD hardware is available to test on (I also wouldn't be surprised to see a lot of non-tiny-only HV programmers, because it's much easier to make one. I had designed one that would do both, actually, but I apparently laid the whole thing out without ever saving it and lost it to a windows update, and don't have time to redo the design any time soon).

I've heard of people resetting parts that have the UPDI disabled using one of those little 12v batteries (like for doorbell remote control, A23 size or something), with - of battery tied to ground and a 1k resistor in series with the positive side. Apply power to the device, touch the other end of the resistor to the UPDI pin briefly, then connect a normal UPDI programmer to reprogram it. The UPDI-override lasts until next power on reset....

I've not bothered to try that, I just have a slowly growing pile of boards with UPDI disabled that some day I'll do something about....

Asl you can probably see, I tend not to notice posts on these forums, I respond much faster if the posts are on the github repo discussions or something. And when I do come here, I mostly just scan microcontrollers section thread titles for anything that I should respond to.

The JTAG2UPDI programmer i was using worked fine but the options seem to have been removed from the tools menu.

You would need to have a had a special version that added support for 12v programing if you wanted to reprogram it after the first time you set that fuse. I know someone made one (I think I even have one) but hardware like that isn't readily available to users.

I removed the options because people kept complaining about how they'd bricked their chips

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.