From eb08036537cf67f1c2715d6de794467d162fa36b Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 14 May 2023 19:05:22 -0400 Subject: [PATCH] [stm32][start_up] modify heap size as 0x00 and stack size as 0x400 --- bsp/stm32/stm32h750-fk750m1-vbt6/board/linker_scripts/link.icf | 2 +- bsp/stm32/stm32h750-fk750m1-vbt6/board/linker_scripts/link.lds | 2 +- .../board/CubeMX_Config/MDK-ARM/startup_stm32h750xx.s | 2 +- .../stm32h750-weact-ministm32h7xx/board/linker_scripts/link.icf | 2 +- .../stm32h750-weact-ministm32h7xx/board/linker_scripts/link.lds | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bsp/stm32/stm32h750-fk750m1-vbt6/board/linker_scripts/link.icf b/bsp/stm32/stm32h750-fk750m1-vbt6/board/linker_scripts/link.icf index 45e4c7b910..3f41163f64 100644 --- a/bsp/stm32/stm32h750-fk750m1-vbt6/board/linker_scripts/link.icf +++ b/bsp/stm32/stm32h750-fk750m1-vbt6/board/linker_scripts/link.icf @@ -10,7 +10,7 @@ define symbol __ICFEDIT_region_RAM_start__ = 0x20000000; define symbol __ICFEDIT_region_RAM_end__ = 0x20020000; /*-Sizes-*/ define symbol __ICFEDIT_size_cstack__ = 0x800; -define symbol __ICFEDIT_size_heap__ = 0x400; +define symbol __ICFEDIT_size_heap__ = 0x000; /**** End of ICF editor section. ###ICF###*/ define memory mem with size = 4G; diff --git a/bsp/stm32/stm32h750-fk750m1-vbt6/board/linker_scripts/link.lds b/bsp/stm32/stm32h750-fk750m1-vbt6/board/linker_scripts/link.lds index b758e1db72..3ebf411f32 100644 --- a/bsp/stm32/stm32h750-fk750m1-vbt6/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h750-fk750m1-vbt6/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K DTCM */ } ENTRY(Reset_Handler) -_system_stack_size = 0x200; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32h750-weact-ministm32h7xx/board/CubeMX_Config/MDK-ARM/startup_stm32h750xx.s b/bsp/stm32/stm32h750-weact-ministm32h7xx/board/CubeMX_Config/MDK-ARM/startup_stm32h750xx.s index e8c1b99414..a1daa31689 100644 --- a/bsp/stm32/stm32h750-weact-ministm32h7xx/board/CubeMX_Config/MDK-ARM/startup_stm32h750xx.s +++ b/bsp/stm32/stm32h750-weact-ministm32h7xx/board/CubeMX_Config/MDK-ARM/startup_stm32h750xx.s @@ -41,7 +41,7 @@ __initial_sp ; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> ; -Heap_Size EQU 0x200 +Heap_Size EQU 0x00000000 AREA HEAP, NOINIT, READWRITE, ALIGN=3 __heap_base diff --git a/bsp/stm32/stm32h750-weact-ministm32h7xx/board/linker_scripts/link.icf b/bsp/stm32/stm32h750-weact-ministm32h7xx/board/linker_scripts/link.icf index 45e4c7b910..3f41163f64 100644 --- a/bsp/stm32/stm32h750-weact-ministm32h7xx/board/linker_scripts/link.icf +++ b/bsp/stm32/stm32h750-weact-ministm32h7xx/board/linker_scripts/link.icf @@ -10,7 +10,7 @@ define symbol __ICFEDIT_region_RAM_start__ = 0x20000000; define symbol __ICFEDIT_region_RAM_end__ = 0x20020000; /*-Sizes-*/ define symbol __ICFEDIT_size_cstack__ = 0x800; -define symbol __ICFEDIT_size_heap__ = 0x400; +define symbol __ICFEDIT_size_heap__ = 0x000; /**** End of ICF editor section. ###ICF###*/ define memory mem with size = 4G; diff --git a/bsp/stm32/stm32h750-weact-ministm32h7xx/board/linker_scripts/link.lds b/bsp/stm32/stm32h750-weact-ministm32h7xx/board/linker_scripts/link.lds index b758e1db72..3ebf411f32 100644 --- a/bsp/stm32/stm32h750-weact-ministm32h7xx/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h750-weact-ministm32h7xx/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K DTCM */ } ENTRY(Reset_Handler) -_system_stack_size = 0x200; +_system_stack_size = 0x400; SECTIONS {