Skip to main content

Overview

Description

Open Source FAT File System, M3S-TFAT-Tiny (TFAT) is a FAT file system that only requires a small amount of memory. 
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.

Components

  • File system software (binary format library)
  • Sample program that supports Renesas integrated development environment
  • Library function user's manual and other documents in a complete set

How to obtain

Image
Module Configuration
Module Configuration

Features

  • Compact design tailored for embedded systems
    Realizable using the internal memory of the microcontroller
    Approx. ROM 12.7KB Approx. RAM 4byte and the stack approx 200-byte
  • OS is unnecessary
  • The supplied sample programs include sample software for reading/writing files to MultiMediaCard on the CPU board which comes with the Renesas Starter Kit.
  • 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

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 file 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_chmodChanges properties of a file or a directory
f_utimeChanges time property of a file or a directory
f_renameRenames or moves a file or a directory
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: The functions need to be created on the customer side as suitable for the hardware used. The TFAT library is not designed for use with a specific piece of hardware and therefore does not include these functions (drivers).

Operating Environment

Target DeviceRL78 Family
Integrated Development Environment
  • e² studio
  • CS+ for CC
  • IAR Embedded Workbench for Renesas RL78 (IAR Systems)
Supporting compiler
Occupied ROM SizeApprox. 12.7KB
Occupied RAM SizeApprox. 0.2KB *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

TFAT

Target DeviceApplication Note Title
RL78 FamilyRL78 Family Open Source FAT File System M3S-TFAT-Tiny: Introduction Guide Rev.2.01 - Sample Code (ZIP)

This software does not include drivers for the memory devices (SD card, USB memory, etc.). Prepare the drivers to suit the hardware you will be using. For more information, see the user’s manuals.

Sample Program (SPI Mode MMC)

Device with Confirmed OperationApplication Note Title
RL78/G23 GroupRL78 Family Example of Integration of SPI Mode Multimedia Card Driver into M3S-TFAT-Tiny Open-Source FAT File System Rev.2.01 (PDF | English, 日本語)
RL78/G14 GroupRL78/G14 Sound Playback/Compression Demonstration for RL78/G14 CPU Board Rev.1.02 - Sample Code (ZIP | English, 日本語)
RL78/G13, RL78/G14, and RL78/G23 GroupsRL78 Family SPI mode MultiMediaCard Driver: Introduction Guide Rev.2.01 - Sample Code (ZIP)

If you will be applying the sample program to another microcontroller, make changes and sufficiently evaluate the program according to the specifications of the given microcontroller.