ElTangas / jtag2updi

UPDI programmer software for Arduino (targets Tiny AVR-0/1/2, Mega AVR-0 and AVR-DA/DB MCUs)
MIT License
329 stars 90 forks source link

Error programming ATTiny1614: bad response to enter progmode command: RSP_ILLEGAL_MCU_STATE #45

Open kais58 opened 3 years ago

kais58 commented 3 years ago

Recieved the above error and others trying to program several MCUs, all same error, confirmed everyting I can is correct physically and couldn't find anything, full error output below. Using an Arduino Pro mini and standard setup withe resistor on UDPI line.

/home/kais58/.platformio/packages/tool-avrdude-megaavr/avrdude -C /home/kais58/.platformio/packages/tool-avrdude-megaavr/avrdude.conf -c jtag2updi -P /dev/ttyUSB0 -p attiny1614 -v -v -v -v

avrdude: Version 6.3-20201216 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "/home/kais58/.platformio/packages/tool-avrdude-megaavr/avrdude.conf"
     User configuration file is "/home/kais58/.avrduderc"
     User configuration file does not exist or is not a regular file, skipping

     Using Port                    : /dev/ttyUSB0
     Using Programmer              : jtag2updi

avrdude: jtagmkII_open_pdi() avrdude: jtagmkII_getsync() avrdude: jtagmkII_getsync(): Sending sign-on command: avrdude: jtagmkII_send(): sending 1 bytes avrdude: Send: . [1b] . [00] . [00] . [01] . [00] . [00] . [00] . [0e] . [01] . [f3] . [97] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [1d] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [86] . [01] . [01] . [00] . [06] . [01] . [01] . [00] . [06] . [01] . [00] . [00] . [00] . [00] . [00] . [00] J [4a] T [54] A [41] G [47] I [49] C [43] E [45] [20] m [6d] k [6b] I [49] I [49] . [00] avrdude: Recv: < [3c] avrdude: Recv: . [7f]

avrdude: jtagmkII_recv(): Got message seqno 0 (command_sequence == 0) avrdude: Recv: . [86] . [01] . [01] . [00] . [06] . [01] . [01] . [00] . [06] . [01] . [00] . [00] . [00] . [00] . [00] . [00] J [4a] T [54] A [41] G [47] I [49] C [43] E [45] [20] m [6d] k [6b] I [49] I [49] . [00]

Raw message: 0x86 0x01 0x01 0x00 0x06 0x01 0x01 0x00 0x06 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x4a 0x54 0x41 0x47 0x49 0x43 0x45 0x20 0x6d 0x6b 0x49 0x49 0x00 Sign-on succeeded

JTAG ICE mkII sign-on message: Communications protocol version: 1 M_MCU: boot-loader FW version: 1 firmware version: 6.00 hardware version: 1 S_MCU: boot-loader FW version: 1 firmware version: 6.00 hardware version: 1 Serial number: 00:00:00:00:00:00 Device ID: JTAGICE mkII avrdude: jtagmkII_getsync(): Using a 298-byte device descriptor avrdude: jtagmkII_setparm() avrdude: jtagmkII_setparm(): Sending set parameter command (parm 0x03, 1 bytes): avrdude: jtagmkII_send(): sending 3 bytes avrdude: Send: . [1b] . [01] . [00] . [03] . [00] . [00] . [00] . [0e] . [02] . [03] . [06] $ [24] 1 [31] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [01] avrdude: Recv: . [00] avrdude: Recv: . [01] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [80] avrdude: Recv: . [cd] avrdude: Recv: . [83]

avrdude: jtagmkII_recv(): Got message seqno 1 (command_sequence == 1) avrdude: Recv: . [80]

Raw message: 0x80 OK

