The programming operation is unidirectional. It can only move NVM bits from the erased
state ('1') to the programmed state ('0'). Erased bits that fail to program to the '0' state are
flagged as errors in MGSTAT0. The CCIF flag is set after the Program Phrase operation
completes.
The starting address must be 64-bit aligned (flash address [2:0] = 000):
• Byte 0 data is written to the starting address ('start'),
• Byte 1 data is programmed to byte address start+0b01,
• Byte 2 data is programmed to byte address start+0b10, and
• Byte 3 data is programmed to byte address start+0b11, etc.
Table 32-29. Program Phrase command error handling
Error Condition
Error Bit
Command not available in current mode/security
FSTAT[ACCERR]
An invalid flash address is supplied
FSTAT[ACCERR]
Flash address is not 64-bit aligned
FSTAT[ACCERR]
Flash address points to a protected area
FSTAT[FPVIOL]
Any errors have been encountered during the verify operation.
FSTAT[MGSTAT0]
32.5.11.5 Erase Flash Block command
The Erase Flash Block operation erases all addresses in a single program flash or data
flash block.
Table 32-30. Erase Flash Block command FCCOB requirements
FCCOB Number
FCCOB Contents [7:0]
0
0x08 (ERSBLK)
1
Flash address [23:16] in the flash block to be erased
2
Flash address [15:8] in the flash block to be erased
3
Flash address [7:0]
in the flash block to be erased
1. Must be 128-bit aligned (Flash address [3:0] = 0000) for interleaved flash, 64-bit aligned (Flash address [2:0] = 000) for
non-interleaved flash.
Upon clearing CCIF to launch the Erase Flash Block command, the FTFC erases the
main array of the selected flash block and verifies that it is erased. When the data flash is
targeted, DEPART must be set for no EEPROM (see
Erase Flash Block command aborts setting the FSTAT[ACCERR] bit. The Erase Flash
Block command aborts and sets the FSTAT[FPVIOL] bit if any region within the block is
protected (see the description of the program flash protection (FPROT) registers and the
Chapter 32 Flash Memory Module (FTFC)
MWCT101xS Series Reference Manual, Rev. 3, 07/2019
NXP Semiconductors
757
Summary of Contents for MWCT101 S Series
Page 2: ...MWCT101xS Series Reference Manual Rev 3 07 2019 2 NXP Semiconductors...
Page 42: ...MWCT101xS Series Reference Manual Rev 3 07 2019 42 NXP Semiconductors...
Page 50: ...Conventions MWCT101xS Series Reference Manual Rev 3 07 2019 50 NXP Semiconductors...
Page 70: ...Aliased bit band regions MWCT101xS Series Reference Manual Rev 3 07 2019 70 NXP Semiconductors...
Page 78: ...Pinout diagrams MWCT101xS Series Reference Manual Rev 3 07 2019 78 NXP Semiconductors...
Page 96: ...WCT101xS safety concept MWCT101xS Series Reference Manual Rev 3 07 2019 96 NXP Semiconductors...
Page 130: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 130 NXP Semiconductors...
Page 284: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 284 NXP Semiconductors...
Page 430: ...Functional Description MWCT101xS Series Reference Manual Rev 3 07 2019 430 NXP Semiconductors...
Page 472: ...Application Information MWCT101xS Series Reference Manual Rev 3 07 2019 472 NXP Semiconductors...
Page 528: ...Module clocks MWCT101xS Series Reference Manual Rev 3 07 2019 528 NXP Semiconductors...
Page 634: ...SRAM configuration MWCT101xS Series Reference Manual Rev 3 07 2019 634 NXP Semiconductors...
Page 818: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 818 NXP Semiconductors...
Page 960: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 960 NXP Semiconductors...
Page 992: ...ADC calibration scheme MWCT101xS Series Reference Manual Rev 3 07 2019 992 NXP Semiconductors...
Page 1348: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1348 NXP Semiconductors...
Page 1366: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1366 NXP Semiconductors...
Page 1514: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1514 NXP Semiconductors...
Page 1726: ...Debug and security MWCT101xS Series Reference Manual Rev 3 07 2019 1726 NXP Semiconductors...
Page 1760: ...MWCT101xS Series Reference Manual Rev 3 07 2019 1760 NXP Semiconductors...