Datasheet

Table 4-36. Erase flash sector command FCCOB requirements
CCOBIX[2:0] FCCOB parameters
000 0x0A Global address [23:16] to identify flash block to be erased
001
Global address [15:0] anywhere within the sector to be erased. Refer to Overview for the flash
sector size
Upon clearing FSTAT[CCIF] to launch the erase flash sector command, the memory
controller will erase the selected flash sector and then verify that it is erased. The
FSTAT[CCIF] flag will be set after the erase flash sector operation has completed.
Table 4-37. Erase flash sector command error handling
Register Error bit Error condition
FSTAT
ACCERR
Set if CCOBIX[2:0] != 001 at command launch
Set if command not available in current mode (see Table 4-9)
Set if an invalid global address [23:16] is supplied.
1
(see Table 4-6)
Set if a misaligned longword address is supplied (global address [1:0] !=
00)
FPVIOL Set if the selected flash sector is protected
MGSTAT1 Set if any errors have been encountered during the verify operation
MGSTAT0
Set if any non-correctable errors have been encountered during the verify
operation
1. As defined by the memory map for NVM
4.5.2.9.10 Unsecure flash command
The unsecure flash command will erase the entire flash and EEPROM memory space,
and if the erase is successful, will release security.
Table 4-38. Unsecure flash command FCCOB requirements
CCOBIX[2:0] FCCOB parameters
000 0x0B Not required
Upon clearing FSTAT[CCIF] to launch the unsecure flash command, the memory
controller will erase the entire flash and EEPROM memory space and verify that it is
erased. If the memory controller verifies that the entire flash and EEPROM memory
space was properly erased, security will be released. If the erase verify is not successful,
the unsecure flash operation sets FSTAT[MGSTAT1] and terminates without changing
the security state. During the execution of this command (FSTAT[CCIF] = 0), the user
must not write to any flash and EEPROM module register. The FSTAT[CCIF] flag is set
after the unsecure flash operation has completed.
Chapter 4 Memory map
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
Freescale Semiconductor, Inc. 99