のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

Nucleo-F429ZI-Os3.elf section `._user_heap_stack' will not fit in region `RAM'

arm-none-eabi-gcc 
-o "Nucleo-F429ZI-Os3.elf" 
@"objects.list"   
-mcpu=cortex-m4 
-T"C:\Users\m_fujii\Documents\0500_BitBucket\0600_STM32CubeIde
\ws_1.0.1\Nucleo-F429ZI-Os3
\STM32F429ZITX_FLASH.ld" 
--specs=nosys.specs 
-Wl,-Map="Nucleo-F429ZI-Os3.map" 
-Wl,--gc-sections
 -static 
--specs=nano.specs 
-mfpu=fpv4-sp-d16 
-mfloat-abi=hard 
-mthumb -Wl,
--start-group 
-lc 
-lm 
-Wl,
--end-group
c:\st\stm32cubeide_1.0.1\stm32cubeide\plugins
\com.st.stm32cube.ide.mcu.externaltools
.gnu-tools-for-stm32.7-2018-q2-update
.win32_1.0.0.201904181610\tools
\arm-none-eabi\bin\ld.exe:
 Nucleo-F429ZI-Os3.elf section `._user_heap_stack' will not fit in region `RAM'

c:\st\stm32cubeide_1.0.1\stm32cubeide\plugins
\com.st.stm32cube.ide.mcu.externaltools
.gnu-tools-for-stm32.7-2018-q2-update
.win32_1.0.0.201904181610\tools
\arm-none-eabi\bin\ld.exe:

 region `RAM' overflowed by 1976 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:45: Nucleo-F429ZI-Os3.elf] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.

Error

_Min_Heap_Size = 0x2000 ;    /* required amount of heap  */
_Min_Stack_Size = 0x4000;   /* required amount of stack */

OK

_Min_Heap_Size = 0x200 ; /* required amount of heap  */
_Min_Stack_Size = 0x400 ;   /* required amount of stack */

community.st.com