I am cleaning up the .cmd file for several projects. Most of the .cmd file was auto-generated by CCS at project creation. In the project's properties inside of CCS, I set my stack size to 2048.
I see some comments and linker commands that seem to be in conflict. The comments are:
/* The following command line options are set as part of the CCS project. */
/* If you are building using the command line, or for some reason want to */
/* define them here, you can uncomment and modify these lines as needed. */
/* If you are using CCS for building, it is probably better to make any such */
/* modifications in your CCS project and leave this file alone. */
/* */
/* --heap_size=0 */
/* --stack_size=256 */
/* --library=rtsv7M4_T_le_eabi.lib */
But the last line of the file is not commented out and reads:
__STACK_TOP = __stack + 256;
It seems this last line is in conflict with what I set to 2048 inside of CCS. Should this last line be removed, as I defined the stack ast 2048 in CCS? It seems like the CCS property definition wins the day.