Go Down

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

DavidChipman

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.
http://forum.arduino.cc/index.php?action=unread;boards=5,67,10,11,66,12,15,17,21,22,23,24,25,29;ALL

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