
17.4.4.8 Data Flash Protection Register (FTFE_FDPROT)
The FDPROT register defines which data flash regions are protected against program and
erase operations. Protected Flash regions cannot have their content changed; that is, these
regions cannot be programmed and cannot be erased by any FTFE command.
Unprotected regions can be changed by both program and erase operations.
Address: 4002_0000h base + 17h offset = 4002_0017h
Bit
7
6
5
4
3
2
1
0
Read
Write
Reset
* Notes:
x = Undefined at reset.
•
FTFE_FDPROT field descriptions
Field
Description
DPROT
Data Flash Region Protect
Individual data flash regions can be protected from program and erase operations by setting the
associated DPROT bit to the protected state. Each DPROT bit protects one-eighth of the partitioned data
flash memory space for 2
n
sizes. The granularity of data flash protection cannot be less than the data flash
sector size. If an unused DPROT bit is set to the protected state, the Erase all Blocks command does not
execute and sets the FSTAT[FPVIOL] bit. See the Flash Protection section for more information.
The protection can only be increased, meaning that currently unprotected memory can be protected but
currently protected memory cannot be unprotected. Since unprotected regions are marked with a 1 and
protected regions use a 0, only writes changing 1s to 0s are accepted. This 1-to-0 transition check is
performed on a bit-by-bit basis. Those FDPROT bits with 1-to-0 transitions are accepted while all bits with
0-to-1 transitions are ignored.
Restriction: The user must never write to the FDPROT register while a command is running (CCIF=0).
Reset: During the reset sequence, the FDPROT register is loaded with the contents of the data flash
protection byte in the Flash Configuration Field located in program flash memory. The flash basis for the
reset values is signified by X in the register diagram. To change the data flash protection that will be
loaded during the reset sequence, unprotect the sector of program flash that contains the Flash
Configuration Field. Then, erase and reprogram the data flash protection byte.
Trying to alter data with the program and erase commands in any protected area in the data flash memory
results in a protection violation error and sets the FSTAT[FPVIOL] bit. A block erase of any data flash
memory block (see the Erase Flash Block command description) is not possible if the data flash block
contains any protected region or if the FlexNVM memory has been partitioned for EEPROM.
0
Data Flash region is protected
1
Data Flash region is not protected
Chapter 17 Flash Memory Module (FTFE)
Kinetis KE1xF Sub-Family Reference Manual, Rev. 4, 06/2019
NXP Semiconductors
383
Summary of Contents for KE1xF Series
Page 2: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 2 NXP Semiconductors...
Page 138: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 138 NXP Semiconductors...
Page 360: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 360 NXP Semiconductors...
Page 490: ...Interrupts Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 490 NXP Semiconductors...
Page 562: ...Boot Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 562 NXP Semiconductors...
Page 706: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 706 NXP Semiconductors...
Page 736: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 736 NXP Semiconductors...
Page 866: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 866 NXP Semiconductors...
Page 1164: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1164 NXP Semiconductors...
Page 1178: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1178 NXP Semiconductors...
Page 1380: ...Usage Guide Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1380 NXP Semiconductors...
Page 1472: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1472 NXP Semiconductors...
Page 1482: ...Kinetis KE1xF Sub Family Reference Manual Rev 4 06 2019 1482 NXP Semiconductors...