1.8.19.9 SEFCx_RegionUnlock Function

C

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

Summary

Unlocks a Flash region.

Description

This function is used to Unlock a certain region of on-chip flash. It takes in address as a parameter and unlocks 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 unlocked

Returns

None.

Example

SEFC0_RegionUnlock(0x00500000);

while(SEFC0_IsBusy());