Datasheet
Table 4-17. Flash commands (continued)
FCMD Command Function on flash memory
0x09 Erase flash block
Erase a flash or EEPROM block
An erase of the full flash block is possible only when FPROT[FPLDIS],
FPROT[FPHDIS], and FPROT[FPOEN] bits are set prior to launching the
command
0x0A Erase flash sector Erase all bytes in a flash sector
0x0B Unsecure flash
Supports a method of releasing MCU security by erasing all flash (and
EEPROM) blocks and verifying that all flash (and EEPROM) blocks are erased
0x0C Verify backdoor access key Supports a method of releasing MCU security by verifying a set of security keys
0x0D Set user margin level Specifies a user margin read level for all flash blocks
4.5.2.8.2 EEPROM commands
The following table summarizes the valid EEPROM commands along with the effects of
the commands on the EEPROM block.
Table 4-18. EEPROM commands
FCMD Command Function on flash memory
0x01 Erase verify all blocks Verify that all EEPROM (and flash) blocks are erased.
0x02 Erase verify block Verify that an EEPROM block is erased.
0x08 Erase all block
Erase all EEPROM and flash blocks
An erase of all EEPROM blocks is possible only when the FPROT[FPLDIS],
FPROT[FPHDIS], and FPROT[FPOEN] bits and the DPOPEN bit in the
EEPORT register are set prior to launching the command.
0x09 Erase EEPROM Block
Erase a EEPROM and flash block
An erase of the full flash block is possible only when FPROT[FPLDIS],
FPROT[FPHDIS] and FPROT[FPOPEN] bits are set prior to launching the
command.
0x0B Unsecure EEPROM
Supports a method of releasing MCU security by erasing all EEPROM and flash
blocks and verifying that all EEPROM and flash blocks are erased.
0x0D Set User Margin Level Specifies a user margin read level for all flash blocks.
0x10
Erase Verify EEPROM
Section
Verify that a given number of bytes starting at the address provided are erased.
0x11 Program EEPROM Program up to four bytes in the EEPROM block.
0x12 Erase EEPROM Sector Erase all bytes in a sector of the EEPROM block.
Flash and EEPROM
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
90 Freescale Semiconductor, Inc.
