29.4.2 Flash Access Protection
Individual segments within the program flash memory can be designated for restricted
access. Specific flash commands (Program Check, Program Longword, Erase Flash
Block, Erase Flash Sector) monitor FXACC contents to protect flash memory but the
FSACC contents do not impact flash command operation.
See AN5112: Using the Kinetis Flash Execute-Only Access Control Feature for further
details.
Access is controlled by the following registers:
• FTFA_XACC —
• For 2
n
program flash sizes greater than 128KB, eight registers control 64
segments of the program flash memory as shown in the following figure
Program flash size / 64
XACCL3[XA0]
0x0_0000
Program flash
Last program flash address
Program flash size / 64
XACCL3[XA1]
Program flash size / 64
XACCL3[XA2]
Program flash size / 64
XACCL3[XA3]
Program flash size / 64
XACCL3[XA4]
Program flash size / 64
XACCL0[XA31]
Program flash size / 64
XACCH3[XA32]
Program flash size / 64
XACCH0[XA59]
Program flash size / 64
XACCH0[XA60]
Program flash size / 64
XACCH0[XA61]
Program flash size / 64
XACCH0[XA62]
Program flash size / 64
XACCH0[XA63]
Figure 29-3. Program flash execute-only access control (256KB or 512KB of program
flash)
• FTFA_SACC —
• For 2
n
program flash sizes greater than 128KB, eight registers control 64
segments of the program flash memory as shown in the following figure
Chapter 29 Flash Memory Module (FTFA)
K22F Sub-Family Reference Manual, Rev. 4, 08/2016
NXP Semiconductors 649