avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] [bug #54289] attiny4/5/9/10 fuses reset option


From: Passnet
Subject: [avrdude-dev] [bug #54289] attiny4/5/9/10 fuses reset option
Date: Wed, 11 Jul 2018 09:53:11 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

URL:
  <http://savannah.nongnu.org/bugs/?54289>

                 Summary: attiny4/5/9/10 fuses reset option
                 Project: AVR Downloader/UploaDEr
            Submitted by: passnet
            Submitted on: Ср. 11 июля 2018 13:53:10
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: passnet
        Originator Email: 
             Open/Closed: Open
                 Release: SVN snapshot
         Discussion Lock: Any
     Programmer hardware: usbasp
             Device type: attiny4/5/9/10

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?54289>

_______________________________________________
  Сообщение отправлено по Savannah
  https://savannah.nongnu.org/




reply via email to

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