AnsweredAssumed Answered

LPCXpresso/MCUXpresso: How guarantee a certain stack size

Question asked by Bram Peeters on Dec 21, 2017
Latest reply on Dec 26, 2017 by jeremyzhou

I was looking into information about how to set a certain stack size using LPC/MCUXpresso when i saw the following thread: increase stacksize 

Now if I understand things correctly, the idea here is that the linker/toolchain will just use whatever is left and give that to heap and stack.

Since I believe this way of working is incredibly insecure, I want to be able to set a stack size (and potentially heap size though i my current project i am not using a heap) and get a linker error if stack+heap+data does not fit anymore in the available memory.

Is there any info/examples on how to modify the linker templates to realize this ?