
24.4.11.13 Erase All Blocks Unsecure Command
The Erase All Blocks Unsecure operation erases all flash memory, verifies all memory
contents, programs the security byte in the Flash Configuration Field to the unsecure
state, and releases MCU security.
Table 24-33. Erase All Blocks Unsecure Command FCCOB Requirements
FCCOB Number
FCCOB Contents [7:0]
0
0x49 (ERSALLU)
After clearing CCIF to launch the Erase All Blocks Unsecure command, the flash
memory module erases all program flash memory and the program flash erasable IFR
space, then verifies that all are erased.
If the flash memory module verifies that all program flash memory and the program flash
erasable IFR space was properly erased, access control is disabled, security is released by
setting the FSEC[SEC] field to the unsecure state, and the security byte (see
Configuration Field Description
) is programmed to the unsecure state by the Erase All
Blocks Unsecure command. If the erase or program verify fails, the FSTAT[MGSTAT0]
bit is set. The CCIF flag is set after the Erase All Blocks Unsecure operation completes.
Access control determined by the contents of the FXACC registers will not block
execution of the Erase All Blocks Unsecure command. While most Flash memory will be
erased, the program flash IFR space containing the Program Once XACC and SACC
fields will not be erased and, therefore, the contents of the Program Once XACC and
SACC fields will not change. The contents of the FXACC and FSACC registers will not
be impacted by the execution of the Erase All Blocks Unsecure command. After
completion of the Erase All Blocks Unsecure command, access control is disabled until
the next reset of the flash module or the Read 1s All Blocks command is executed and
fails (FSTAT[MGSTAT0] is set).
Table 24-34. Erase All Blocks Unsecure Command Error Handling
Error Condition
Error Bit
Command not available in current mode/security
FSTAT[ACCERR]
Any errors have been encountered during erase or program verify operations
FSTAT[MGSTAT0]
Functional Description
K32 L2A Reference Manual, Rev. 2, 01/2020
650
NXP Semiconductors
Summary of Contents for K32 L2A Series
Page 2: ...K32 L2A Reference Manual Rev 2 01 2020 2 NXP Semiconductors...
Page 42: ...K32 L2A Reference Manual Rev 2 01 2020 42 NXP Semiconductors...
Page 122: ...Flash Memory Clock K32 L2A Reference Manual Rev 2 01 2020 122 NXP Semiconductors...
Page 158: ...Debug and security K32 L2A Reference Manual Rev 2 01 2020 158 NXP Semiconductors...
Page 174: ...Module Signal Description Tables K32 L2A Reference Manual Rev 2 01 2020 174 NXP Semiconductors...
Page 246: ...Application information K32 L2A Reference Manual Rev 2 01 2020 246 NXP Semiconductors...
Page 374: ...CMP Trigger Mode K32 L2A Reference Manual Rev 2 01 2020 374 NXP Semiconductors...
Page 384: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 384 NXP Semiconductors...
Page 592: ...Application Information K32 L2A Reference Manual Rev 2 01 2020 592 NXP Semiconductors...
Page 656: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 656 NXP Semiconductors...
Page 664: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 664 NXP Semiconductors...
Page 744: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 744 NXP Semiconductors...
Page 762: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 762 NXP Semiconductors...
Page 806: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 806 NXP Semiconductors...
Page 868: ...Integer square root K32 L2A Reference Manual Rev 2 01 2020 868 NXP Semiconductors...
Page 976: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 976 NXP Semiconductors...
Page 1012: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1012 NXP Semiconductors...
Page 1094: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1094 NXP Semiconductors...
Page 1132: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1132 NXP Semiconductors...
Page 1182: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1182 NXP Semiconductors...
Page 1290: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1290 NXP Semiconductors...