Program Flash Command - NXP Semiconductors MC9S08SU16 Reference Manual

Table of Contents

Advertisement

Functional description
Table 11-18. Read Once command error handling
Register
FSTAT

11.3.10.5 Program Flash command

The program flash operation will program up to two previously erased longwords in the
flash memory using an embedded algorithm.
A flash longword must be in the erased state before being
programmed. Cumulative programming of bits within a flash
longword is not allowed.
Table 11-19. Program Flash command FCCOB requirements
CCOBIX[2:0]
000
001
010
011
100
101
1. Global address [1:0] must be 00.
Upon clearing FSTAT[CCIF] to launch the Program Flash command, the memory
controller will program the data longwords to the supplied global address and will then
proceed to verify the data longwords read back as expected. The FSTAT[CCIF] flag will
set after the program flash operation has completed.
Table 11-20. Program Flash command error handling
Register
FSTAT
172
Error bit
Error condition
Set if CCOBIX[2:0] != 001 at command launch
ACCERR
Set if command is not available in current mode (see
Set if an invalid phrase index is supplied
FPVIOL
None
MGSTAT1
Set if any errors have been encountered during the read
MGSTAT0
Set if any errors have been encountered during the read
Note
FCCOBHI parameters
0x06
Global address [15:0] of longwords location to be programmed
Word 0 (longword 0) program value
Word 1 (longword 0) program value
Word 2 (longword 1) program value
Word 3 (longword 1) program value
Error bit
Error condition
Set if CCOBIX[2:0] ≠ 011 or 101 at command launch
ACCERR
Set if command not available in current mode (see
Set if an invalid global address [23:0] is supplied (see
Table continues on the next page...
MC9S08SU16 Reference Manual, Rev. 5, 4/2017
FCCOBLO parameters
Global address [23:16] to identify flash block
Table
11-4)
1
Table
11-4)
1
Table
11-1.
NXP Semiconductors

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc9s08su16vfkMc9s08su8vfk

Table of Contents