Jump to main content

##

# 2.41.4 EFC_PageWrite Function

## C

    bool EFC_PageWrite( uint32_t* data, uint32_t address )

## Summary

Writes data of size equivalent to page size to a given FLASH address.

## Description

This function takes a 32-bit address, a pointer to data of size equivalent to page size and writes it to the given location in FLASH memory.

## Precondition

Validate if EFC controller is ready to accept new request by calling EFC_IsBusy() The Page to be written should be in Erased State.

## Parameters

Param | Description
--- | ---
address | FLASH address to be modified
data | pointer to data buffer

## Returns

Always returns true.

## Example

    EFC_PageWrite( (uint32_t *) buffer, 0x500000);

    while(EFC_IsBusy());

## Remarks

Application needs to poll for busy bit or wait for callback to be called before sending next request.