From 9c1f1f921b0a6362f37694d8e19e590d0c021730 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Wed, 24 Jun 2009 21:18:36 +0000 Subject: [PATCH] Handle writing fuse bytes (on the Xmega). git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@820 81a1dc3b-b13d-400b-aceb-764788c761c2 --- ChangeLog | 4 ++++ stk500v2.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index da4cba9e..38af1a8d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-06-24 Joerg Wunsch + + * stk500v2.c (stk600_xprog_write_byte): Handle writing fuse bytes. + 2009-04-28 Joerg Wunsch Submitted by Carl Hamilton: diff --git a/stk500v2.c b/stk500v2.c index 62a8d7ff..4786e04e 100644 --- a/stk500v2.c +++ b/stk500v2.c @@ -3016,6 +3016,9 @@ static int stk600_xprog_write_byte(PROGRAMMER * pgm, AVRPART * p, AVRMEM * mem, } else if (strcmp(mem->desc, "lockbits") == 0) { b[1] = XPRG_MEM_TYPE_LOCKBITS; addr += 0x008f0000; + } else if (strncmp(mem->desc, "fuse", strlen("fuse")) == 0) { + b[1] = XPRG_MEM_TYPE_FUSE; + addr += 0x008f0000; } else if (strcmp(mem->desc, "usersig") == 0) { b[1] = XPRG_MEM_TYPE_USERSIG; addr += 0x008e0000;