Flasheraseregion Command - NXP Semiconductors freescale KV4 Series Reference Manual

Table of Contents

Advertisement

Functional Description
Response: The target (Kinetis Flashloader ) will return a GenericResponse packet with
status code either set to kStatus_Success for successful execution of the command, or set
to an appropriate error status code.

14.2.6.4 FlashEraseRegion command

The FlashEraseRegion command performs an erase of one or more sectors of the flash
memory.
The start address and number of bytes are the 2 parameters required for the
FlashEraseRegion command. The start and byte count parameters must be , or the
FlashEraseRegion command will fail and return kStatus_FlashAlignmentError (0x101).
If the region specified does not fit in the flash memory space, the FlashEraseRegion
command will fail and return kStatus_FlashAddressError (0x102). If any part of the
region specified is protected, the FlashEraseRegion command will fail and return
kStatus_MemoryRangeInvalid (0x10200).
Table 14-21. Parameters for FlashEraseRegion Command
Byte #
0 - 3
4 - 7
Host
FlashEraseRegion: startAddress=0, byteCount=1024
0x5a a4 0c 00 f9 a6 02 00 00 00 00 00 00 00 00 04 00 00
Generic Response:
0x5a a4 0c 00 ba 55 a0 00 00 02 00 00 00 00 02 00 00 00
Figure 14-10. Protocol Sequence for FlashEraseRegion Command
The FlashEraseRegion command has no data phase.
234
Start address
Byte count
ACK:
0x5a a1
ACK:
0x5a a1
KV4x Reference Manual, Rev. 2, 02/2015
Preliminary
Parameter
Target
Process command
Freescale Semiconductor, Inc.

Advertisement

Table of Contents
loading

Table of Contents