Programming ATTiny3224 with IDE 2.3.4

I have been using IDE 2.3.4 to program my ATTiny3224s. Just recently, it has been failing. See output below. When I use IDE 1.8.19, it works fine. I have tried uninstalling IDE 2.3.4 from my Windows 10 desktop and then re-installing it. Still getting failures. I am using an Adafruit Friend Serial HV UPDI Programmer. Any help would be appreciated.

Sketch uses 2142 bytes (6%) of program storage space. Maximum is 32768 bytes.
Global variables use 294 bytes (9%) of dynamic memory, leaving 2778 bytes for local variables. Maximum is 3072 bytes.
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 COM3 at 230400 baud.
Target: attiny3224
Set fuses: ['0:0b00000000', '2:0x02', '6:0x04', '7:0x00', '8:0x00']
Action: write
File: C:\Users\Peter Stewart\AppData\Local\arduino\sketches\97B765C991EBFF9F95AA2911851FD64C/ATTiny3224_Serial_Test.ino.hex
Traceback (most recent call last):
File "C:\Users\Peter Stewart\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.10/tools/prog.py", line 286, in
main()
File "C:\Users\Peter Stewart\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.10/tools/prog.py", line 128, in main
return_code = pymcuprog_basic(args, fuses_dict)
File "C:\Users\Peter Stewart\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.10/tools/prog.py", line 201, in pymcuprog_basic
args_start)
File "C:\Users\Peter Stewart\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.10\tools\libs\pymcuprog\pymcuprog_main.py", line 545, in _start_session
backend.start_session(sessionconfig)
File "C:\Users\Peter Stewart\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.10\tools\libs\pymcuprog\backend.py", line 362, in start_session
sessionconfig.interface_speed)
File "C:\Users\Peter Stewart\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.10\tools\libs\pymcuprog\programmer.py", line 83, in setup_device
options=self.options)
File "C:\Users\Peter Stewart\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.10\tools\libs\pymcuprog\nvm.py", line 42, in get_nvm_access_provider
accessprovider = NvmAccessProviderSerial(transport, device_info, baud=frequency, options=options)
File "C:\Users\Peter Stewart\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.10\tools\libs\pymcuprog\nvmserialupdi.py", line 54, in init
self.avr = UpdiApplication(port, baud, self.dut)
File "C:\Users\Peter Stewart\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.10\tools\libs\pymcuprog\serialupdi\application.py", line 79, in init
datalink.init_datalink()
File "C:\Users\Peter Stewart\AppData\Local\Arduino15\packages\megaTinyCore\hardware\megaavr\2.6.10\tools\libs\pymcuprog\serialupdi\link.py", line 44, in init_datalink
raise PymcuprogError("UPDI initialisation failed")
pymcuprog.pymcuprog_errors.PymcuprogError: UPDI initialisation failed
Failed programming: uploading error: exit status 1

Just one observation which may not be related to the current problem. It appears that your windows account name is forename space lastname. Not all applications react well to path names with embedded spaces.

I have not had problems in the past with my windows account name. The file compiles fine under IDE 2.3.4, just won't program the ATTiny3224. Again, no problems at all with IDE 1.8.19 with compilation and programming.

Like I said, it is not clear it is the problem. I try to avoid it because of reports like this: Spaces in sketch names not allowed anymore in IDE 2.0.4? or Upload fails if path contains a space · Issue #958 · arduino/arduino-cli · GitHub

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