This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Maximum limit of stack size using flag -D__STACK_SIZE NRF52382

Hi,

I am running an application in which I set -D__STACK_SIZE=0x4000. After some research, I come to know that RAM is divided into 4 blocks the lower one is for the soft device and the final block is divided into two half one heap section one stack section. By keeping Heap section to zero I am able to use the whole block for the stack. My Question is what is the maximum limit which is permissible.If I want to use 2 blocks of RAM as stack size can it be done using -D__STACK_SIZE=0x8000

And is stack size defines how much Ram is in use?.Apart from that, any other parameter.

Thanks.

Related