0

avrdude reading fuses
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

avrdude reading fuses

by tprk77 on Sat Jan 05, 2008 8:26 pm

This is probably an old topic but after searching for a while I haven't really found what I'm looking for.

I'm using USBtinyISP and AVRDUDE 5.5 (and linux).

So, I found this link: http://palmavr.sourceforge.net/cgi-bin/fc.cgi

At this point I thought I was looking at 3 8-bit fuses. Because of curiosity I want to read the fuses as they are now, some searching shows that....

# avrdude ... -U hfuse:r:high.hex -U lfuse:r:low.hex

But this doesn't actually work and a new search shows its necessary to use either...

# avrdude ... -U hfuse:r:high.hex:i -U lfuse:r:low.hex:i
-OR-
# avrdude ... -U hfuse:r:high.hex:s -U lfuse:r:low.hex:s

And this is where things start getting flaky because I can't figure out what :i or :s means and why they give two different values. :( Using either option, I really don't see how high.hex or low.hex corresponds to an 8-bit fuse.

And by the way, what ever happened to the extended fuse?
tprk77
 
Posts: 3
Joined: Sat Jan 05, 2008 7:49 pm

by adafruit on Sat Jan 05, 2008 8:38 pm

yeah, id use
# avrdude ... -U hfuse:r:high.hex:i -U lfuse:r:low.hex:i
and then read up about the intel hex format (":i") to decode the files
extended fuse is "efuse"

adafruit
 
Posts: 12141
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by tprk77 on Sat Jan 05, 2008 10:08 pm

Ok, :i is for Intel Hex... So I wasn't familiar with this but I get it now.

http://en.wikipedia.org/wiki/.hex

I should have read avrdude's man page more carefully. I guess I skipped over the part where is lists the different formats.

I was looking for normal hexdecimal (:h).
tprk77
 
Posts: 3
Joined: Sat Jan 05, 2008 7:49 pm

Please be positive and constructive with your questions and comments.