Flash Protection Register (Ftmrh_Fprot) - NXP Semiconductors MC9S08SU16 Reference Manual

Table of Contents

Advertisement

Field
One or more MGSTAT flag bits are set if an error is detected during execution of a flash command or
during the flash reset sequence.
NOTE: Reset value can deviate from the value shown if a double bit fault is detected during the reset

11.4.6 Flash Protection Register (FTMRH_FPROT)

The FPROT register defines which flash sectors are protected against program and erase
operations.
The unreserved bits of the FPROT register are writable with the restriction that the size of
the protected region can only be increased (see Protection). All the unreserved bits of the
FPROT register are writable without restriction in active Background Debug Mode
(BDM).
During the reset sequence, the FPROT register is loaded with the contents of the flash
protection byte in the flash configuration field at global address 0x40D located in flash
memory. To change the flash protection that will be loaded during the reset sequence, the
upper sector of the flash memory must be unprotected, then the flash protection byte must
be reprogrammed.
Trying to alter data in any protected area in the flash memory will result in a protection
violation error and the FPVIOL bit will be set in the FSTAT register. The block erase of a
flash block is not possible if any of the flash sectors contained in the same flash block are
protected.
Address: 1830h base + 8h offset = 1838h
Bit
7
Read
FPOPEN
Write
Reset
x*
Field
7
Flash Protection Operation Enable
FPOPEN
The FPOPEN bit determines the protection function for program or erase operations.
0
When FPOPEN is clear, the FPHDIS fields defines unprotected address ranges as specified by the
corresponding FPHS field.
1
When FPOPEN is set, the FPHDIS fields enables protection for the address range specified by the
corresponding FPHS field.
NXP Semiconductors
FTMRH_FSTAT field descriptions (continued)
sequence.
6
5
RNV6
FPHDIS
x*
x*
FTMRH_FPROT field descriptions
Table continues on the next page...
MC9S08SU16 Reference Manual, Rev. 5, 4/2017
Chapter 11 Flash Memory Module (FTMRH)
Description
4
3
FPHS
x*
x*
Description
2
1
RNV
0
0
0
0
185

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc9s08su16vfkMc9s08su8vfk

Table of Contents