FatFS/Chibios Heap Memory Fragmentation
Posted: Sun Mar 09, 2014 4:53 pm
just discovered this, ive got one fragment of 512 bytes?
ch> mem
core free memory : 102296 bytes
heap fragments : 1
heap free total : 512 bytes
This is caused by calls to f_chdir as this allocates memory from the heap.
In ffconf.h ive got
#define _USE_LFN 3 /* 0 to 3 */
#define _FS_RPATH 1 /* 0 to 2 */
Why would this fragmentation be happening ? and is this something i should worry about ?
ch> mem
core free memory : 102296 bytes
heap fragments : 1
heap free total : 512 bytes
This is caused by calls to f_chdir as this allocates memory from the heap.
In ffconf.h ive got
#define _USE_LFN 3 /* 0 to 3 */
#define _FS_RPATH 1 /* 0 to 2 */
Why would this fragmentation be happening ? and is this something i should worry about ?