Overview
Description
Data Flash Driver for RX Family
M3S-DATFRX (DATFRX) is a block-type device driver for handling storage in the flash memory (data flash) embedded in RX-family MCUs. Data can be updated or read by calling user API functions of the data management driver. The data management driver eases the construction of data management systems that use the flash memory (data flash).
This software library is a FIT module based on the Renesas Firmware Integration Technology (FIT). You can easily embed specific software in user applications by combining the required FIT modules.
Components
- Driver software for managing data(Source file for RX family)
- Sample program (Project for e² studio)
- Application note

Features
- Supports Firmware Integration Technology (FIT).
- Handles the management of data in the data flash memory area.
- API calls can be used to update and read data associated with user-specified data numbers.
- The data to be updated or read are managed with assigned logical data numbers. You can configure the number of data and the data size for each data number.
- During processing to update data, data are written to empty space in the target block.
- In the case where a block in which data are being updated runs out of empty space, the valid data within the block are copied to another block. Through processing for block erasure, blocks which hold old data that are no longer required after updating of data are erased.
- In cases where power is cut off or a reset is applied during processing to update data, the cutoff or reset will be detected by running of the initialization function following the restart. The data are judged for validity according to the condition of the updated data. If the data are not valid, they will be returned to the state that preceded updating. 1
- 1. Return of the data to its state before the start of processing for updating by initialization processing is not certain. This depends on the timing with which power was cut off or a reset applied during data updating. Re-update the data immediately after the initialization function has run to make sure the data are the latest.
- In cases where power is cut off or a reset is applied during processing for block erasure, the cutoff or reset which occur while erasing the blocks being managed will be detected by running of the initialization function following the restart. If a block is judged to be invalid, it will be returned to the state that preceded the attempt at erasure. 2
- 2. Judgment regarding a block might be mistaken. This depends on the timing with which power was cut off or a reset applied during block erasure, since the condition of the block that was being erased at that point is not certain at the time of initialization processing. Thus, a case of one of the following types might arise.
- Updating of data after the power was cut off or a reset applied during block erasure is not possible.
- Old data are wrongly judged to be the latest data.
- The latest data cannot be detected.
- 2. Judgment regarding a block might be mistaken. This depends on the timing with which power was cut off or a reset applied during block erasure, since the condition of the block that was being erased at that point is not certain at the time of initialization processing. Thus, a case of one of the following types might arise.
- User programs which are assigned to RAM, ROM, or external memory can be run while executing data programming or block erasure commands for the data flash area in which data are being managed.
- Support for operation using either big-endian or little-endian byte order.
Target Devices
Design & Development
Additional Details
Operating Environment
| Target Device | RX Family |
|---|---|
| Integrated Development Environment | |
| Supporting compiler | C/C++ Compiler Package for RX Family [CC-RX] |
| Memory occupancy | The amount of memory that is occupied depends on the device and the version of the compiler. For details, refer to the RX Family Flash Memory Data Management Module Using Firmware Integration Technology Rev.2.31 (PDF | English, 日本語) |
How to Obtain
The RX Driver Package provides the set of FIT modules. Obtain the package, and you can then download the set of FIT modules you require. Furthermore, FIT modules work in combination with the Smart Configurator, which eases both downloading of the FIT modules and embedding them in user applications.
DATFRX
| Target Device | Application Note Title |
|---|---|
| RX-family MCUs that support FIT modules and incorporate data flash memory | RX Family Flash Memory Data Management Module Using Firmware Integration Technology Rev.2.31 - Sample Code (ZIP) |
Device Driver
| Target Device | Application Note Title |
|---|---|
| RX-family MCUs that support FIT modules | RX Family Flash Module Using Firmware Integration Technology Rev.5.22 - Sample Code (ZIP) |