29.4.7 Erase Function Lock

The Flash Erase Pin function can be locked, by programming the GPNVM[4:2], to prevent the device from being erased. The Erase Function Lock (EFL) is managed at application level.

By default the Erase pin is active. These GPNVM bits can be set to 0 or 1 by software, they apply only to the Erase Pin. These bits do not prevent software Erase commands.

Table 29-5. Erase Function Lock
DescriptionGPNVM[4:2] Bits
Not locked000
Erase Function Locked modifiable by software011
Erase Function Locked not modifiable110
Erase Function Locked modifiable by softwareOthers

When the EFL is activated and the Security bit enabled, the device cannot be recovered. This function must be carefully used and should be validated at the very end of the production process.