Alessandro Angelino / target-mcu-k64f

Fork of target-mcu-k64f by Morpheus

Embed: (wiki syntax)

« Back to documentation index

_hw_ftfe_fprot2 Union Reference

_hw_ftfe_fprot2 Union Reference

HW_FTFE_FPROT2 - Program Flash Protection Registers (RW) More...

#include <MK64F12_ftfe.h>


Detailed Description

HW_FTFE_FPROT2 - Program Flash Protection Registers (RW)

Reset value: 0x00U

The FPROT registers define which program flash regions are protected from program and erase operations. Protected flash regions cannot have their content changed; that is, these regions cannot be programmed and cannot be erased by any FTFE command. Unprotected regions can be changed by program and erase operations. The four FPROT registers allow up to 32 protectable regions of equal memory size. Program flash protection register Program flash protection bits FPROT0 PROT[31:24] FPROT1 PROT[23:16] FPROT2 PROT[15:8] FPROT3 PROT[7:0] During the reset sequence, the FPROT registers are loaded with the contents of the program flash protection bytes in the Flash Configuration Field as indicated in the following table. Program flash protection register Flash Configuration Field offset address FPROT0 0x000B FPROT1 0x000A FPROT2 0x0009 FPROT3 0x0008 To change the program flash protection that is loaded during the reset sequence, unprotect the sector of program flash memory that contains the Flash Configuration Field. Then, reprogram the program flash protection byte.

Definition at line 1888 of file MK64F12_ftfe.h.