Arduino mega pro fuse bits

I need help to protect my code to be copy or clone by disable reading useing fuse bits
I didnt find compleat instructions to do that

I downloaded avrdude but i dont know what bits should i change

My board is arduino mega pro.....thanks to all

What device programmer do you have?

You'll want to set the lock bits to 0, and disable the bootloader.
Clearing the lock bits can only be done with a device programmer, and once you've disabled the bootloader, you'll need the DP to upload any new code as well.

There is no such board. There are boards called Mega Pro (Mini) from other suppliers but Arduino is not selling a board named like that.

Once you've programmed the lock bits you won't be able to upload any code to the board anymore. If you don't have a high voltage programmer such a board won't get any updates. There is no mode to just disallow the read out of the flash memory, any further writing will be forbidden too.
Be extremely careful with the bootloader lock bits, most Arduino code won't run anymore if they're programmed.

@pylon

I have programmed the lockbits of a Nano and could always upload new code via ICSP. No HV programmer needed.

No one would take the time to get the machine code back from your mega and try and de-compile it .
I guess it might be possible to download it and copy to another device , but unless it’s something really clever it would easier to write afresh and you can’t stop that .
Licensing terms need to be consulted too for libraries etc , might make you disclose code - dunno ?

Might be easier to cut a couple of pins off the processor once programmed !!

@sterretje

If that is true I would not trust the rest of the functionality too. This is what the datasheet says:
"Further programming and verification of the Flash and EEPROM
is disabled in Parallel and Serial Programming mode. The Boot
Lock bits and Fuse bits are locked in both Serial and Parallel
Programming mode."
If the programming still works the lock bits are probably not programmed. Did you check that?

Yes, if you try to read it out, you get a very short hex file back; possibly a single record. Can't remember the details, will have to look them up again.

The “chip erase” clears (sets to 1) the lock bits at the same time it erases all the code, permitting new programming.

Thanks for all , is ther another ways to protect my code from being work on another boards , like unique serial?
Is arduino mega has unique serial number?

No.
But you can write one to the EEPROM and read it out in the code, stop if it doesn't match. This keeps at least the simple copier away.

They can copy eeprom with flash, thank you by the way

Just out of curiosity: What ultra-clever code did you develop that someone might be working that hard to copy it?

You might add a serial number OneWire device to your setup. That would put the effort probably in a range n one would actually do.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.