https://eleccelerator.com/fusecalc/fusecalc.php?chip=attiny85
You really need to read the datasheet for the chip the part about what fuses does what.
You can lock the chip
ok i will check it out
https://eleccelerator.com/fusecalc/fusecalc.php?chip=attiny85
You really need to read the datasheet for the chip the part about what fuses does what.
You can lock the chip
ok if i am reading this right ( and understanding this right) the link you posted the LOCKBIT bit 1 and bit o need to be checked? if so this would be the avrdude command line for this:You would normally change the lock byte fuse. If you did the only way to clear them is a chip erase. (So they have still prevented you from reading the code (ie copy protected software.) as the code has now been erased)
See this web page for information on the function of fuse bits.
http://eleccelerator.com/fusecalc/fusecalc.php?chip=attiny85
If you do change a fuse bit which prevents normal brogramming this web page tells you how to solve the problem.
https://sites.google.com/site/wayneholder/attiny-fuse-reset
Note programming the chip with the boot loader DOES change some high and low byte fuse bits but these do not prevent you from programming the chip. (I found out after programing the chip with the boot loader before programming it using avrdude to program it with the .hex file I sent to you. I think it had changed the CKDIV8 bit.)
Les.
I have just re read my post #183 and noticed that I had left out the word not in the first sentance. It should read " You would not normally change the lock byte fuse." So this has probably confused you. The fuse bits seem to use reverse logic. When thy are set to a 1 it means unprogrammed. See table 20-1 on page 147 of the datasheet. Just below this table it says
" Note: 1. “1” means unprogrammed, “0” means programmed"
On the AVR fuse calculator. you will notice the bits unchecked . For example The low byte has the boxs for bits 1,5,7 unticked which means they are set to a 1. This is the value 0x62 shown below bit 0. None of the lock bit boxs are ticked so the value is 0xFF.
I have not been able to get the arduino programmer to work with avrdudess as it replaces the modified version of avrdude.conf with the unmodified version every time it runs.. This does not happen with avrdude which works with the arduino programmer using the modified arduino.conf file. At the moment using the command line version of avrdude seems to the only way for you to program the .hex file into the ATtiny85. NOTE In the post where I told you about modifying the avrdude.conf file I forgot to tell you that you have to run the editing program that you use in administrator mode to be allowed to modify the file. Also if you have previously programmed the chip with the boot loader it will run faster than it should because the boot loader has changed bits in the low and high fuse bytes.
Les.
so its just a write protect and not a read protect too? Can you just please give me a straight answer and not hints, etc and how to do it if It's possible or not..thanksIf you program your top secret code in and set the the read lock bit you can’t change your secret code
Learn by trying I’ve messed them up before and then had to erase my top secret code and set them back with high voltage programmer
Are you on a Linux machine? Because of this---->/dev/ttyFF = PI > S.E.T
Well i fixed my cheap usbasp programmer they set the name i guess so they could say it was there firmware wrong so avrdude wouldnt use it
Let me tell you the easy way to load a hex you make a folder where you can find it copy the arduino avedude to it and the avrdude.conf files
then its smiple to load a hex
open a terminal type ./avrdude -C ./avrdude.conf -p m8 -c avrisp -P /dev/ttyACM1 -b 19200 -U flash:w:usbasp.atmega8.2011-05-28.hex
change what programmer and what HEX you using
Make sure there all 3 in the folder your hex copy of avrdude and avrdude.conf
and its done deal
that is what i thought about linux.. So i will need to run avrdude in command line with the commands for the fuse setting that you have at that link? correct?This would be what you would want but you maybe ever program the chip agin
https://eleccelerator.com/fusecalc/fusecalc.php?chip=attiny85&LOW=62&HIGH=DF&EXTENDED=FF&LOCKBIT=FC
FF = PI > S.E.T sets it in code
ok ohhh and i will need a HVP ( the one you posted) to TRY to fix chip but i can program the fuses with my uno?Yes that it
avrdudess program does NOT come up with the same hex values
Ok, but it seems that the web page link you posted has different hex values than avrdudess? and it looks like some of the options are not in avrdudness? so i am not sure what to think about that.You can set them in code hard way or with the avrdudess
I the ide you have to make changes to the board.text
You added stuff