Set LB1 and LB2 low on Arduino and ATmega

arduinoatmegaispSecurity

I have searched for a possibility to objdump microcontrollers. I then have found this post. There it says that LB1 and LB2 can be set to low to prevent the most people to read from it.

My questions is how to and is it possible to set this bits low for an Arduino and for an ATmega which is programmed via an Arduino.

Best Answer

The lock bits can only be set via ISP, HVSP, or HVPP. There is no provision for setting the lock bits via the Arduino IDE even when a programmer is used; they must be set using AVRDUDE or a comparable tool.