avrdude: jtagmkII_getsync(): Sending get sync command: avrdude: jtagmkII_send(): sending 1 bytes avrdude: Send: . [1b] . [02] . [00] . [01] . [00] . [00] . [00] . [0e] . [0f] . [e2] u [75] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [02] avrdude: Recv: . [00] avrdude: Recv: . [01] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [80] avrdude: Recv: . [1d] avrdude: Recv: . [09]

avrdude: jtagmkII_recv(): Got message seqno 2 (command_sequence == 2) avrdude: Recv: . [80]

Raw message: 0x80 OK

     AVR Part                      : ATtiny1614
     Chip Erase delay              : 0 us
     PAGEL                         : P00
     BS2                           : P00
     RESET disposition             : dedicated
     RETRY pulse                   : SCK
     serial program mode           : yes
     parallel program mode         : yes
     Timeout                       : 0
     StabDelay                     : 0
     CmdexeDelay                   : 0
     SyncLoops                     : 0
     ByteDelay                     : 0
     PollIndex                     : 0
     PollValue                     : 0x00
     Memory Detail                 :

                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       prodsig        0     0     0    0 no         61   61      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       fuses          0     0     0    0 no          9   10      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       fuse0          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       fuse1          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       fuse2          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       fuse4          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       fuse5          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       fuse6          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       fuse7          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       fuse8          0     0     0    0 no          1    0      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       lock           0     0     0    0 no          1    0      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       data           0     0     0    0 no          0    0      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       usersig        0     0     0    0 no         32   32      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       flash          0     0     0    0 no      16384   64      0     0     0 0x00 0x00
                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       eeprom         0     0     0    0 no        256   32      0     0     0 0x00 0x00

     Programmer Type : JTAGMKII_PDI
     Description     : JTAGv2 to UPDI bridge

avrdude: jtagmkII_getparm() avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x01): avrdude: jtagmkII_send(): sending 2 bytes avrdude: Send: . [1b] . [03] . [00] . [02] . [00] . [00] . [00] . [0e] . [03] . [01] . [d3] . [99] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [03] avrdude: Recv: . [00] avrdude: Recv: . [03] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [81] . [01] . [01] avrdude: Recv: . [ed] avrdude: Recv: . [cd]

avrdude: jtagmkII_recv(): Got message seqno 3 (command_sequence == 3) avrdude: Recv: . [81] . [01] . [01]

Raw message: 0x81 0x01 0x01 parameter values: 0x01 0x01

avrdude: jtagmkII_getparm() avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x02): avrdude: jtagmkII_send(): sending 2 bytes avrdude: Send: . [1b] . [04] . [00] . [02] . [00] . [00] . [00] . [0e] . [03] . [02] . [aa] B [42] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [04] avrdude: Recv: . [00] avrdude: Recv: . [05] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [81] . [00] . [06] . [00] . [06] avrdude: Recv: . [ca] avrdude: Recv: . [db]

avrdude: jtagmkII_recv(): Got message seqno 4 (command_sequence == 4) avrdude: Recv: . [81] . [00] . [06] . [00] . [06]

Raw message: 0x81 0x00 0x06 0x00 0x06 parameter values: 0x00 0x06 0x00 0x06

     M_MCU hardware version: 1
     M_MCU firmware version: 6.00
     S_MCU hardware version: 1
     S_MCU firmware version: 6.00
     Serial number:          00:00:00:00:00:00

avrdude: jtagmkII_getparm() avrdude: jtagmkII_getparm(): Sending get parameter command (parm 0x06): avrdude: jtagmkII_send(): sending 2 bytes avrdude: Send: . [1b] . [05] . [00] . [02] . [00] . [00] . [00] . [0e] . [03] . [06] s [73] I [49] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [05] avrdude: Recv: . [00] avrdude: Recv: . [03] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [81] . [88] . [13] avrdude: Recv: x [78] avrdude: Recv: M [4d]

avrdude: jtagmkII_recv(): Got message seqno 5 (command_sequence == 5) avrdude: Recv: . [81] . [88] . [13]

