About Min_Heap_Size and Min_Stack_Size
Hi,
my STM32F302R8 Device with 64KByte FLASH, 16KByte RAM.
I configured
Min_Heap_Size and Min_Stack_Size in file '
stm32_flash.ld' as below._Min_Heap_Size = 0x400;
_Min_Stack_Size = 0x1000;While build the project codes, below error was happened.
----------------------------------------
--------------------------------------------------------------------------------
c:/emb_tool/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: ./Release/my_app.elf section `._user_heap_stack' will not fit in region `RAM'
c:/emb_tool/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: region `RAM' overflowed by 96 bytescollect2.exe: error: ld returned 1 exit statusmake: *** [all] Error 1----------------------------------------
----------------------------------------
----------------------------------------
After changed
_Min_Heap_Size from 0x400 to 0x200, re-bulid it and no more error.
Actually, I didn't know how to figure out the _Min_Heap_Size and _Min_Stack_Size.
Does any expert share the experience how to figure out the
_Min_Heap_Size and
_Min_Stack_Size?
Thanks.
