[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] [bug #52318] Fuse progamming error
From: |
anonymous |
Subject: |
[avrdude-dev] [bug #52318] Fuse progamming error |
Date: |
Tue, 31 Oct 2017 13:50:43 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 |
URL:
<http://savannah.nongnu.org/bugs/?52318>
Summary: Fuse progamming error
Project: AVR Downloader/UploaDEr
Submitted by: None
Submitted on: Tue 31 Oct 2017 05:50:42 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name: Art
Originator Email: address@hidden
Open/Closed: Open
Release: 6.3
Discussion Lock: Any
Programmer hardware: usbasp
Device type: attiny10
_______________________________________________________
Details:
As per the title. I wrote the fuse value of 0xfe which disables the reset pin
on this MCU. I then put 12V on the reset pin, and tried to write the value
0xff, which should enable it again. AVR dude says the value was written, but
then spits out this:
avrdude: verification error, first mismatch at byte 0x0000
0xfe != 0xff
I tried a few other fuse values, but none of them worked. Not a big deal as I
could still reprogram the unit as normal, so long as I had 12V on the reset
pin. I couldn't leave well enough alone though, so I went googling. I came
across a german forum post which I misunderstood. Consequently, I tried
writing the fuse value of 0x00, and it worked. Now that seems to have done
something strange to the MCU.
I still seem to be able to write to it, but the output doesn't match what I'd
expect. For example, if I set it to toggle a pin every 500ms, it seems to do
it every 50ms.
When I supply 12V to the reset pin & then try to write the fuse, I get this:
C:\Program Files (x86)\MHV AVR Tools\bin>avrdude -p attiny10 -P usb -c
usbasp -B 10 -v -u -U fuse:w:0xFF:m
avrdude: Version 6.2, compiled on Nov 20 2015 at 23:33:37
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\MHV AVR
Tools\bin\avrdude.conf"
Using Port : usb
Using Programmer : usbasp
Setting bit clk period : 10.0
AVR Part : ATtiny10
Chip Erase delay : 0 us
PAGEL : P00
BS2 : P00
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 0
StabDelay : 0
CmdexeDelay : 0
SyncLoops : 0
ByteDelay : 0
PollIndex : 0
PollValue : 0x00
Memory Detail :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW
ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- -----
---------
signature 0 0 0 0 no 3 16 0 0 0
0x00 0x00
fuse 0 0 4 0 no 1 16 0 0 0
0x00 0x00
calibration 0 0 0 0 no 1 16 0 0 0
0x00 0x00
lockbits 0 0 0 0 no 1 16 0 0 0
0x00 0x00
flash 0 0 128 0 no 1024 16 0 0 0
0x00 0x00
Programmer Type : usbasp
Description : USBasp, http://www.fischl.de/usbasp/
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude: Device signature = 0x1e9003 (probably t10)
avrdude: reading input file "0xFF"
avrdude: writing fuse (1 bytes):
Writing | ################################################## | 100% 0.11s
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.03s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x00 != 0xff
avrdude: verification error; content mismatch
avrdude done. Thank you.
C:\Program Files (x86)\MHV AVR Tools\bin>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?52318>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avrdude-dev] [bug #52318] Fuse progamming error,
anonymous <=