128 KByte Flash Module (S12FTMRC128K1V1)
Table 13-28. P-Flash Commands
FCMD
Command
Function on P-Flash Memory
Read a dedicated 64 byte field in the nonvolatile information register in P-Flash block that
was previously programmed using the Program Once command.
0x04
0x06
0x07
Read Once
Program P-Flash
Program Once
Program a phrase in a P-Flash block.
Program a dedicated 64 byte field in the nonvolatile information register in P-Flash block
that is allowed to be programmed only once.
Erase all P-Flash (and D-Flash) blocks.
An erase of all Flash blocks is only possible when the FPLDIS, FPHDIS, and FPOPEN
bits in the FPROT register and the DPOPEN bit in the DFPROT register are set prior to
launching the command.
0x08
0x09
Erase All Blocks
Erase a P-Flash (or D-Flash) block.
An erase of the full P-Flash block is only possible when FPLDIS, FPHDIS and FPOPEN
bits in the FPROT register are set prior to launching the command.
Erase Flash Block
Erase P-Flash
Sector
Erase all bytes in a P-Flash sector.
0x0A
0x0B
0x0C
0x0D
0x0E
Supports a method of releasing MCU security by erasing all P-Flash (and D-Flash) blocks
and verifying that all P-Flash (and D-Flash) blocks are erased.
Unsecure Flash
Verify Backdoor
Access Key
Supports a method of releasing MCU security by verifying a set of security keys.
Set User Margin
Level
Specifies a user margin read level for all P-Flash blocks.
Set Field Margin
Level
Specifies a field margin read level for all P-Flash blocks (special modes only).
13.4.3.5 D-Flash Commands
Table 13-29 summarizes the valid D-Flash commands along with the effects of the commands on the D-
Flash block.
Table 13-29. D-Flash Commands
FCMD
Command
Function on D-Flash Memory
Erase Verify All
Blocks
Verify that all D-Flash (and P-Flash) blocks are erased.
0x01
0x02
Erase Verify Block Verify that the D-Flash block is erased.
Erase all D-Flash (and P-Flash) blocks.
An erase of all Flash blocks is only possible when the FPLDIS, FPHDIS, and FPOPEN
bits in the FPROT register and the DPOPEN bit in the DFPROT register are set prior to
launching the command.
0x08
0x09
Erase All Blocks
Erase a D-Flash (or P-Flash) block.
Erase Flash Block An erase of the full D-Flash block is only possible when DPOPEN bit in the DFPROT
register is set prior to launching the command.
Supports a method of releasing MCU security by erasing all D-Flash (and P-Flash) blocks
Unsecure Flash
0x0B
0x0D
0x0E
and verifying that all D-Flash (and P-Flash) blocks are erased.
Set User Margin
Level
Specifies a user margin read level for the D-Flash block.
Set Field Margin
Level
Specifies a field margin read level for the D-Flash block (special modes only).
S12P-Family Reference Manual, Rev. 1.13
454
Freescale Semiconductor