Jump to main content

##

# 2.52.7 HEFC_RegionLock Function

## C

    void HEFC_RegionLock(uint32_t address);

## Summary

Locks a Flash region.

## Description

This function is used to lock a certain region of on-chip flash. It takes in address as a parameter and locks the region associated with it.

## Precondition

Validate if HEFC controller is ready to accept new request by calling HEFC_IsBusy()

## Parameters

Param | Description
--- | ---
address | Address of the page to be locked

## Returns

None.

## Example

    HEFC_RegionLock(0x10010000);

    while(HEFC_IsBusy());