1.15.12.11 NVM_BootFlashWriteProtectEnable Function
C
void NVM_BootFlashWriteProtectEnable( NVM_BOOT_FLASH_WRITE_PROTECT writeProtectPage )
Summary
Protect Boot Flash Memory Page from Writes
Description
Protects the specified Boot Flash Page from writes. It can be used to enable protection for both Upper and Lower Boot flash pages on applicable devices
Precondition
None
Parameters
Param | Description |
---|---|
writeProtectPage | Boot Flash Page to be protected. |
Returns
None.
Example
The boot flash protect pages vary based on device family. Refer to the generated header file for the actual boot flash protect page enumerator constant to be used with the API.
// Protects Boot flash Page 0 NVM_BootFlashWriteProtectEnable(NVM_BOOT_WRITE_PROTECT_0);
// Protects Upper Boot flash Page 0 NVM_BootFlashWriteProtectEnable(NVM_UPPER_BOOT_WRITE_PROTECT_0);