bugAVR Downloader/UploaDEr - Bugs: bug #54289, attiny4/5/9/10 fuses reset option

 
 

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

bug #54289: attiny4/5/9/10 fuses reset option

Submitter:  Passnet <passnet>
Submitted:  Wed 11 Jul 2018 01:53:10 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  passnet
Open/Closed:  Open Release:  SVN snapshot
Programmer hardware:  usbasp Device type:  attiny4/5/9/10

Thu 12 Jul 2018 07:27:51 AM UTC, comment #1: 

Ok, I was looking at the wrong place. Seems like this function are implemented in trunk (not the latest release), but not documented yet.

The '-x section_config' option with -e (erase) option should erase (reset) config section as I guess.

Passnet <passnet>
Wed 11 Jul 2018 01:53:10 PM UTC, original submission:  

USBasp supports TPI with attiny4/5/9/10. Setting (writing to 0) fuse bits are also supported with avrdude. However resetting (writing 1) individual bits on these devices are not possible. It works but the bits remains unchanged:
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9003 (probably t10)
avrdude: reading input file "0xff"
avrdude: writing fuse (1 bytes):

Writing | ################################################## | 100% 0.08s

avrdude: 1 bytes of fuse written
avrdude: verifying fuse memory against 0xff:
avrdude: load data fuse data from input file 0xff:
avrdude: input file 0xff contains 1 bytes
avrdude: reading on-chip fuse data:

Reading | ################################################## | 100% 0.01s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0xfe != 0xff
avrdude: verification error; content mismatch

Datasheet on these tinys claims that to reset fuses you need to completely erase config section by following this procedure:

16.4.3.4. Erasing the Configuration Section
The algorithm for erasing the Configuration section is as follows:
1. Write the 0x14 (SECTION_ERASE) to the NVMCMD register
2. Start the erase operation by writing a dummy byte to the high byte of any word location inside the
configuration section
3. Wait until the NVMBSY bit has been cleared

Latest usbasp.c from svn trunk lacks this feature. That could be useful to add and pretty easy to implement.

Passnet <passnet>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-07-11 passnet Carbon-Copy- Added passnet

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code