Writememory Command - NXP Semiconductors freescale KV4 Series Reference Manual

Table of Contents

Advertisement

14.2.6.6 WriteMemory command

The WriteMemory command writes data provided in the data phase to a specified range
of bytes in memory (flash or RAM). However, if flash protection is enabled, then writes
to protected sectors will fail.
Special care must be taken when writing to flash.
• First, any flash sector written to must have been previously erased with a
FlashEraseAll or FlashEraseRegion command.
• Writing to flash requires the start address to be .
• If the VerifyWrites property is set to true, then writes to flash will also perform a
flash verify program operation.
When writing to RAM, the start address need not be aligned, and the data will not be
padded.
The start address and number of bytes are the 2 parameters required for WriteMemory
command.
Table 14-25. Parameters for WriteMemory Command
Byte #
0 - 3
4 - 7
Freescale Semiconductor, Inc.
Start address
Byte count
KV4x Reference Manual, Rev. 2, 02/2015
Preliminary
Chapter 14 Kinetis Flashloader
Command
237

Advertisement

Table of Contents
loading

Table of Contents