patchAVR Downloader/UploaDEr - Patches: patch #10017, uspasp / tpi: Automatically clear...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #10017: uspasp / tpi: Automatically clear configuration byte (fuse) before writing it

Submitted by:  Martin Thierer <thierer>
Submitted on:  Sun 31 Jan 2021 02:29:23 PM UTC  
 
Category:  None Priority:  3 - Low
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Sun 31 Jan 2021 02:29:23 PM UTC, original submission:  

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.

Martin Thierer <thierer>

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by thierer (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-01-31 thierer Attached File- => Added reset-configuration-byte.patch, #50814

    Back to the top


    Powered by Savane 3.6