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.:
__STACK_TOP = __stack + 256;
__STACK_TOP = __stack + __STACK_SIZE;
This would take care of having to change the stack size in two places.
This is a good point. I'm not sure why the .cmd file isn't written this way. I'll suggest this to our software team.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.