heinbali01 wrote on Tuesday, July 25, 2017:
Forgot to tell how the two ( or more ) partitions will be represented in the file system.
Normally there is an SD-card with a single partition, which will be found in the root (
As an example, the following files are located in the first partition mounted on
ff_stdio.c allow you to combine several volumes into a single file system. For instance, if you create a RAM disk, you can mount its root on e.g.
When the first partition of the SD-card is mounted as
"/", you can mount the second partition as follows:
FF_FS_Add( "/part2", pxDisk_2 );
The user interface of FreeRTOS+TCP has two layers:
Lower level functions that work on a single volume.
FF_Write(). These functions will not recognise your
STDIO-compatible functions that do recognise mounted volumes, such as
"/part2", These functions have a prefix
"ff_", such as
It sounds all more complicated than it actually is. It works very much like mounting in Linux, except that the mount-points are always located in the root directory.
There have recently been some essential changes to a few +FAT source files, I’m attaching these changes here below in