1.38.13.9 NVMCTRL_SecureRegionLock Function

C

void NVMCTRL_SecureRegionLock (NVMCTRL_SECURE_MEMORY_REGION region)

Summary

Locks a NVMCTRL secure region.

Description

This function locks the secure region specified in parameter. Locking a secure region prevents write and erase operations on all pages in the secure region. A secure region is unlocked by either calling the NVMCTRL_SecureRegionUnlock() function or by device reset. The size of each secure region is device dependant. Refer to the device specific datasheet for more details.

Precondition

None.

Parameters

Param Description
region Secure region to be locked.

Returns

None.

Example

// Lock the secure application region
NVMCTRL_SecureRegionLock(NVMCTRL_SECURE_MEMORY_REGION_APPLICATION);

Remarks

This NVMCTRL_SecureRegionLock() function is only available in trustZone supported devices.