I'm having a stack overflow problem in software I'm developing on the c5535 eZdsp card ( using CCS version 6.0.1.00040 ) and can't seem to be able to change the stack size.
In the linkx.cmd file I can change the "-stack 0x4000 /* Primary stack size */" parameter which results in the map file change to the "STACK_SIZE" variable changing.
00002060 __STACK_END
00004000 __STACK_SIZE
00003000 __SYSMEM_SIZE
BUT, the ".stack len" as shown below does NOT change, and my code still "crashes".
output attributes/
section page orgn(bytes) orgn(words) len(bytes) len(words) input sections
-------- ---- ----------- ----------- ---------- ---------- --------------
.pinit 0 [ 00020000 ] 00010000 * 00000000 UNINITIALIZED
.stack 0 [ 000000c0 ] 00000060 * 00002000 UNINITIALIZED
[ 000000c0 ] 00000060 * 00002000 --HOLE--
.sysstack
* 0 [ 000040c0 ] 00002060 * 00000800 UNINITIALIZED
[ 000040c0 ] 00002060 * 00000800 --HOLE--
Changing the size in the "Properties->Linker" of CCS does not change anything as it appears the linkx.cmd file setting overrides that setting.
I'm probably doing something stupid, but it's not obvious to me. Is there somewhere else I should check? Or is there some other way of changing the stack size?
Any reply would greatly be appreciated!
Tom