![]() |
File System Component
Version 6.0
MDK-Professional Middleware for Devices with Flash File System
|
This section describes the resource requirements of the File System component. The actual requirements depend on the features used in the application. Therefore, the numbers provided here are guidelines only and the actual numbers may differ.
The stack and heap requirements are configured in the startup_device.s file located in the Device components.
Type | Value |
---|---|
Stack Size (in Bytes) | min. 512 (used by File System Drivers: MCI, NAND) |
Heap Size (in Bytes) | min. 512+96 per open file |
User code that calls API functions of the File System Component should have a minimum of 512 Bytes of stack space available.
The following table shows the memory requirements for read-only (Flash) and read-write (RAM) memory. These numbers may be used to estimate the total size requirements of the application, but the actual numbers depend on compiler optimizations and target processor and may be therefore slightly different.
Component | RO Memory [Bytes] | RW Memory (Data) [Bytes] |
---|---|---|
C stdio Library | < 5.0 k | < 0.3 k |
::File System:Core Common | < 3.5 k | 0 |
::File System:Core EFS (Embedded File System) | < 6.0 k | < 0.4 k |
::File System:Core FAT with SFN (Short File Name) | < 13.0 k | 1.2 k |
::File System:Core FAT with LFN (Long File Name) | < 14.4 k | 1.2 k |
::File System:Core FAT Name caching | 1.6 k | 48 * FAT Name Cache Size (configured in FS_Config.c) |
::File System:Core FAT Journaling | 0.7 k | 0.5 k (configured in FS_Config_Drive_n.h) |
::File System:Drive:Memory Card (FAT) | 2.7 k | < 0.2 k + Drive Cache Size (configured in FS_Config_MC_n.h) |
::File System:Drive:NAND (FAT) | < 10.6 k | < 0.7 k + Drive Cache Size + Page Caching + Block Indexing (configured in FS_Config_NAND_n.h) |
::File System:Drive:NOR (EFS) | < 0.1 k | < 0.1 k |
::File System:Drive:RAM (FAT) | < 0.2 k | < 0.2 k |
::File System:Drive:USB (FAT) | < 0.6 k | < 0.2 k + Drive Cache Size (configured in FS_Config_USB_n.h) |
MCI Driver | 1 .. 4 k | 0.1 .. 2 k |
NAND Driver | 0.5 .. 4 k | 0.1 .. 4 k |
Flash Driver | < 2 k | < 0.1 k |