psp_spifi_erase


This function is provided by the PSP to erase part of the device.

Format

int psp_spifi_erase (
    uint8_t    uid,
    uint32_t   addr,
    uint32_t   len )

Arguments

Argument Description Type
uid The unit ID. uint8_t
addr The address to erase from. uint32_t
len The length of the data to erase. uint32_t

Return Values

Return value Description
PSP_SPIFI_SUCCESS Successful execution.
PSP_SPIFI_ERROR Operation failed.