Skip to content

Commit

Permalink
devel/avrdude: Add patch for AVR Dragon JTAG fix that didn't make it …
Browse files Browse the repository at this point in the history
…into 7.0

At some point after 5.11 avrdude started leaving the target stopped
upon completion of a JTAG transaction. I filed a github issue about
this issue:

    avrdudes/avrdude#366

This is super annoying because, for example, the target does not
boot after JTAG programming. Others were seeing this and shortly
after 7.0 was released, MCUdude created a PR which has since been
merged:

    avrdudes/avrdude#979

Apply this patch.

PR:		266186
Approved by:	joerg (maintainer timeout, 12 weeks)
  • Loading branch information
leres committed Nov 26, 2022
1 parent 8f33b78 commit dc3fbc6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion devel/avrdude/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= avrdude
PORTVERSION= 7.0
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= devel

MAINTAINER= [email protected]
Expand Down
13 changes: 13 additions & 0 deletions devel/avrdude/files/patch-src_jtagmkII.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- src/jtagmkII.c.orig 2022-05-07 20:39:47 UTC
+++ src/jtagmkII.c
@@ -1840,8 +1840,8 @@ void jtagmkII_close(PROGRAMMER * pgm)

avrdude_message(MSG_NOTICE2, "%s: jtagmkII_close()\n", progname);

- if (pgm->flag & PGM_FL_IS_PDI) {
- /* When in PDI mode, restart target. */
+ if (pgm->flag & (PGM_FL_IS_PDI|PGM_FL_IS_JTAG)) {
+ /* When in PDI or JTAG mode, restart target. */
buf[0] = CMND_GO;
avrdude_message(MSG_NOTICE2, "%s: jtagmkII_close(): Sending GO command: ",
progname);

0 comments on commit dc3fbc6

Please sign in to comment.