cancel
Showing results for 
Search instead for 
Did you mean: 

Stack and heap size modification

SIBIN THOMAS
Associate II
Posted on February 10, 2018 at 16:26

Hello Everyone,

I am working on SPC560C50L3 controller and using UDE STK 4.8 software for loading the firmware. I want to know if there is a possibility to change the pre allocated stack and heap size during run time or during compilation. I am able to view the stack size in 'application.ld' file which is generated after the code is build. Any suggestion would be helpful.

Regards

SIBIN.

#heap #memory-configuration #stack
2 REPLIES 2
Zaher
Senior II
Posted on February 10, 2018 at 22:06

Yes, why not? All you have to do is just modify the sizes in the .ld linker script file (

application.ld in your situation

) to the values needed by your program. Make sure you know what you're doing or you will end up running out of stack/heap on your memory footprint. 

I hope that helps.

Zaher

Erwan YVIN
ST Employee
Posted on February 12, 2018 at 09:46

Hello ,

If you want to customize your own linker file.

you can create in the root project a user.ld file.

               Best regards

                        Erwan