I was looking into information about how to set a certain stack size using LPC/MCUXpresso when i saw the following thread: https://community.nxp.com/message/767676
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 ?
Hi Bram Peeters,
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!