DRV_SST39_ChipErase Function

C

bool DRV_SST39_ChipErase( const DRV_HANDLE handle )

Summary

Erase entire SST39 Flash memory.

Description

This function schedules a blocking chip erase operation of Flash memory.

Preconditions

The DRV_SST39_Open() routine must have been called for the specified SST39 driver instance.

Parameters

ParametersDescription
handleA valid open-instance handle, returned from the driver's open routine

Returns

  • True:

    • If the erase request is successfully sent to the Flash

  • False:

    • If Write enable fails before sending sector erase command to Flash

    • If chip erase command itself fails

Example

DRV_HANDLE handle;

if(DRV_SST39_ChipErase(handle) == flase)
{
    printf("Error handling here");
}

Remarks

None.