![NXP Semiconductors MC9S08PA4 Reference Manual Download Page 71](http://html1.mh-extra.com/html/nxp-semiconductors/mc9s08pa4/mc9s08pa4_reference-manual_1721838071.webp)
Table 4-16. Flash commands (continued)
FCMD
Command
Function on flash memory
An erase of all flash blocks is possible only when the FPROT[FPHDIS], and
FPROT[FPOEN] bits and the EEPROT[DPOPEN] bit are set prior to launching
the command
0x09
Erase flash block
Erase a flash or EEPROM block
An erase of the full flash block is possible only when 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-17. 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[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[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.
Chapter 4 Memory map
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
NXP Semiconductors
71
Summary of Contents for MC9S08PA4
Page 1: ...MC9S08PA4 Reference Manual Supports MC9S08PA4 Document Number MC9S08PA4RM Rev 5 08 2017 ...
Page 2: ...MC9S08PA4 Reference Manual Rev 5 08 2017 2 NXP Semiconductors ...
Page 22: ...MC9S08PA4 Reference Manual Rev 5 08 2017 22 NXP Semiconductors ...
Page 28: ...System clock distribution MC9S08PA4 Reference Manual Rev 5 08 2017 28 NXP Semiconductors ...
Page 150: ...Port data registers MC9S08PA4 Reference Manual Rev 5 08 2017 150 NXP Semiconductors ...
Page 196: ...Human machine interfaces HMI MC9S08PA4 Reference Manual Rev 5 08 2017 196 NXP Semiconductors ...
Page 224: ...Instruction Set Summary MC9S08PA4 Reference Manual Rev 5 08 2017 224 NXP Semiconductors ...
Page 232: ...Functional Description MC9S08PA4 Reference Manual Rev 5 08 2017 232 NXP Semiconductors ...
Page 258: ...FTM Interrupts MC9S08PA4 Reference Manual Rev 5 08 2017 258 NXP Semiconductors ...
Page 294: ...Functional description MC9S08PA4 Reference Manual Rev 5 08 2017 294 NXP Semiconductors ...
Page 398: ...Resets MC9S08PA4 Reference Manual Rev 5 08 2017 398 NXP Semiconductors ...
Page 400: ...MC9S08PA4 Reference Manual Rev 5 08 2017 400 NXP Semiconductors ...