Hi dear friends,
I am new to this forum and have a question.
I produce some products based on AVR systems and use my own designed pcb boards and I lock my program because of business issues.
After I gained a little knowledge about the arduino boards, I thought that may be I can use them in my products instead of my own designed boards because of some reasons.
Therefore I bought an arduino uno board and I found that I cannot lock the software when uploading the programme to the arduino.
Can anyone help on this?
Have you tried the search function (top right corner)? This topic has been discussed several times.
I found that I cannot lock the software when uploading the programme to the arduino.
Your code goes through a compilation process and a linking process. The resulting HEX file is like a cooked souffle made from your eggs and flour.
It is unlikely that anyone could get your souffle, and reconstruct the eggs and flour from it.
In the event that you are that paranoid, the fuse settings CAN be changed, using a high voltage programmer. The fuse setting that allows the hex file to be read can be changed.
Once the lock bits are set, high voltage programming erases the chip before letting the lock bits change.
"28.7.3 Chip Erase
The Chip Erase will erase the Flash and EEPROM(1) memories plus Lock bits. The Lock bits are not reset until the program memory has been completely erased. The Fuse bits are not changed. A Chip Erase must be performed before the Flash and/or EEPROM are reprogrammed."
CrossRoads:
Once the lock bits are set, high voltage programming erases the chip before letting the lock bits change.
"28.7.3 Chip EraseThe Chip Erase will erase the Flash and EEPROM(1) memories plus Lock bits. The Lock bits are not reset until the program memory has been completely erased. The Fuse bits are not changed. A Chip Erase must be performed before the Flash and/or EEPROM are reprogrammed."
So you mean I have to set lock bits?
How? When I upload my program to arduino there is no option to set lock bits.
The Arduino IDE doesn't allow you to set the lock bits because it is too easy to 'brick' the Arduino.
You need to use AVRDUDE. That also means you need a programmer, which can usually be done with a second Arduino.
but I think this topic has been discussed many times.search for old topics!
If the lock bytes are changed in Boards.txt are they then ignored during subsequent programming?
Just asking, I've never tried changing them.