1.10.14.13 1.11.15.13 1.12.15.13 1.13.14.13 1.14.11.11 1.15.12.11 1.22.16.13 1.23.15.13 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);