Hello,
Yesterday I tried uploading my code to a attiny 804 with my ftdi to serial adapter (real ftdi chip, no ch340) using the setup you can find here, ie: using a diode and a 470R. I soldered a board and it worked fine. Unfortunately I accidentally set the RESET pin as GPIO by accident, so I was unable to program it again later.
I then changed the chip, but even with the new one I get an error message:
Traceback (most recent call last):
File "/Users/ilfuria/Library/Arduino15/packages/megaTinyCore/hardware/megaavr/2.4.2/tools/prog.py", line 282, in <module>
main()
File "/Users/ilfuria/Library/Arduino15/packages/megaTinyCore/hardware/megaavr/2.4.2/tools/prog.py", line 131, in main
return_code = pymcuprog_basic(args, fuses_dict)
File "/Users/ilfuria/Library/Arduino15/packages/megaTinyCore/hardware/megaavr/2.4.2/tools/prog.py", line 196, in pymcuprog_basic
status = pymcu._start_session(backend,
File "/Users/ilfuria/Library/Arduino15/packages/megaTinyCore/hardware/megaavr/2.4.2/tools/libs/pymcuprog/pymcuprog_main.py", line 544, in _start_session
backend.start_session(sessionconfig)
File "/Users/ilfuria/Library/Arduino15/packages/megaTinyCore/hardware/megaavr/2.4.2/tools/libs/pymcuprog/backend.py", line 359, in start_session
self.programmer.setup_device(
File "/Users/ilfuria/Library/Arduino15/packages/megaTinyCore/hardware/megaavr/2.4.2/tools/libs/pymcuprog/programmer.py", line 78, in setup_device
self.device_model = get_nvm_access_provider(self.transport,
File "/Users/ilfuria/Library/Arduino15/packages/megaTinyCore/hardware/megaavr/2.4.2/tools/libs/pymcuprog/nvm.py", line 42, in get_nvm_access_provider
accessprovider = NvmAccessProviderSerial(transport, device_info, baud=frequency)
File "/Users/ilfuria/Library/Arduino15/packages/megaTinyCore/hardware/megaavr/2.4.2/tools/libs/pymcuprog/nvmserialupdi.py", line 53, in __init__
self.avr = UpdiApplication(port, baud, self.dut)
File "/Users/ilfuria/Library/Arduino15/packages/megaTinyCore/hardware/megaavr/2.4.2/tools/libs/pymcuprog/serialupdi/application.py", line 79, in __init__
datalink.init_datalink()
File "/Users/ilfuria/Library/Arduino15/packages/megaTinyCore/hardware/megaavr/2.4.2/tools/libs/pymcuprog/serialupdi/link.py", line 44, in init_datalink
raise PymcuprogError("UPDI initialisation failed")
pymcuprog.pymcuprog_errors.PymcuprogError: UPDI initialisation failed
I'm now trying directly via breadboard but to no avail. The signal on the UPDI line is present and it's a clean square wave, but IDK what I can be done wrong (no reset pin reprogramming this time).
Can you help plz? What can I proved you to help you help me?
Cheers