Hi,
Thanks for clarifying this. Mbed projects use slightly different ways to specify stack/heap based on the version and the target. Please try locating the linker script for your target (e.g. via VisualGDB Project Properties) and check it for heap-related definitions. It might look similar to this:
.heap (COPY):
{
__end__ = .;
end = __end__;
*(.heap*)
__HeapLimit = .;
} > SRAM1
In that case please locate the source file that defines symbols in the .heap or .stack sections (if you are not sure, you can find it out via the .map file) and see what affects the size of those symbols (e.g. preprocessor defines). Settings those preprocessor defines should change the amount of memory reserved for stack/heap.
If no source files define any symbols inside .stack/.heap, you can add one manually as shown below:
char __attribute__((section(".stack"))) ReservedForStack[FIXED_STACK_SIZE];
char __attribute__((section(".heap"))) FixedSizeHeap[FIXED_HEAP_SIZE];
This will reserve space for both stack and heap according to the sizes you specify.