Raw message: 0x81 0x88 0x13 parameter values: 0x88 0x13

     Vtarget         : 5.0 V

avrdude: jtagmkII_initialize(): trying to set baudrate to 115200 avrdude: jtagmkII_setparm() avrdude: jtagmkII_setparm(): Sending set parameter command (parm 0x05, 1 bytes): avrdude: jtagmkII_send(): sending 3 bytes avrdude: Send: . [1b] . [06] . [00] . [03] . [00] . [00] . [00] . [0e] . [02] . [05] . [07] . [88] . [b0] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [06] avrdude: Recv: . [00] avrdude: Recv: . [01] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [80] avrdude: Recv: . [c3] avrdude: Recv: . [1f]

avrdude: jtagmkII_recv(): Got message seqno 6 (command_sequence == 6) avrdude: Recv: . [80]

Raw message: 0x80 OK

avrdude: jtagmkII_set_devdescr(): Sending set device descriptor command: avrdude: jtagmkII_send(): sending 299 bytes avrdude: Send: . [1b] . [07] . [00] + [2b] . [01] . [00] . [00] . [0e] . [0c] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] @ [40] . [00] [20] . [00] . [00] . [00] . [00] . [00] . [00] . [00] @ [40] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [01] . [00] . [00] . [00] . [00] . [00] . [01] . [02] . [00] . [00] . [00] . [00] . [00] . [00] . [00] . [00] 5 [35] g [67] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [07] avrdude: Recv: . [00] avrdude: Recv: . [01] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [80] avrdude: Recv: | [7c] avrdude: Recv: . [9e]

avrdude: jtagmkII_recv(): Got message seqno 7 (command_sequence == 7) avrdude: Recv: . [80]

Raw message: 0x80 OK

avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description avrdude: jtagmkII_reset(): Sending reset command: avrdude: jtagmkII_send(): sending 2 bytes avrdude: Send: . [1b] . [08] . [00] . [02] . [00] . [00] . [00] . [0e] . [0b] . [01] . [de] . [fe] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [08] avrdude: Recv: . [00] avrdude: Recv: . [01] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [80] avrdude: Recv: . [ce] avrdude: Recv: / [2f]

avrdude: jtagmkII_recv(): Got message seqno 8 (command_sequence == 8) avrdude: Recv: . [80]

Raw message: 0x80 OK

avrdude: AVR device initialized and ready to accept instructions

Reading | avrdude: jtagmkII_read_byte(.., signature, 0x0, ...) avrdude: jtagmkII_program_enable(): Sending enter progmode command: avrdude: jtagmkII_send(): sending 1 bytes avrdude: Send: . [1b] . [09] . [00] . [01] . [00] . [00] . [00] . [0e] . [14] . [dc] | [7c] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [09] avrdude: Recv: . [00] avrdude: Recv: . [01] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [a5] avrdude: Recv: . [de] avrdude: Recv: . [d8]

avrdude: jtagmkII_recv(): Got message seqno 9 (command_sequence == 9) avrdude: Recv: . [a5]

Raw message: 0xa5 Illegal MCU state

avrdude: jtagmkII_program_enable(): bad response to enter progmode command: RSP_ILLEGAL_MCU_STATE avrdude: jtagmkII_program_enable(): Sending enter progmode command: avrdude: jtagmkII_send(): sending 1 bytes avrdude: Send: . [1b] . [0a] . [00] . [01] . [00] . [00] . [00] . [0e] . [14] . [0c] . [f6] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [0a] avrdude: Recv: . [00] avrdude: Recv: . [01] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [a5] avrdude: Recv: . [0e] avrdude: Recv: R [52]

avrdude: jtagmkII_recv(): Got message seqno 10 (command_sequence == 10) avrdude: Recv: . [a5]

Raw message: 0xa5 Illegal MCU state

