English
Language : 

R01US0079ED0103 Datasheet, PDF (25/66 Pages) Renesas Technology Corp – RENESAS 32-Bit MCU
Data Flash Access Library - Type T01, European Release
User Interface (API)
The following settings should be configured by user:
1. AUTHENTICATION_ID: A 16 byte access ID code.
The ID code is used to secure access to:
1. On Chip Debug unit
2. Serial programming
3. Self-programming only on older F1x devices. Newer devices will simply ignore a wrong ID
code so self-programming feature is always available.
On older devices where ID code is still checked, a wrong code will not result in a failed
initialization but FDL commands will fail to operate with a R_FDL_ERR_PROTECTION error
status.
2. CPU_FREQUENCY_MHZ: This defines the internal CPU frequency in MHz unit, rounded up to
the nearest integer, e.g. for 24.3 MHz set CPU_FREQUENCY_MHZ to 25. Please check the Device
Manual for limit values
3. FDL_POOL_SIZE: It defines the number of blocks to be accessed by the FDL for user access
and EEL access. Usually it is set to the total number of blocks physically available on the device.
For example, if the device is equipped with 32 KB of Data Flash and the block size is 64 bytes,
then FDL_POOL_SIZE can be any value up to 512
4. EEL_POOL_START: It defines the starting block of the EEL-Pool. If FDL is used without EEL on
top, the value should be set to 0
5. EEL_POOL_SIZE: It defines the number of blocks used for the EEL-Pool. If FDL is used without
EEL on top, the value should be set to 0
FDL block size is always equal to the physical block size of Data Flash.
Example of descriptor when FDL is used alone:
/* default access code */
#define AUTHENTICATION_ID
{ 0xFFFFFFFF, \
0xFFFFFFFF, \
0xFFFFFFFF, \
0xFFFFFFFF }
#define CPU_FREQUENCY_MHZ
(80)
/* FDL pool will use 512 blocks * 64 bytes = 32KB, no EEL pool */
#define FDL_POOL_SIZE
(512)
#define EEL_POOL_START
(0)
#define EEL_POOL_SIZE
(0)
Example of descriptor when EEL is used:
/* default access code */
#define AUTHENTICATION_ID
{ 0xFFFFFFFF, \
0xFFFFFFFF, \
0xFFFFFFFF, \
0xFFFFFFFF }
#define CPU_FREQUENCY_MHZ
(80)
/* FDL pool will use 32KB, EEL pool occupies fist 16 KB */
#define FDL_POOL_SIZE
(512)
#define EEL_POOL_START
(0)
#define EEL_POOL_SIZE
(256)
EEL may be configured to use virtual blocks. A virtual block size is an integer multiple of physical block
size and it is aligned to physical blocks. Please consult EEL documentation for details.
Example of descriptor when EEL is used with virtual block size 32 times the size of physical block size:
R01US0079ED0103
25
User Manual