Skip to main content
Visitor II
May 4, 2020
Question

interfacing sd card with petit fatfs file system by chang

  • May 4, 2020
  • 5 replies
  • 1367 views

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

    This topic has been closed for replies.

    5 replies

    Graduate
    May 4, 2020

    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.12Author
    Visitor II
    May 5, 2020

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

    Graduate II
    May 6, 2020

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

    VKUMA.12Author
    Visitor II
    May 6, 2020

    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.

    Super User
    May 6, 2020

    > Petit fatfs file sysytem consumes ram 290 bytes

    How do you know?

    JW

    VKUMA.12Author
    Visitor II
    May 7, 2020

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

    Super User
    May 7, 2020

    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