11.1.5.1 Embedded Flash Overview

The memory is organized in sectors and each sector has a size of 128 Kbytes. The first sector is divided into three smaller sectors which are organized in two sectors of 8 Kbytes and one sector of 112 Kbytes, see figure below.

Figure 11-1. Global Flash Organization

Each sector is organized in pages of 512 bytes.

For sector 0:

  • The smaller sector 0 has 16 pages of 512 bytes
  • The smaller sector 1 has 16 pages of 512 bytes
  • The larger sector has 224 pages of 512 bytes

The rest of the array is composed of 128-Kbyte sectors of 256 pages of 512 bytes each, see image below.

Figure 11-2. Flash Sector Organization

The figure below illustrates the organization of the Flash depending on its size.

Figure 11-3. Flash Size

Erasing the memory can be performed:

  • Chip Erase
  • By block of 8 Kbytes
  • By sector of 128 Kbytes
  • By 512-byte page
    • Erase memory by page is possible only in an 8 Kbyte sector
    • EWP and EWPL commands can be only used in 8 Kbyte sectors

The memory has one additional reprogrammable page that can be used as page signature by the user. It is accessible through specific modes, for erase, write and read operations. Erase pin assertion will not erase the User Signature page.