7.3.2.1.2 LOCK Bit
The dsPIC33A devices have a one-way LOCK feature implemented through its NVMCON register. Once software sets the LOCK bit, only a Reset will clear the LOCK bit. The LOCK bit, if set, prevents all erase and programming operations. If the LOCK bit is set while an erase or programming operation is in progress, the operation can continue to completion.
A one-way ECCLOCK has been implemented in the ECCCON register. Once the software sets the ECCLOCK bit, only a Reset will clear the ECCLOCK bit. If the ECCLOCK bit is set, the Fault injection feature is disabled.