2018-02-10 07:26 AM
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 #stack2018-02-10 01:06 PM
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
2018-02-12 12:46 AM
Hello ,
If you want to customize your own linker file.
you can create in the root project a user.ld file.
Best regards
Erwan