avrdude: jtagmkII_program_enable(): bad response to enter progmode command: RSP_ILLEGAL_MCU_STATE avrdude: jtagmkII_read_byte(): Sending read memory command: avrdude: jtagmkII_send(): sending 10 bytes avrdude: Send: . [1b] . [0b] . [00] . [0a] . [00] . [00] . [00] . [0e] . [05] . [b4] . [01] . [00] . [00] . [00] . [00] . [11] . [00] . [00] . [1a] . [d4] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [0b] avrdude: Recv: . [00] avrdude: Recv: . [02] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [a5] . [01] avrdude: Recv: 6 [36] avrdude: Recv: . [1d]

avrdude: jtagmkII_recv(): Got message seqno 11 (command_sequence == 11) avrdude: Recv: . [a5] . [01]

Raw message: 0xa5 0x01 Illegal MCU state: Running

avrdude: jtagmkII_read_byte(): bad response to read memory command: RSP_ILLEGAL_MCU_STATE avr_read(): error reading address 0x0000 read operation not supported for memory "signature" avrdude: error reading signature data for part "ATtiny1614", rc=-2 avrdude: error reading signature data, rc=-2 avrdude: jtagmkII_program_disable(): Sending leave progmode command: avrdude: jtagmkII_send(): sending 1 bytes avrdude: Send: . [1b] . [0c] . [00] . [01] . [00] . [00] . [00] . [0e] . [15] 4 [34] . [fa] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [0c] avrdude: Recv: . [00] avrdude: Recv: . [02] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [a5] . [00] avrdude: Recv: ] [5d] avrdude: Recv: . [e5]

avrdude: jtagmkII_recv(): Got message seqno 12 (command_sequence == 12) avrdude: Recv: . [a5] . [00]

Raw message: 0xa5 0x00 Illegal MCU state: Stopped

avrdude: jtagmkII_program_disable(): bad response to leave progmode command: RSP_ILLEGAL_MCU_STATE avrdude: jtagmkII_close() avrdude: jtagmkII_close(): Sending GO command: avrdude: jtagmkII_send(): sending 1 bytes avrdude: Send: . [1b] . [0d] . [00] . [01] . [00] . [00] . [00] . [0e] . [08] . [ef] . [b0] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [0d] avrdude: Recv: . [00] avrdude: Recv: . [01] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [80] avrdude: Recv: . [af] avrdude: Recv: . [b8]

avrdude: jtagmkII_recv(): Got message seqno 13 (command_sequence == 13) avrdude: Recv: . [80]

Raw message: 0x80 OK

avrdude: jtagmkII_close(): Sending sign-off command: avrdude: jtagmkII_send(): sending 1 bytes avrdude: Send: . [1b] . [0e] . [00] . [01] . [00] . [00] . [00] . [0e] . [00] w [77] . [b6] avrdude: jtagmkII_recv(): avrdude: Recv: . [1b] avrdude: Recv: . [0e] avrdude: Recv: . [00] avrdude: Recv: . [01] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [00] avrdude: Recv: . [0e] avrdude: Recv: . [80] avrdude: Recv: . [7f] avrdude: Recv: 2 [32]

avrdude: jtagmkII_recv(): Got message seqno 14 (command_sequence == 14) avrdude: Recv: . [80]

Raw message: 0x80 OK

avrdude done. Thank you.

ElTangas commented 3 years ago

Are you sure the chips aren't locked?

Frogieder commented 2 years ago

I face the same issue. Different chip model yet similar error. My chips were brand new, no one used before, so I doubt they'd be locked. Also, I tried erasing the chip to unlock it, but that generated the same error

kosilin commented 2 years ago

If locked these chips can be erased or reprogrammed by high-voltage programmer only. The PA0 pin is not in UPDI mode on locked chips until high-voltage pulse has applied to it.

[upd] .... Or you can try to apply my patch from issue #59. I think it can be probably related to your problem. 0001-Fixes-unstable-trailing-edge-of-stopbit-pulse-while-using-software-UPDI-IO.txt