FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [May 2017 Threads]
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.
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.
Regards.
Thanks you very much, I will try it.
Regards.
Juan Carlos.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.