1.8.19.8 SEFCx_RegionLock Function

C

void SEFCx_RegionLock(uint32_t address); // x - Instance of the SEFC peripheral

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 SEFCx controller is ready to accept new request by calling SEFCx_IsBusy()

Parameters

Param Description
address Address of the page to be locked

Returns

None.

Example

SEFC0_RegionLock(0x00500000);

while(SEFC0_IsBusy());