Skip to content

Pickit5 HVUPDI seems unable to unlock devices #2049

@TJALambert

Description

@TJALambert

Using AVRDUDE 8.1 (avrdude-v8.1-windows-mingw-x64) I am attempting to communicate with an ATTINY device that has the lock fuse set requiring the high voltage pulse on the UPDI/Reset pin to unlock.

The following command works perfectly with a Pickit4:
avrdude -c pickit4_updi -p attiny412 -x hvupdi -B 125khz -vv

However the following does not
avrdude -c pickit5_updi -p attiny412 -x hvupdi -B 125khz -vv

With this returning the following output:

Using port            : usb
Using programmer      : pickit5_updi
Setting bit clk period: 8.0 us
Usbdev_open(): found MPLAB? PICkit 5, serno: 020026702RYN012839
AVR part              : ATtiny412
Programming modes     : SPM, UPDI

Memory           Size  Pg size  Offset
--------------------------------------
eeprom            128       32  0x1400
flash            4096       64  0x8000
fuses              10        1  0x1280
fuse0/wdtcfg        1        1  0x1280
fuse1/bodcfg        1        1  0x1281
fuse2/osccfg        1        1  0x1282
fuse4/tcd0cfg       1        1  0x1284
fuse5/syscfg0       1        1  0x1285
fuse6/syscfg1       1        1  0x1286
fuse7/append        1        1  0x1287
fuse8/bootend       1        1  0x1288
lock                1        1  0x128a
prodsig/sigrow     64       64  0x1100
signature           3        1  0x1100
sernum             10        1  0x1103
osccal16            2        1  0x1118
osccal20            2        1  0x111a
tempsense           2        1  0x1120
osc16err            2        1  0x1122
osc20err            2        1  0x1124
userrow/usersig    32       32  0x1300
io               4352        1       0
sram              256        1  0x3f00
sib                32        1       0

Variants        Package  F max   T range         V range
---------------------------------------------------------------
ATtiny412-SSF   SOIC8    20 MHz  [-40 C, 125 C]  [1.8 V, 5.5 V]
ATtiny412-SSFR  SOIC8    20 MHz  [-40 C, 125 C]  [1.8 V, 5.5 V]
ATtiny412-SSN   SOIC8    20 MHz  [-40 C, 105 C]  [1.8 V, 5.5 V]
ATtiny412-SSNR  SOIC8    20 MHz  [-40 C, 105 C]  [1.8 V, 5.5 V]

Programmer type       : pickit5
Description           : MPLAB(R) PICkit 5 in UPDI mode
Application version   : 02.01.38
Serial number         : 020026702RYN012839
High-voltage SYSCFG0 override on UPDI pin enabled
Target Vdd: 5.16 V, target current: 0 mA
External voltage detected: will not supply power
Error pickit5_read_response() pickit5.c 406: script error returned: 0x44
Error pickit5_send_script_cmd() pickit5.c 483: reading script response failed
Error main() main.c 1632: initialization failed  (rc = -1)
 - double check the connections and try again
 - use -B to set lower the bit clock frequency, e.g. -B 125kHz
 - reset the programmer by unplugging it
 - use -F to override this check

Avrdude done.  Thank you.

Any thoughts? Is this functionality not fully implemented for the Pickit5 yet?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions