2015-11-22 08:01 AM
In my Stm32F401 based project, I use CubeMX 4.11.0 for generation of initialization code. My IDE & toolchain is SW4STM32.
Within the generated code, there is also the linkerscript STM32F401VCTx_FLASH.ld, which contains:/* Generate a link error if heap and stack don't fit into RAM */
_Min_Heap_Size = 0x200; /* required amount of heap */
_Min_Stack_Size = 0x400; /* required amount of stack */
Since I'm running FreeRtos with heap_4, I dont need this kind of heap. And on the other side, I need the min stack size increased to 2k. For the first, I'd adjusted the values inside of the linkerscript manually, like this:_Min_Heap_Size = 0; /* required amount of heap */
_Min_Stack_Size = 0x800; /* required amount of stack */
and this works as expected. But unfortunately, each time when I do code regeneration with CubeMX, my changes were lost. This brings up the question, were to configure these both parameters in CubeMX? As far as I see, this is a missing feature, isn't it? Joe.2015-01-02 10:45 AM
Still not provided in CubeMX 4.12.0 ?
2015-11-23 05:05 AM
Hi Joe,
Thank you for your feedback, this feature is planned for next releases of STM32CubeMx.-Shahrzad-2015-11-25 02:29 PM
2015-11-26 08:52 AM
That's exactly the way I currently worked around this issue, but hoping for future versions of CubeMX and SW4STM32, that I could decrease the number workarounds when I setup a new project or doing code regeneration ;)
2016-02-14 02:48 AM
2016-02-15 12:29 AM
Hello
You can set these values in Project >>Settings... Dialog form: Link settings