1.4.13.10 NVMCTRL_SecureRegionUnlock Function

C

void NVMCTRL_SecureRegionUnlock (NVMCTRL_SECURE_MEMORY_REGION region)

Summary

Unlocks a NVMCTRL secure region.

Description

This function unlocks a secure region that was locked using the NVMCTRL_SecureRegionLock() function. Unlocking a secure region unlocks all pages in the secure region and makes these pages accessible to write and erase operations.

Precondition

None.

Parameters

Param Description
region Secure region to be unlocked.

Returns

None.

Example

// Unlock the secure application region
NVMCTRL_SecureRegionUnlock(NVMCTRL_SECURE_MEMORY_REGION_APPLICATION);

Remarks

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