Skip to main content
This topic has been closed for replies.

7 replies

chaaalyy
Senior II
May 4, 2020 6:56 PM UTC

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
VKUMA.12Author
Associate III
May 5, 2020 7:10 AM UTC

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

Piranha
Principal III
May 6, 2020 10:14 AM UTC

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

VKUMA.12
VKUMA.12Author
Associate III
May 6, 2020 1:20 PM UTC

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.

waclawek.jan
Super User
May 6, 2020 6:05 PM UTC

> Petit fatfs file sysytem consumes ram 290 bytes

How do you know?

JW

VKUMA.12
VKUMA.12Author
Associate III
May 7, 2020 9:54 AM UTC

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

waclawek.jan
Super User
May 7, 2020 10:11 AM UTC

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