Figure 136. Memory Sections(1)
Program Memory
BOOTSZ = '11'
$0000
Application Flash Section
ATmega64(L)
Program Memory
BOOTSZ = '10'
$0000
Application Flash Section
Application Flash Section
Boot Loader Flash Section
Program Memory
BOOTSZ = '01'
End RWW
Start NRWW
End Application
Start Boot Loader
Flashend
$0000
Application Flash Section
Application Flash Section
Boot Loader Flash Section
Program Memory
BOOTSZ = '00'
End RWW
Start NRWW
End Application
Start Boot Loader
Flashend
$0000
Application flash Section
Application Flash Section
Boot Loader Flash Section
End RWW
Start NRWW
End Application
Start Boot Loader
Flashend
End RWW, End Application
Start NRWW, Start Boot Loader
Boot Loader Flash Section
Flashend
Boot Loader Lock Bits
Note: 1. The parameters are given in Table 113 on page 289.
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 indepen-
dently. 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 109 and Table 110 for further details. The Boot Lock bits can be set in soft-
ware and 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
2490G–AVR–03/04
279