English
Language : 

R01US0079ED0103 Datasheet, PDF (14/66 Pages) Renesas Technology Corp – RENESAS 32-Bit MCU
Data Flash Access Library - Type T01, European Release
Chapter 3 Functional Specifications
Functional Specifications
3.1 Supported functions, commands and Flash operations
For a better understanding of the flows and mechanisms required for an FDL usage, the basic functions
of the FDL are introduced in the following. The API of the FDL is thereby, on the one hand based on
functions used to manage the operation of the library itself, on the other hand it offers so-called
commands to access and control the content of the FDL pool.
The following table lists up all functions, the library will support. Please refer to the chapter 4.4 “Functions”
for detailed descriptions.
Table 1: FDL Function
R_FDL_Init
R_FDL_Execute
Function
R_FDL_Handler
R_FDL_SuspendRequest
R_FDL_ResumeRequest
R_FDL_StandBy
R_FDL_WakeUp
R_FDL_GetVersionString
Description
Initialize the library and Flash hardware
Initiate a Flash operation
Control an initiated Flash operation and forward the
status.
Request suspending an on-going Flash operation
Resume a suspended Flash operation
Suspend an on-going Flash operation from an
asynchronous context
Wake-up the FDL from Stand-by state
Return a pointer to the library version string
Commands are used to manage the FDL pool. Commands are initiated via R_FDL_Execute and the
further progress is controlled by regular execution of R_FDL_Handler.
The following commands can be used to execute the following Flash operations:
Table 2: FDL commands and operations
Command
R_FDL_CMD_ERASE
R_FDL_CMD_WRITE
Initiated Flash
operation
Flash erase
Flash write
R_FDL_CMD_BLANKCHECK Flash blank check
R_FDL_CMD_READ
Flash data read
Description
Erase one or more Flash blocks
Write one or more Flash words
Blank Check one or more Flash words. Return the fail
address in case some Flash word is not blank
Read one or more Flash words to a buffer. Return a
possible ECC (Error correction code) error to the
application together with the address of the error
The following picture shows the basic flow of Flash operations at the example of erasing 2 Flash blocks.
While the Flash hardware can only Erase or Write one unit (Erase 1 block, Write 1 word), the FDL will
manage handling multiple units. Blank Check is executed on word basis but internally it is split in multiple
units at each multiple of 0x4000 bytes boundary.
R01US0079ED0103
14
User Manual