[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] Patch for fuse and lock-bits with avr910
From: |
Jan-Hinnerk Reichert |
Subject: |
[avrdude-dev] Patch for fuse and lock-bits with avr910 |
Date: |
Fri, 16 May 2003 20:48:35 +0200 |
User-agent: |
KMail/1.5.1 |
Hi all,
I have written a patch that allows to read and write fuse bits with an avr910
programmer (at least if it supports the "New Universal Command").
Should work with avr910 version 2.2 and newer (don't have access to older
firmware.
Patch is against latest CVS version of "avr910.c"
This is how it works:
1) It implements "avr910_cmd()": sending arbitrary SPI-commands
2) avr910_read_byte() and avr910_write_byte() call avr_read_byte_default(),
resp. avr_write_byte_default(), if memtype is neither flash nor eeprom.
This is the first time I have ever used diff, so please tell me if I did
something wrong ;-)))
BTW: IMHO "stk500_cmd()" returns wrong values in res[0]..res[2]
Jan-Hinnerk
patch-avr910-fuse.diff
Description: Text Data
- [avrdude-dev] Patch for fuse and lock-bits with avr910,
Jan-Hinnerk Reichert <=