Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


FreeRtos +FAT Native API

Posted by jcbarbero on May 30, 2017

Hi everyone, I´m new in the FreeRTOS environment and I´m trying to work with the SDCard as a log space, I´ve succesfully read and written the logs but I haven´t found an api for check the space left on the SD, in other words, the space available in the SDCard. I´m using the FreeRtos +FAT Native API.

Does anyone know how can I do it?

Thanks in advance.

FreeRtos +FAT Native API

Posted by heinbali01 on May 31, 2017

Hola Juan Carlos,

When you mount a disk partition, you create a FF_Disk_t. That object has an I/O manager, which you can find with:

~~~ FFIOManagert *sddiskioman( FFDisk_t *pxDisk ); ~~~

Please use the following:

~~~ FFIOManagert pxManager = sddisk_ioman( pxDisk ); / The following will give an indication of the free disk space: */ pxManager->xPartition.ulFreeClusterCount pxManager->xPartition.ulNumClusters ~~~

have a look at include/ff_ioman.h for all details.


FreeRtos +FAT Native API

Posted by jcbarbero on June 1, 2017

Thanks you very much, I will try it.


Juan Carlos.

[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

Meet Richard Barry and learn what's new in the FreeRTOS project at Embedded World 2019

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers



STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner