Setting up heap memory
In this section:
The size of the heap is defined in the linker configuration file as a block.:
define block HEAP with size = 0x1000, alignment = 4{ };
place in RAM {block HEAP};Specify the appropriate size for your application. If you use a heap, you must allocate at least 50 bytes for it.
Note
To make it possible to change the heap size from the IDE, use the symbol _HEAP_SIZE instead of the actual size, like this:
define block HEAP with size = _HEAP_SIZE, alignment = 4 { };