avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #10017] uspasp / tpi: Automatically clear configuration byte (fus


From: Martin Thierer
Subject: [patch #10017] uspasp / tpi: Automatically clear configuration byte (fuse) before writing it
Date: Sun, 31 Jan 2021 09:29:25 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]