EasyManua.ls Logo

NXP Semiconductors K22F series - Page 676

NXP Semiconductors K22F series
1407 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
After clearing CCIF to launch the Read 1s All Execute-only Segments command, the
flash memory module :
sets the read margin for 1s according to Table 29-34,
checks the contents of the program flash execute-only segments are in the erased
state.
If the flash memory module confirms that these segments are erased, flash access control
is disabled until the next reset or, after programming any of the execute-only segments,
the Read 1s All Execute-only Segments command is executed and fails with the
FSTAT[MGSTAT0] bit set. If the read fails, i.e. all segments are not in the fully erased
state, the FSTAT[MGSTAT0] bit is set.
The CCIF flag sets after the Read 1s All Execute-only Segments operation has
completed.
Table 29-34. Margin Level Choices for Read 1s All Execute-only Segments
Read Margin Choice Margin Level Description
0x00 Use the 'normal' read level for 1s
0x01 Apply the 'User' margin to the normal read-1 level
0x02 Apply the 'Factory' margin to the normal read-1 level
Table 29-35. Read 1s All Execute-only Segments Command Error Handling
Error Condition Error Bit
Command not available in current mode/security FSTAT[ACCERR]
An invalid margin choice is specified FSTAT[ACCERR]
Sector size is larger than segment size FSTAT[ACCERR]
Read-1s fails FSTAT[MGSTAT0]
29.4.11.14 Erase All Execute-only Segments Command
The Erase All Execute-only Segments operation erases all program flash execute-only
segments defined by the FXACC registers, verifies all segments are erased, and releases
flash access control.
Table 29-36. Erase All Execute-only Segments Command FCCOB Requirements
FCCOB Number FCCOB Contents [7:0]
0 0x4B (ERSXA)
Functional Description
K22F Sub-Family Reference Manual, Rev. 4, 08/2016
676 NXP Semiconductors

Table of Contents

Related product manuals