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

ParamDescription
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.