LP-MSPM0G3507: How to modify stack size with CCS 20.1

Part Number: LP-MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi,

 

I have a LaunchPad LP-MSPM0G3507 and I am starting to play with CCS (Version: 20.1.0.6__1.7.0)

But I am not able to modify the stack size.

 

I see that in generated file device_linker.cmd, stack size is 512 (--stack_size=512)

I have tried to set value 1024 for "Set C system stack size" in Properties/Build/Tools/Arm Linker/Basic Options (initially, the field "Set C system stack size" was empty)

 

But after a rebuild, stack size remains to 512 in device_linker.cmd or .map file.

Did I miss something ?

 

 

Regards

Jerome

  • Hi Jerome,

    You will need to create your own linker file in order to adjust the stack size, the generated one is forcing the stack size to be 512 (uses the same --stack_size argument).

    To create a new linker (.cmd)

    1. I recommend creating a new file in your project with the extension .cmd,
    2. copy the current device_linker.cmd which is in the generated source folder and paste it into your .cmd
    3. In sysconfig project configuration, remove the linker file generation selection.

    Now you can edit your linker file for the increased stack size.

    Regards,
    Luke

  • Great, that works

    Thank you Luke