• Not Answered

Stack Size Settings

In the default stellaris project in CCS, the stack size is set to 256 bytes.  To change this one has to both change it in the project and manually change it in the .cmd file for the linker.  The linker has a __STACK_SIZE variable that one can use so that the calculation of __STACK_TOP is automated.  Why isn't this the case?  E.g.:

From:

__STACK_TOP = __stack + 256;

To:

__STACK_TOP = __stack + __STACK_SIZE;


This would take care of having to change the stack size in two places.

1 Reply