diff --git a/src/stk500v2.c b/src/stk500v2.c index edf26cae..a4cf943a 100644 --- a/src/stk500v2.c +++ b/src/stk500v2.c @@ -948,8 +948,10 @@ static int stk500v2_chip_erase(const PROGRAMMER *pgm, const AVRPART *p) { memset(buf+3, 0, 4); avr_set_bits(p->op[AVR_OP_CHIP_ERASE], buf+3); result = stk500v2_command(pgm, buf, 7, sizeof(buf)); - usleep(p->chip_erase_delay); - pgm->initialize(pgm, p); + usleep(p->chip_erase_delay); // should not be needed + if (PDATA(pgm)->pgmtype != PGMTYPE_JTAGICE_MKII) { // skip for JTAGICE mkII (FW v7.39) + pgm->initialize(pgm, p); // should not be needed + } pgm->pgm_led(pgm, OFF);