From a21d1f3ceb337a5d544e2cc6eb5b60461f0a81eb Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Fri, 27 Feb 2009 08:29:30 +0000 Subject: [PATCH] Submitted by Ed Okerson: * jtagmkII.c (jtagmkII_read_byte): Fix signature reading of Xmega. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@810 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/ChangeLog | 6 ++++++ avrdude/jtagmkII.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/avrdude/ChangeLog b/avrdude/ChangeLog index d54ae3d3..254ce0b0 100644 --- a/avrdude/ChangeLog +++ b/avrdude/ChangeLog @@ -1,3 +1,9 @@ +2009-02-27 Joerg Wunsch + + Submitted by Ed Okerson: + * jtagmkII.c (jtagmkII_read_byte): Fix signature reading of + Xmega. + 2009-02-26 Joerg Wunsch Submitted by Mikael Hermansson: diff --git a/avrdude/jtagmkII.c b/avrdude/jtagmkII.c index 15160af1..b8d03f3a 100644 --- a/avrdude/jtagmkII.c +++ b/avrdude/jtagmkII.c @@ -1816,6 +1816,11 @@ static int jtagmkII_read_byte(PROGRAMMER * pgm, AVRPART * p, AVRMEM * mem, } return 0; } + else if (mem->offset != 0) { + cmd[1] = MTYPE_SRAM; + addr += mem->offset; + } + } /*