DRV_SST38_ChipErase Function

C

bool DRV_SST38_ChipErase( const DRV_HANDLE handle )

Summary

Erase entire SST38 Flash memory.

Description

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

Preconditions

The DRV_SST38_Open() routine must have been called for the specified SST38 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_SST38_ChipErase(handle) == flase)
{
    printf("Error handling here");
}

Remarks

None.