Skip to main content

Overview

Description

M3S-TFAT-Tiny (TFAT) is a FAT file system that only requires a small amount of memory. TFAT supports FAT16 and FAT32. This is based on open source FatFs open_in_new. In addition, this is also Firmware Integration Technology (FIT) and can be combined with other FIT modules.

Use TFAT in any device incorporating a target microcontroller for functions such as accumulating measured or archived data, or rewriting a stored program via memory card. Although TFAT is a FAT file system, and PC data exchange capability enable analysis and management of data by a PC application.

TFAT supports various types of memory devices: SD memory card, USB memory, eMMC, and Serial Flash memory. The supplied sample programs include sample software for reading/writing files to SD Memory card and USB Flash drive on the CPU board which comes with the Renesas Starter Kit.

Components

  • File system software
  • Sample program that supports Renesas integrated development environment.
  • API function user's manual and other documents in a complete set

Memory Devices Supported by the FIT Module

  • SD Card (SD Mode/SPI Mode)
  • USB memory
  • MMC/eMMC
  • Serial Flash memory

How to obtain

Image
Modular Composition
Module Configuration

TFAT FIT:

RX Family Open Source FAT File System M3S-TFAT-Tiny Module Firmware Integration Technology

TFAT driver FIT:

M3S-TFAT-Tiny Memory Driver Interface Module Firmware Integration Technology

Features

  • Compact design tailored for embedded systems
    Realizable using the internal memory of the microcontroller
    Approx. 8.9KB ROM and approx. 900B RAM (for the RX Family)
  • Supported CC-RX, IAR and GCC compilers
  • Supported both of non RTOS and RTOS (FreeRTOS and RI600V4) Learn More

Target Devices

Documentation

Design & Development

Sample Code

Support

Support Communities

Support Communities

Get quick technical support online from Renesas Engineering Community technical staff.
Browse FAQs

FAQs

Browse our knowledge base of common questions and answers.
Submit a Ticket

Submit a Ticket

Need to ask a technical question or share confidential information?

Additional Details

System Configuration

TFAT is used in the configuration shown below. Use TFAT in combination with other required drivers (FIT modules) which suit the memory devices (SD card, USB memory, etc.) you will be using.

Image
Application Configuration

Functions

Function NameDescription
f_mountMounts a volume
f_openOpens a file
f_closeCloses a file
f_readReads from a file
f_writeWrites to a file
f_lseekMoves the read/write pointer
f_truncateTruncates a file
f_syncFlushes the cache
f_opendirOpens a directory
f_readdirReads a directory
f_getfreeGets free area
f_statGets file status
f_mkdirMakes a directory
f_unlinkDeletes a file or a directory
f_renameRenames or moves a file or a directory
f_tellGet current read/write pointer
f_eofTest for end-of-file
f_sizeGet file size
f_errorTest for an error
f_mkfsFormat a volume as FAT file system
disk_initializeInitializes a drive Note
disk_readReads from a drive Note
disk_writeWrites to a drive Note
disk_ioctlControls drive I/O Note
disk_statusGets drive status Note
get_fattimeGets date and time Note

Note: The TFAT module is not designed for use with a specific piece of hardware and therefore does not include these functions (drivers). In fact, the M3S-TFAT-Tiny memory driver interface module Firmware Integration Technology (TFAT driver FIT) includes these functions.

Operating Environment

Target DeviceRX Family
Integrated Development Environment
  • e² studio
  • CS+ for CC
  • IAR Embedded Workbench for Renesas RX (IAR Systems)
Supporting compiler
Occupied ROM SizeApprox. 8.9KB
Occupied RAM SizeApprox. 0.9KB *including the stack

Purpose

Examples of application field:

  • Data preservation and data logging in various types of equipment
    • Preservation of number of revolutions, temperature and other data in industrial equipment
    • Preservation of a history of operations and settings alteration for remote equipment failure diagnostic
  • Preservation of personal information in health equipment and similar other equipment used individually
    • Preservation of heart rate and blood pressure data in health equipment
    • Preservation of physical exercise data in training equipment
  • Updating of programs and data in various types of equipment
    • Flash memory rewriting with programs or data stored in a memory card in places where equipment is installed
Image
Image of data transfer between various devices and a PC
Image of data transfer between various devices and a PC

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.

TFAT

Target DeviceApplication Note Title
RX-family MCUs that support FIT modulesRX Family Open Source FAT File System M3S-TFAT-Tiny Module Using Firmware Integration Technology Rev.4.14 - Sample Code (ZIP)

Memory Driver Interface

Target DeviceApplication Note Title
RX-family MCUs that support FIT modulesRX Family M3S-TFAT-Tiny Memory Driver Interface Module Using Firmware Integration Technology Rev.2.61 - Sample Code (ZIP)

Device Driver

Target DeviceApplication Note Title
RX-family MCUs that support FIT modulesRX Family CMT Module Using Firmware Integration Technology Rev.5.71 - Sample Code (ZIP)
RX Family System Timer Module Firmware Integration Technology Rev.1.02 - Sample Code (ZIP)