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/ _______________________________________________ avrdude-dev mailing list avrdude-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avrdude-dev