URL:
<https://savannah.nongnu.org/patch/?10017>
Summary: uspasp / tpi: Automatically clear configuration byte
(fuse) before writing it
Project: AVR Downloader/UploaDEr
Submitted by: thierer
Submitted on: Sun 31 Jan 2021 02:29:23 PM UTC
Category: None
Priority: 3 - Low
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
For the ATtiny 4/5/9/10 MCUs the "configuration byte" (fuse byte) has to be
erased before it can be changed (see 16.4.3.4 in the datasheet).
Respective support has been added for the usbasp programmer via #9185, but
through extended parameters for the erase command.
I find it much more useful to just transparently erase the configuration byte
before writing it, like avr_write_byte_default() does (which isn't used by the
usbasp code).
The attached patch adds that functionality. Tested with an ATtiny 10.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 31 Jan 2021 02:29:23 PM UTC Name: reset-configuration-byte.patch
Size: 930B By: thierer
<http://savannah.nongnu.org/patch/download.php?file_id=50814>
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/patch/?10017>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/