English
Language : 

R01US0079ED0103 Datasheet, PDF (33/66 Pages) Renesas Technology Corp – RENESAS 32-Bit MCU
Data Flash Access Library - Type T01, European Release
User Interface (API)
Description: This function is executed before any execution of FDL Flash operation.
Function checks the input parameters and initializes the hardware and software.
Note:
This function will temporarily disable Code Flash. Please refer to Chapter 6
Cautions for limitations that must be considered.
Example:
const r_fdl_descriptor_t
{
AUTHENTICATION_ID,
CPU_FREQUENCY_MHZ,
FDL_POOL_SIZE,
EEL_POOL_START,
EEL_POOL_SIZE
};
sampleApp_fdlConfig_enu =
r_fdl_status_t ret;
ret = R_FDL_Init (&sampleApp_fdlConfig_enu);
if (ret != R_FDL_OK)
{
/* Error handler */
}
Example: for setting the protected section with callbacks provided in the sample application
#define FDL_CRITICAL_SECTION_BEGIN
#define FDL_CRITICAL_SECTION_END
FDL_User_CriticalSetionBegin();
FDL_User_CriticalSetionEnd();
4.4.2 Flash Operations
4.4.2.1 R_FDL_Execute
Outline: Initiate a Data Flash operation.
Interface: C Interface
void R_FDL_Execute (r_fdl_request_t * request_pstr);
Arguments: Parameters
Argument
request_pstr
Type
r_fdl_request_t *
Access
Description
This argument points to a
request structure defining the
command, command parameters
RW
and also the execution results.
A more detailed description of
request structure can be found in
section 4.3.3 “r_fdl_request_t”.
R01US0079ED0103
33
User Manual