English
Language : 

R01US0079ED0103 Datasheet, PDF (45/66 Pages) Renesas Technology Corp – RENESAS 32-Bit MCU
Data Flash Access Library - Type T01, European Release
User Interface (API)
4.5.1 R_FDL_CMD_ERASE
The erase command can be used to erase a number of Flash blocks defined by a start block and the
number of blocks.
The members of the request structure given to R_FDL_Execute are described in the following table:
Table 3: Request structure usage for erase command
Structure member
command_enu
bufAddr_u32
Value
R_FDL_CMD_ERASE
-
idx_u32
{uint32_t number}
cnt_u16
accessType_enu
status_enu
{uint16_t number}
R_FDL_ACCESS_USER /
R_FDL_ACCESS_EEL
-
Description
Request a block erase operation
Not used
Number of the first block to be erased. Flash
blocks are defined by the erase granularity
that is 64 Bytes, e.g.:
block 0: 0x00 ... 0x3F
block 1: 0x40 ... 0x7F
...
Numbers of blocks to erase
Selects the Flash pool in which the command
will be able to operate.
This is an output member. It contains the
status of the operation during and after the
execution. Possible values are described in
the next table.
The following table describes all possible status returns:
Table 4: Erase operation returned status
Status
R_FDL_BUSY
R_FDL_OK(1)
R_FDL_SUSPENDED(1)
R_FDL_ERR_PARAMETER(2)
meaning
reason
remedy
meaning
reason
remedy
meaning
reason
remedy
meaning
reason
Background and Handling
Operation started successfully
No problems during execution
Call R_FDL_Handler until the Flash operation is finished,
reported by the request structure status return value
Operation finished successfully
No problems during execution
Nothing
An on-going Flash operation was successfully suspended
Suspend processing successfully finished
Start another operation or resume the suspended
operation
Current command is rejected
Wrong command parameters:
 access is made outside of physically available Data
Flash
 command shall operate in User-pool but
accessType_enu is not R_FDL_ACCESS_USER
 command shall operate in EEL-pool but
accessType_enu is not R_FDL_ACCESS_EEL
 cnt_u16 is 0 or it is too big
R01US0079ED0103
45
User Manual