Skip to content

Commit 2f61007

Browse files
committed
Ensure part is active first for defined start of ISP programming
... by pulling the reset line high before starting the programming session
1 parent 8951636 commit 2f61007

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bitbang.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,9 @@ int bitbang_initialize(const PROGRAMMER *pgm, const AVRPART *p) {
512512
return -1;
513513
}
514514
} else {
515+
// Ensure part is active first for defined start of ISP programming
516+
pgm->setpin(pgm, PIN_AVR_RESET, 1);
517+
usleep(128000);
515518
pgm->highpulsepin(pgm, PIN_AVR_RESET);
516519
}
517520

0 commit comments

Comments
 (0)