Skip to content

File System Overview

This document provides an overview of the NECTO's File System feature, available to NECTO Studio users.

The File System module enables easy integration of file storage and retrieval functionality into embedded systems, specifically on SD cards using the FAT file system.

This guide serves as a reference to help developers understand the functionalities of the MikroSDK.FileSystem API and how it can be leveraged to build reliable file storage solutions on resource-constrained microcontroller platforms.

Benefits for NECTO Studio Users

  • Effortless File Storage Management: Build file storage systems with minimal effort, abstracting away the complexities of hardware storage.
  • Versatile File Operations: Access to a wide range of file operations such as file creation, reading, writing, and seeking.
  • Seamless Integration: The API simplifies interaction with the file system within NECTO Studio, automating configurations for physical drives and file management.
  • Reliable Data Handling: Built-in support for reliable data storage, making it suitable for applications that require robust file management.

MikroSDK.FileSystem API Files

The following files and configurations are required to use the MikroSDK.FileSystem in your NECTO Studio projects:

  • fatfs.h: Provides access to the core functionalities of the File System library, allowing developers to create, format, mount, and manage files on external storage devices.

  • file.h: Manages file operations such as opening, writing, reading, and closing files on the mounted file system.

  • sdspi_physical_drive.h: Handles communication with the SD card using the SPI interface, ensuring that data is correctly written to and read from the storage device.

  • ff_types.h: Provides the FAT file system types used in file and directory operations.

Key File System Features

1. Dynamic File Management

  • File Operations: Access a variety of file operations such as creating, writing to, reading from, and deleting files on SD cards.
  • Directory Management: Perform directory-related operations such as creating, removing, and reading directories.

2. SD Card Handling

  • Physical Drive Support: Simplifies the connection and configuration of physical drives like SD cards, ensuring smooth data storage and retrieval operations.

3. Real-Time File System Management

  • Real-Time Updates: Built-in support for real-time file handling ensures that file operations such as reads and writes are performed efficiently without delay.

How to Use the File System in NECTO Studio

  • Ensure that the FileSystem, PhysicalDrive, and Board libraries are enabled in NECTO Studio's Library Manager for a successful build.
  • Include the necessary headers in your project files for access to FileSystem functionality.

For more details, check out the FAT File System Code Examples!