English
Language : 

K60P100M100SF2RM Datasheet, PDF (748/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Command Definition
30.3.1.6 Section Program
The Section Program (SP) command programs up to one section of flash memory which
has previously been erased. A section is defined as the smaller of the flash sector size or
half the size of the FlexRAM/Programming Acceleration RAM. The starting address of
the memory to program is sent after the command word and must be a 64-bit aligned
address (the three LSBs must be zero).
As data is shifted in, the EzPort buffers the data in FlexRAM/Programming Acceleration
RAM before executing a 'Program Section' command within the flash (see Flash Block
Guide for more detail). For this reason, the number of bytes to program must be a
multiple of 8 and up to one flash section can be programmed at a time.
Attempts to program more than one section, across a sector boundary or from an initial
address which does not fall within the valid address range (see Flash Memory Map for
EzPort Access) for the flash causes the WEF flag to set.
For devices with FlexRAM: This command requires the FlexRAM to be configured for
traditional RAM operation. By default, after entering EzPort mode, the FlexRAM is
configured for traditional RAM operation. If the user reconfigures FlexRAM for
EEPROM operation (see Flash Memory chapter for details on how FlexRAM function is
modified), then the user should use the WRFCCOB command to configure FlexRAM
back to traditional RAM operation before issuing a SP command.
This command is not accepted if the WEF, WIP, FLEXRAM, or FS bit is set or if the
WEN bit is not set in the EzPort status register.
30.3.1.7 Sector Erase
The Sector Erase (SE) command erases the contents of one sector of flash memory. The
three byte address sent after the command byte can be any address within the sector to
erase, but must be a 64-bit aligned address (the three LSBs must be zero). Attempts to
erase from an initial address which does not fall within the valid address range (see Flash
Memory Map for EzPort Access) for the flash results in the WEF flag being set.
This command is not accepted if the WEF, WIP or FS bit is set or if the WEN bit is not
set in the EzPort status register.
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
748
Freescale Semiconductor, Inc.