Operation - Renesas FSL-T06 User Manual

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
5.3.2
5.3.2.1 FSL_Erase
R01US0046ED Rev. 1.01
User Manual

Operation

Description
Function erases a range of blocks.
Interface
fsl_status_t FSL_Erase( fsl_u32 blockNoStart_u32,
Arguments
Type
fsl_u32
blockNoStart_u32
fsl_u32
blockNoEnd_u32
Return types / values
Type
fsl_status_t
1
Status check is performed internally by the firmware
2
Status check is performed by the user
Pre-conditions
Library must be initialized (call function FSL_Init), copied (call function
FSL_CopySections) and active (call function FSL_FlashEnv_Activate).
Additionally the library must be informed about FBUS clock by using function
FSL_SetFrequency.
Post-conditions
In case of user mode call FSL_StatusCheck till function return value is different
from FSL_BUSY.
fsl_u32 blockNoEnd_u32 )
Argument
First block number to be erased. (It is
not the block address, but the number of
the Flash block.)
Last block number to be erased. (It is
not the block address, but the number of
the Flash block.)
Argument
Operation status when returned from
function call:
Description
Description
1
FSL_OK
2
FSL_BUSY
FSL_ERR_FLOW
FSL_ERR_PROTECTION
FSL_ERR_PARAMETER
FSL_ERR_ERASE
FSL_ERR_INTERNAL
User Interface (API)
1
1
33

Advertisement

Table of Contents
loading

Table of Contents