1.23.15.15 NVM_BootFlashWriteProtectLock Function
C
The prototype of NVM_BootFlashWriteProtectLock() varies based on device family. Refer to the generated header file for the actual prototype to be used.
void NVM_BootFlashWriteProtectLock( void ); void NVM_BootFlashWriteProtectLock( NVM_BOOT_FLASH_WRITE_PROTECT_LOCK writeProtectLock );
Summary
Disable Writes to Boot flash Write Protect Lock register
Description
This Function will disable writes to write protect lock register. Once locked calling NVM_BootFlashWriteProtectEnable() and NVM_BootFlashWriteProtectDisable() does not have any effect.
Precondition
None
Parameters
Param | Description |
---|---|
writeProtectLock | Specifies Upper or Lower Boot to be locked |
Returns
None.
Example
NVM_BootFlashWriteProtectLock();
NVM_BootFlashWriteProtectLock(NVM_UPPER_BOOT_WRITE_PROTECT_LOCK);
Remarks
Writes to write protect lock register can be enabled only by Reset.