Skip to content

Commit

Permalink
Fix jtag3 access to prodsig sub-memories
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanrueger committed Jul 14, 2024
1 parent 44104df commit d8836d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jtag3.c
Original file line number Diff line number Diff line change
Expand Up @@ -2213,7 +2213,7 @@ static int jtag3_read_byte(const PROGRAMMER *pgm, const AVRPART *p, const AVRMEM
return -1;
}
} else if(mem_is_in_sigrow(mem)) { // sigrow submemories but not signature nor sigrow itself
cmd[3] = (p->prog_modes & PM_PDI)? MTYPE_SIGN_JTAG: MTYPE_PRODSIG;
cmd[3] = MTYPE_PRODSIG;
AVRMEM *sigrow = avr_locate_sigrow(p);
if(sigrow)
addr += mem->offset - sigrow->offset; // Adjust offset for parent memory
Expand Down

0 comments on commit d8836d3

Please sign in to comment.