Skip to content

Commit

Permalink
Send 12V pulse to HV_UPDI_VARIANT_2 targets as well
Browse files Browse the repository at this point in the history
  • Loading branch information
MCUdude committed Jun 28, 2022
1 parent 9af3b37 commit d84eecb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jtag3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,8 @@ static int jtag3_initialize(PROGRAMMER * pgm, AVRPART * p)
// Generate 12V UPDI pulse if user asks for it and hardware supports it
if (p->flags & AVRPART_HAS_UPDI &&
PDATA(pgm)->use_hvupdi == true &&
p->hvupdi_variant == HV_UPDI_VARIANT_0) {
(p->hvupdi_variant == HV_UPDI_VARIANT_0 ||
p->hvupdi_variant == HV_UPDI_VARIANT_2)) {
parm[0] = PARM3_UPDI_HV_SIMPLE_PULSE;
if (jtag3_setparm(pgm, SCOPE_AVR, 3, PARM3_OPT_12V_UPDI_ENABLE, parm, 1) < 0)
return -1;
Expand Down

0 comments on commit d84eecb

Please sign in to comment.