Skip to content

Commit

Permalink
wiring: set reset discharge time to 80ms
Browse files Browse the repository at this point in the history
Geeetech GT2560 [1] use 1uF capacitors in their DTR/RESET line and 50ms
seem to be a tad to short. 80ms works well (here).

fixes avrdudes#1503

[1]
https://www.geeetech.com/wiki/images/d/d3/Hardware_GT2560_RevA%2B.pdf
  • Loading branch information
diresi committed Sep 26, 2023
1 parent 8ed9615 commit 7272f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wiring.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static int wiring_open(PROGRAMMER *pgm, const char *port) {
pmsg_notice2("wiring_open(): asserting DTR/RTS\n");

serial_set_dtr_rts(&pgm->fd, 1);
usleep(50*1000);
usleep(80*1000);

/* Set high, so a direct connection to reset works. */
serial_set_dtr_rts(&pgm->fd, 0);
Expand Down

0 comments on commit 7272f44

Please sign in to comment.