Go Down

Topic: Preventing Program Change (Read 504 times) previous topic - next topic

Once I've put a program into an Arduino, is there anyway I prevent the program from being replaced/modified. I want to leave the USB port still available, but I don't want new programs to e uploaded. Suggestions?

Riva

Get a suitable AVR programmer and upload your sketch using it. This will remove the bootloader so no more uploads using standard USB connection but you will still be able to program it using a programmer. Next step is to still use a programmer but once your sketch is uploaded disable the serial programming bit (SPIEN) fuse this will also stop programming using the normal AVR programmer so now the only way to program would be to use a high voltage programmer. Not sure if/how you stop these.
I might seem like an idiot but remember it takes one to know one.
Forum user generally fall into three categories (the good, the bad & the a**hole) what category do you fit in?

robtillaart

Can you tell why ?

People can replace the atmel328 chip with another one so hacking your system by replacing it costs <$10

IIRC there are fuse settings that prevent downloading - you need to check the datasheet -
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

fungus


Once I've put a program into an Arduino, is there anyway I prevent the program from being replaced/modified. I want to leave the USB port still available, but I don't want new programs to e uploaded. Suggestions?


You need an ISP programmer to change any chip settings. If you simply use it to upload a program then the bootloader will be killed and you need another programmer to change anything.
No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy