If I add a function call I can see the the sketch uses more storage space.
If I increase the size of an array variable I can see the sketch uses more dynamic memory.
If I use #StackBufferSize: 150
This is the result when i compile my program:
Sketch uses 30724 bytes (95%) of program storage space. Maximum is 32256 bytes.
Global variables use 1261 bytes (61%) of dynamic memory, leaving 787 bytes for local variables. Maximum is 2048 bytes.
Everything works fine.
If I increase the #StackBufferSize: 300
The sketch still uses 30724 bytes and Variables still use 1261 bytes.
But now the program stops at random.
If I lower the size of an array I can increase the Stackbuffersize and the program still works.
Where is the Stackbuffer allocated ?
Why does the program stop when Stackbuffersize is incremented with 150 bytes, it looks like there are room for more ?
How can I calculate the correct size of used memory so the program will work forever ?
Jan
If I increase the size of an array variable I can see the sketch uses more dynamic memory.
If I use #StackBufferSize: 150
This is the result when i compile my program:
Sketch uses 30724 bytes (95%) of program storage space. Maximum is 32256 bytes.
Global variables use 1261 bytes (61%) of dynamic memory, leaving 787 bytes for local variables. Maximum is 2048 bytes.
Everything works fine.
If I increase the #StackBufferSize: 300
The sketch still uses 30724 bytes and Variables still use 1261 bytes.
But now the program stops at random.
If I lower the size of an array I can increase the Stackbuffersize and the program still works.
Where is the Stackbuffer allocated ?
Why does the program stop when Stackbuffersize is incremented with 150 bytes, it looks like there are room for more ?
How can I calculate the correct size of used memory so the program will work forever ?
Jan