In-System Reprogrammable Flash Program Memory

The ATmega4808/4809 contains 48 KB On-Chip In-System Reprogrammable Flash memory for program storage. Since all AVR instructions are 16 or 32 bits wide, the Flash is organized with a 16-bit data width. For write protection, the Flash program memory space can be divided into three sections: Bootloader section, application code section, and application data section. Code placed in one section may be restricted from writing to addresses in other sections. See the NVMCTRL documentation for more details.

The Program Counter can address the whole program memory. The procedure for writing Flash memory is described in detail in the documentation of the Nonvolatile Memory Controller (NVMCTRL) peripheral.

The Flash memory is mapped into the data space and is accessible with normal LD/ST instructions. For LD/ST instructions, the Flash is mapped from address 0x4000. The Flash memory can be read with the LPM instruction. For the LPM instruction, the Flash start address is 0x0000.

The ATmega4808/4809 has a CRC module that is a host on the bus.
Table 1. Physical Properties of Flash Memory
Property ATmega4808 ATmega4809
Size 48 KB
Page size 128B
Number of pages 384
Start address in Data Space 0x4000
Start address in Code Space 0x0000