Skip to content

getting UpdiException with ATtiny402 #1

Description

@dmosberger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions