cancel
Showing results for 
Search instead for 
Did you mean: 

interfacing sd card with petit fatfs file system by chang

VKUMA.12
Associate II

Petit fatfs file sysytem consumes ram 290 bytes instead of 44 bytes mention on the document.

http://elm-chan.org/fsw/ff/00index_p.html

Also pff.c file consumes all ram

7 REPLIES 7
chaaalyy
Senior II

Features

  • Very small RAM consumption (44 bytes work area + certain stack).

...

You forgot the "certain stack" ;) compare it to the "standard" edition of fatFS and you´ll see, it IS small ...

VKUMA.12
Associate II

thanks for reply , but total how much ram required to run petit fatfs.

Piranha
Chief II

If you don't know what a stack memory is, then start with learning that!

Thanks for reply but my question is still same, how much stack memory it will take and i think its not small memory, it takes over 300 bytes.

> Petit fatfs file sysytem consumes ram 290 bytes

How do you know?

JW

because value of data in keil shows 300 after compiling with memory error.

Observe in mapfile how exacrltly the data are allocated. There may be RAM area lost because of padding/alignment, or inappropriate choice of data width.

Optimization of any kind - here for minimal memory space - requires effort and understanding of the used tools (compiler, linker etc.).

JW