Boot Loader Lock Bits - Atmel ATmega48/V Preliminary

8-bit microcontroller with 8k bytes in-system programmable flash
Table of Contents

Advertisement

24.4

Boot Loader Lock Bits

2545E–AVR–02/05
Figure 24-2. Memory Sections
Program Memory
BOOTSZ = '11'
Application Flash Section
Application Flash Section
Boot Loader Flash Section
Program Memory
BOOTSZ = '01'
Application Flash Section
Application Flash Section
Boot Loader Flash Section
Note:
1. The parameters in the figure above are given in
If no Boot Loader capability is needed, the entire Flash is available for application code. The
Boot Loader has two separate sets of Boot Lock bits which can be set independently. This gives
the user a unique flexibility to select different levels of protection.
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.
See
Table 24-2
and
Table 24-3
in Serial or Parallel Programming mode, but they can be cleared by a Chip Erase command
only. 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 1) does not
control reading nor writing by LPM/SPM, if it is attempted.
0x0000
Application Flash Section
End RWW
Start NRWW
Application Flash Section
End Application
Boot Loader Flash Section
Start Boot Loader
Flashend
0x0000
Application Flash Section
End RWW
Start NRWW
End Application
Boot Loader Flash Section
Start Boot Loader
Flashend
Table 24-6 on page
for further details. The Boot Lock bits can be set in software and
ATmega48/88/168
Program Memory
BOOTSZ = '10'
0x0000
End RWW
Start NRWW
End Application
Start Boot Loader
Flashend
Program Memory
BOOTSZ = '00'
0x0000
End RWW, End Application
Start NRWW, Start Boot Loader
Flashend
276.
267

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ATmega48/V and is the answer not in the manual?

Table of Contents