Flasheraseall Command - NXP Semiconductors freescale KV4 Series Reference Manual

Table of Contents

Advertisement

14.2.6.3 FlashEraseAll command

The FlashEraseAll command performs an erase of the entire flash memory. If any flash
regions are protected, then the FlashEraseAll command will fail and return an error status
code. Executing the FlashEraseAll command will release flash security if it (flash
security) was enabled, by setting the FTFA_FSEC register. However, the FSEC field of
the flash configuration field is erased, so unless it is reprogrammed, the flash security will
be re-enabled after the next system reset. The Command tag for FlashEraseAll command
is 0x01 set in the commandTag field of the command packet.
The FlashEraseAll command requires no parameters.
Host
0x5a a4 0c 00 53 63 a0 00 04 02 00 00 00 00 01 00 00 00
Figure 14-9. Protocol Sequence for FlashEraseAll Command
Table 14-20. FlashEraseAll Command Packet Format (Example)
FlashEraseAll
Parameter
Framing packet
start byte
packetType
length
crc16
Command packet
commandTag
flags
reserved
parameterCount
The FlashEraseAll command has no data phase.
Freescale Semiconductor, Inc.
FlashEraseAll
0x5a a4 04 00 c4 2e 01 00 00 00
ACK:
0x5a a1
Generic Response:
ACK:
0x5a a1
Value
0x5A
0xA4, kFramingPacketType_Command
0x04 0x00
0xC4 0x2E
0x01 - FlashEraseAll
0x00
0x00
0x00
KV4x Reference Manual, Rev. 2, 02/2015
Preliminary
Chapter 14 Kinetis Flashloader
Target
Process command
233

Advertisement

Table of Contents
loading

Table of Contents