This looks like an interesting project. Unfortunately, when I try to use it with an ATtiny402 chip, I get this error:
$ avr-absurd -P /dev/ttyS0 -p attiny402 -r 4242
UPDI instruction `ldcs` failed
Traceback (most recent call last):
File "/home/davidm/tmp/avr-absurd/src/absurd/__main__.py", line 43, in main
updiver: int = uc.connect()
^^^^^^^^^^^^
File "/home/davidm/tmp/avr-absurd/src/absurd/updi/updirev3.py", line 53, in connect
self.store_csr(0x03, 0x08)
File "/home/davidm/tmp/avr-absurd/src/absurd/updi/updirev3.py", line 158, in store_csr
raise UpdiException("stcs")
absurd.updi.updirev3.UpdiException
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/davidm/tmp/avr-absurd/src/absurd/__main__.py", line 45, in main
uc.resynchronize()
File "/home/davidm/tmp/avr-absurd/src/absurd/updi/updirev3.py", line 98, in resynchronize
raise UpdiException("ldcs", "`ldcs STATUSB` following a BREAK character failed")
absurd.updi.updirev3.UpdiException: `ldcs STATUSB` following a BREAK character failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/davidm/.local/bin/avr-absurd", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/davidm/tmp/avr-absurd/src/absurd/__main__.py", line 78, in main
uc.resynchronize()
File "/home/davidm/tmp/avr-absurd/src/absurd/updi/updirev3.py", line 98, in resynchronize
raise UpdiException("ldcs", "`ldcs STATUSB` following a BREAK character failed")
absurd.updi.updirev3.UpdiException: `ldcs STATUSB` following a BREAK character failed
I can program the chip just fine with avrdude and pymcuprog so I think at least hardware-wise, things should be OK.
This looks like an interesting project. Unfortunately, when I try to use it with an ATtiny402 chip, I get this error:
I can program the chip just fine with
avrdudeandpymcuprogso I think at least hardware-wise, things should be OK.