I have the heap_2.c allocation mode linked in the program.
Right now I only create two tasks.
minimal stack allocation in freertosconfig.h is set to 100.
isr stack size is 200.
Heap is 1000.
At first the heap size is 0x3E8 which is 1000, so it’s ok.
After creating the first task, free heap is 0x1E8 which is 488. And it’s NOT correct.
Second task creation fails as there is not enough space available.
if i set the heap to 2000, first task still gets 512 bytes, second does too.
So after creating two tasks (with minimal stack set to 100) my heap is left with 976 bytes free from 2000.
Right now if I set the heap to 0, I still have a RAM usage of 1224 bytes which I assume is the minimal size of the kernel for my configuration.
But I can’t understand the allocations for the tasks.
But I don’t get the memory assignements.
I have the