In the latest as well as older versions of the ATmega 8 data sheet under Boot Loader Lock Bits
The user can select:
• To protect the entire Flash from a software update by the MCU.
• To protect only the Boot Loader Flash section from a software update by the MCU.
• To protect only the Application Flash section from a software update by the MCU.
• Allow software update in the entire Flash.
But then it goes on to say (emphasis mine)
The general Write Lock (Lock bit mode 2) does not control the programming
of the Flash memory by SPM instruction. Similarly, the general Read/Write Lock
(Lock bit mode 3) does not control reading nor writing by LPM/SPM, if it is attempted.
This is followed by a couple of tables which define lock bit modes (4 total)
.
Mode 2 SPM is not allowed to write to the Application section.
Mode 3 SPM is not allowed to write to the Application section, and LPM
executing from the Boot Loader section is not allowed to read
from the Application section.
There appears to be a contridiction here. What am I missing? :?: