RM0046 Flash Memory
Doc ID 16912 Rev 5 335/936
Shadow block
A Shadow block is present in each Code flash module, but not in the Data flash module. The
Shadow block can be enabled by the BIU.
When the Shadow space is enabled, all the operations are mapped to the Shadow block.
User mode program and erase of the shadow block are enabled only when MCR[PEAS] is
set.
The Shadow block may be locked/unlocked against program or erase by using the
LML[TSLK] and SLL[STSLK] bitfields.
Program of the Shadow block has similar restriction as the array in terms of how ECC is
calculated. Only one program is allowed per 64-bit ECC segment between erases.
Erase of the Shadow block is done similarly as an sectors erase.
The Shadow block contains specified data that are needed for user features.
The user area of Shadow block may be used for user-defined functions (possibly to store
boot code, other configuration words, or factory process codes).
The usage of the Shadow sector is detailed in Table 1 4 5 .