Jump to main content

##

# 3.12.19.15 SEFC_QuadWordWrite Function

## C

    bool SEFC_QuadWordWrite( uint32_t* data, uint32_t address )

## Summary

Writes a 128-bit data to a given address in FLASH memory.

## Description

This function takes a 32-bit address and a pointer to 128-bit data as argument. Depending on the flash panel that is mapped at the given address, it calls the associated SEFC flash controller instance and writes the data to the given location in FLASH memory.

## Precondition

Validate if SEFCx controller is ready to accept new request by calling SEFC_IsBusy() The Memory to be written should be in Erased State.

## Parameters

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

## Returns

Always returns true.

## Example

    uint32_t data[4];

    data[0] = 0x12345678;
    data[1] = 0x87654321;
    data[2] = 0x12345678;
    data[3] = 0x87654321;

    SEFC_QuadWordWrite((uint32_t *) data, 0x500000);

    while(SEFC_IsBusy(0x500000));

## Remarks

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