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
Param | Description |
---|---|
handle | A 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.