I am interested in locking my sketch of arduino of atmega328 to make it undownloadable.
Is there some way to enable lock bits by compiling the sketch into Hex and then uploading it with avrdude ?
Thank you
I am interested in locking my sketch of arduino of atmega328 to make it undownloadable.
Is there some way to enable lock bits by compiling the sketch into Hex and then uploading it with avrdude ?
Thank you
After you upload and test your Sketch using the Arduino IDE you should be able to lock out access to the code with the following Avrdude command.
avrdude -c usbtiny -p m328p -U lock:w:0x00:m -u
You might need to change the -c or -p options.
You need to read over the docs on locking the chip. You can lock it where it takes a high voltage programmer to un-brick it. You can lock the boot loader, jump straight into code and other things. Beware, seems like 99% of my problems have been learning what they meant in the docs...:>>
Also most IDE's, Atmel has a recommend procedure for doing what you are attempting. They specify which bit to lock when, usually after upload the code:)