From 7b5e6a81f9e1271b3b1ff879eaea18231f714bf3 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Fri, 3 Dec 2021 09:57:56 -0500 Subject: [PATCH] =?UTF-8?q?[stm32][gcc]=20=E4=BF=AE=E5=A4=8D=E6=A0=88?= =?UTF-8?q?=E4=B8=BA0=E7=9A=84bug=EF=BC=8C=E5=B0=86=E6=A0=88=E6=89=A9?= =?UTF-8?q?=E5=B1=95=E5=88=B00x400=EF=BC=88=E4=B8=8EKeil=20IAR=E4=B8=80?= =?UTF-8?q?=E8=87=B4=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/stm32f0xx/board/linker_scripts/link.lds | 2 +- .../templates/stm32f10x/board/linker_scripts/link.lds | 2 +- .../templates/stm32f2xx/board/linker_scripts/link.lds | 2 +- .../templates/stm32f3xx/board/linker_scripts/link.lds | 2 +- .../templates/stm32f4xx/board/linker_scripts/link.lds | 2 +- .../templates/stm32f7xx/board/linker_scripts/link.lds | 2 +- .../templates/stm32h7xx/board/linker_scripts/link.lds | 2 +- .../templates/stm32l1xx/board/linker_scripts/link.lds | 2 +- .../templates/stm32l4xx/board/linker_scripts/link.lds | 2 +- .../templates/stm32l5xx/board/linker_scripts/link.lds | 2 +- .../templates/stm32mp1xx/board/linker_scripts/link.lds | 2 +- .../templates/stm32wbxx/board/linker_scripts/link.lds | 2 +- .../stm32f072-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32f091-st-nucleo/board/linker_scripts/link.lds | 2 +- bsp/stm32/stm32f103-atk-nano/board/linker_scripts/link.lds | 2 +- .../stm32f103-atk-warshipv3/board/linker_scripts/link.lds | 2 +- .../stm32f103-blue-pill/board/linker_scripts/link.lds | 2 +- .../stm32f103-dofly-M3S/board/linker_scripts/link.lds | 2 +- .../stm32f103-dofly-lyc8/board/linker_scripts/link.lds | 2 +- .../stm32f103-fire-arbitrary/board/linker_scripts/link.lds | 2 +- .../board/linker_scripts/link.lds | 2 +- .../stm32f103-hw100k-ibox/board/linker_scripts/link.lds | 2 +- .../stm32f103-onenet-nbiot/board/linker_scripts/link.lds | 2 +- bsp/stm32/stm32f103-yf-ufun/board/linker_scripts/link.lds | 2 +- bsp/stm32/stm32f107-uc-eval/board/linker_scripts/link.lds | 2 +- .../stm32f207-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32f302-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32f401-st-nucleo/board/linker_scripts/link.lds | 2 +- .../board/linker_scripts/link.lds | 2 +- .../stm32f407-armfly-v5/board/linker_scripts/link.lds | 2 +- .../stm32f407-atk-explorer/board/linker_scripts/link.lds | 2 +- .../stm32f407-robomaster-c/board/linker_scripts/link.lds | 2 +- .../stm32f407-st-discovery/board/linker_scripts/link.lds | 2 +- .../stm32f410-st-nucleo/board/linker_scripts/link.lds | 2 +- bsp/stm32/stm32f411-atk-nano/board/linker_scripts/link.lds | 2 +- .../stm32f411-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32f411-weact-MiniF4/board/linker_scripts/link.lds | 2 +- .../stm32f412-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32f413-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32f427-robomaster-a/board/linker_scripts/link.lds | 2 +- .../stm32f429-armfly-v6/board/linker_scripts/link.lds | 2 +- .../stm32f429-atk-apollo/board/linker_scripts/link.lds | 2 +- .../board/linker_scripts/link.lds | 2 +- bsp/stm32/stm32f429-st-disco/board/linker_scripts/link.lds | 2 +- .../stm32f446-st-nucleo/board/linker_scripts/link.lds | 2 +- bsp/stm32/stm32f469-st-disco/board/linker_scripts/link.lds | 2 +- bsp/stm32/stm32f746-st-disco/board/linker_scripts/link.lds | 2 +- .../stm32f746-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32f767-atk-apollo/board/linker_scripts/link.lds | 2 +- .../board/linker_scripts/link.lds | 2 +- .../stm32f767-st-nucleo/board/linker_scripts/link.lds | 2 +- bsp/stm32/stm32f769-st-disco/board/linker_scripts/link.lds | 2 +- .../stm32g070-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32g071-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32g431-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32h743-armfly-V7/board/linker_scripts/link.lds | 2 +- .../stm32h743-atk-apollo/board/linker_scripts/link.lds | 2 +- .../stm32h743-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32h747-st-discovery/board/linker_scripts/link.lds | 2 +- .../stm32h750-armfly-h7-tool/board/linker_scripts/link.lds | 2 +- .../stm32h750-artpi-h750/board/linker_scripts/link.lds | 2 +- .../stm32l010-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32l053-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32l412-st-nucleo/board/linker_scripts/link.lds | 2 +- bsp/stm32/stm32l431-BearPi/board/linker_scripts/link.lds | 2 +- .../stm32l432-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32l433-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32l452-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32l475-atk-pandora/board/linker_scripts/link.lds | 2 +- .../stm32l475-st-discovery/board/linker_scripts/link.lds | 2 +- .../stm32l476-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32l496-ali-developer/board/linker_scripts/link.lds | 2 +- .../stm32l496-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32l4r5-st-nucleo/board/linker_scripts/link.lds | 2 +- bsp/stm32/stm32l4r9-st-eval/board/linker_scripts/link.lds | 2 +- .../board/linker_scripts/link.lds | 2 +- .../stm32l552-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32mp157a-st-discovery/board/linker_scripts/link.lds | 2 +- bsp/stm32/stm32mp157a-st-ev1/board/linker_scripts/link.lds | 2 +- .../stm32u575-st-nucleo/board/linker_scripts/link.lds | 2 +- .../stm32wb55-st-nucleo/board/linker_scripts/link.lds | 2 +- bsp/stm32/tools/upgrade.py | 7 ++++--- 82 files changed, 85 insertions(+), 84 deletions(-) diff --git a/bsp/stm32/libraries/templates/stm32f0xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32f0xx/board/linker_scripts/link.lds index d049ec82b7..22d7036562 100644 --- a/bsp/stm32/libraries/templates/stm32f0xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32f0xx/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 32k /* 32K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/libraries/templates/stm32f10x/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32f10x/board/linker_scripts/link.lds index 6d5f870b77..3832982688 100644 --- a/bsp/stm32/libraries/templates/stm32f10x/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32f10x/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 20k /* 20K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/libraries/templates/stm32f2xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32f2xx/board/linker_scripts/link.lds index 38874f3620..fb9ea9b609 100644 --- a/bsp/stm32/libraries/templates/stm32f2xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32f2xx/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 20K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/libraries/templates/stm32f3xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32f3xx/board/linker_scripts/link.lds index 40d8c63621..94abb757aa 100644 --- a/bsp/stm32/libraries/templates/stm32f3xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32f3xx/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 16k /* 16K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/libraries/templates/stm32f4xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32f4xx/board/linker_scripts/link.lds index 1960915a3d..a00d6b74bd 100644 --- a/bsp/stm32/libraries/templates/stm32f4xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32f4xx/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/libraries/templates/stm32f7xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32f7xx/board/linker_scripts/link.lds index 1960915a3d..a00d6b74bd 100644 --- a/bsp/stm32/libraries/templates/stm32f7xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32f7xx/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/libraries/templates/stm32h7xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32h7xx/board/linker_scripts/link.lds index de4989f69f..9339c6af7c 100644 --- a/bsp/stm32/libraries/templates/stm32h7xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32h7xx/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x24000000, LENGTH = 512k /* 512K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.lds index f6de49c811..9a0a7ef44e 100644 --- a/bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32l1xx/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 16k /* 16K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/libraries/templates/stm32l4xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32l4xx/board/linker_scripts/link.lds index 65c28e724e..3950cbac38 100644 --- a/bsp/stm32/libraries/templates/stm32l4xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32l4xx/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 96k /* 96KB sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/libraries/templates/stm32l5xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32l5xx/board/linker_scripts/link.lds index 65c28e724e..3950cbac38 100644 --- a/bsp/stm32/libraries/templates/stm32l5xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32l5xx/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 96k /* 96KB sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/libraries/templates/stm32mp1xx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32mp1xx/board/linker_scripts/link.lds index 81eef75b22..e407492c39 100644 --- a/bsp/stm32/libraries/templates/stm32mp1xx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32mp1xx/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x10040000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/libraries/templates/stm32wbxx/board/linker_scripts/link.lds b/bsp/stm32/libraries/templates/stm32wbxx/board/linker_scripts/link.lds index a66da3bd12..6afe5ee484 100644 --- a/bsp/stm32/libraries/templates/stm32wbxx/board/linker_scripts/link.lds +++ b/bsp/stm32/libraries/templates/stm32wbxx/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 192k /* 192KB sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f072-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f072-st-nucleo/board/linker_scripts/link.lds index c53d152f2a..bb905d06b1 100644 --- a/bsp/stm32/stm32f072-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f072-st-nucleo/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 16k /* 16K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f091-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f091-st-nucleo/board/linker_scripts/link.lds index 9514e4e29c..bac6b71c30 100644 --- a/bsp/stm32/stm32f091-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f091-st-nucleo/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 32k /* 32K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f103-atk-nano/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-atk-nano/board/linker_scripts/link.lds index 4c6c29f3c0..644fe83314 100644 --- a/bsp/stm32/stm32f103-atk-nano/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-atk-nano/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 20k /* 20K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f103-atk-warshipv3/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-atk-warshipv3/board/linker_scripts/link.lds index be9aceac58..66c31ef7f8 100644 --- a/bsp/stm32/stm32f103-atk-warshipv3/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-atk-warshipv3/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 64k /* 64K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.lds index 6d5f870b77..3832982688 100644 --- a/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 20k /* 20K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f103-dofly-M3S/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-dofly-M3S/board/linker_scripts/link.lds index be9aceac58..66c31ef7f8 100644 --- a/bsp/stm32/stm32f103-dofly-M3S/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-dofly-M3S/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 64k /* 64K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f103-dofly-lyc8/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-dofly-lyc8/board/linker_scripts/link.lds index 4be0b30331..9c7d04da77 100644 --- a/bsp/stm32/stm32f103-dofly-lyc8/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-dofly-lyc8/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 20k /* 20K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f103-fire-arbitrary/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-fire-arbitrary/board/linker_scripts/link.lds index 00f478ff12..deb1086a6e 100644 --- a/bsp/stm32/stm32f103-fire-arbitrary/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-fire-arbitrary/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 64k /* 64K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f103-gizwits-gokitv21/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-gizwits-gokitv21/board/linker_scripts/link.lds index 6b0c245ff0..cc7da7d507 100644 --- a/bsp/stm32/stm32f103-gizwits-gokitv21/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-gizwits-gokitv21/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 20k /* 20K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f103-hw100k-ibox/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-hw100k-ibox/board/linker_scripts/link.lds index 89ef643210..0f984bcea7 100644 --- a/bsp/stm32/stm32f103-hw100k-ibox/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-hw100k-ibox/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 64k /* 64K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f103-onenet-nbiot/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-onenet-nbiot/board/linker_scripts/link.lds index 4fe6e3a8d6..95185c5729 100644 --- a/bsp/stm32/stm32f103-onenet-nbiot/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-onenet-nbiot/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 60k /* 60K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f103-yf-ufun/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-yf-ufun/board/linker_scripts/link.lds index db63f7d2a2..ee04854f39 100644 --- a/bsp/stm32/stm32f103-yf-ufun/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-yf-ufun/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 48k /* 48K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f107-uc-eval/board/linker_scripts/link.lds b/bsp/stm32/stm32f107-uc-eval/board/linker_scripts/link.lds index 8a2443727e..c8ac6f430f 100644 --- a/bsp/stm32/stm32f107-uc-eval/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f107-uc-eval/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 64k /* 64K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f207-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f207-st-nucleo/board/linker_scripts/link.lds index 425304d783..2f6329c65a 100644 --- a/bsp/stm32/stm32f207-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f207-st-nucleo/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f302-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f302-st-nucleo/board/linker_scripts/link.lds index 40d8c63621..94abb757aa 100644 --- a/bsp/stm32/stm32f302-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f302-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 16k /* 16K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f401-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f401-st-nucleo/board/linker_scripts/link.lds index 8460ad6868..58182b5efe 100644 --- a/bsp/stm32/stm32f401-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f401-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 96k /* 96K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f405-smdz-breadfruit/board/linker_scripts/link.lds b/bsp/stm32/stm32f405-smdz-breadfruit/board/linker_scripts/link.lds index 19291c0882..b6b39bc08e 100644 --- a/bsp/stm32/stm32f405-smdz-breadfruit/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f405-smdz-breadfruit/board/linker_scripts/link.lds @@ -12,7 +12,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f407-armfly-v5/board/linker_scripts/link.lds b/bsp/stm32/stm32f407-armfly-v5/board/linker_scripts/link.lds index 191339ff8b..087b672a56 100644 --- a/bsp/stm32/stm32f407-armfly-v5/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f407-armfly-v5/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128KB sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f407-atk-explorer/board/linker_scripts/link.lds b/bsp/stm32/stm32f407-atk-explorer/board/linker_scripts/link.lds index cf8d0241a4..7d2d7bc976 100644 --- a/bsp/stm32/stm32f407-atk-explorer/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f407-atk-explorer/board/linker_scripts/link.lds @@ -12,7 +12,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f407-robomaster-c/board/linker_scripts/link.lds b/bsp/stm32/stm32f407-robomaster-c/board/linker_scripts/link.lds index 1960915a3d..a00d6b74bd 100644 --- a/bsp/stm32/stm32f407-robomaster-c/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f407-robomaster-c/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f407-st-discovery/board/linker_scripts/link.lds b/bsp/stm32/stm32f407-st-discovery/board/linker_scripts/link.lds index 72506c8e43..f1ee8938c7 100644 --- a/bsp/stm32/stm32f407-st-discovery/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f407-st-discovery/board/linker_scripts/link.lds @@ -11,7 +11,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f410-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f410-st-nucleo/board/linker_scripts/link.lds index f559659f4a..5b45860ae1 100644 --- a/bsp/stm32/stm32f410-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f410-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 32k /* 32K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f411-atk-nano/board/linker_scripts/link.lds b/bsp/stm32/stm32f411-atk-nano/board/linker_scripts/link.lds index d288cabc28..9ca9dba2e9 100644 --- a/bsp/stm32/stm32f411-atk-nano/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f411-atk-nano/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f411-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f411-st-nucleo/board/linker_scripts/link.lds index b36c1a432c..4787919c55 100644 --- a/bsp/stm32/stm32f411-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f411-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f411-weact-MiniF4/board/linker_scripts/link.lds b/bsp/stm32/stm32f411-weact-MiniF4/board/linker_scripts/link.lds index b36c1a432c..4787919c55 100644 --- a/bsp/stm32/stm32f411-weact-MiniF4/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f411-weact-MiniF4/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f412-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f412-st-nucleo/board/linker_scripts/link.lds index 0f06e9b79e..7c81171ee4 100644 --- a/bsp/stm32/stm32f412-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f412-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 256k /* 256K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f413-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f413-st-nucleo/board/linker_scripts/link.lds index f8637d7329..1b8b1eb183 100644 --- a/bsp/stm32/stm32f413-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f413-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 320k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f427-robomaster-a/board/linker_scripts/link.lds b/bsp/stm32/stm32f427-robomaster-a/board/linker_scripts/link.lds index fccf3f9969..41e3b21bb8 100644 --- a/bsp/stm32/stm32f427-robomaster-a/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f427-robomaster-a/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f429-armfly-v6/board/linker_scripts/link.lds b/bsp/stm32/stm32f429-armfly-v6/board/linker_scripts/link.lds index 3d9bf719c1..8ae9c8ca53 100644 --- a/bsp/stm32/stm32f429-armfly-v6/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f429-armfly-v6/board/linker_scripts/link.lds @@ -12,7 +12,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f429-atk-apollo/board/linker_scripts/link.lds b/bsp/stm32/stm32f429-atk-apollo/board/linker_scripts/link.lds index b414817bd7..5a43a6a0f8 100644 --- a/bsp/stm32/stm32f429-atk-apollo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f429-atk-apollo/board/linker_scripts/link.lds @@ -12,7 +12,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f429-fire-challenger/board/linker_scripts/link.lds b/bsp/stm32/stm32f429-fire-challenger/board/linker_scripts/link.lds index 3d9bf719c1..8ae9c8ca53 100644 --- a/bsp/stm32/stm32f429-fire-challenger/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f429-fire-challenger/board/linker_scripts/link.lds @@ -12,7 +12,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f429-st-disco/board/linker_scripts/link.lds b/bsp/stm32/stm32f429-st-disco/board/linker_scripts/link.lds index f133833a84..4896d01f1f 100644 --- a/bsp/stm32/stm32f429-st-disco/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f429-st-disco/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 192k /* 192K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f446-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f446-st-nucleo/board/linker_scripts/link.lds index 8e4600e594..1a228ba882 100644 --- a/bsp/stm32/stm32f446-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f446-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f469-st-disco/board/linker_scripts/link.lds b/bsp/stm32/stm32f469-st-disco/board/linker_scripts/link.lds index 2682aa880f..fe848340b6 100644 --- a/bsp/stm32/stm32f469-st-disco/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f469-st-disco/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 320k /* 320K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f746-st-disco/board/linker_scripts/link.lds b/bsp/stm32/stm32f746-st-disco/board/linker_scripts/link.lds index c09320f933..90be2e87f2 100644 --- a/bsp/stm32/stm32f746-st-disco/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f746-st-disco/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 320k /* 320 K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f746-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f746-st-nucleo/board/linker_scripts/link.lds index c09320f933..90be2e87f2 100644 --- a/bsp/stm32/stm32f746-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f746-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 320k /* 320 K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f767-atk-apollo/board/linker_scripts/link.lds b/bsp/stm32/stm32f767-atk-apollo/board/linker_scripts/link.lds index 1960915a3d..a00d6b74bd 100644 --- a/bsp/stm32/stm32f767-atk-apollo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f767-atk-apollo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f767-fire-challenger-v1/board/linker_scripts/link.lds b/bsp/stm32/stm32f767-fire-challenger-v1/board/linker_scripts/link.lds index b07eab5286..eca488ead4 100644 --- a/bsp/stm32/stm32f767-fire-challenger-v1/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f767-fire-challenger-v1/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 512k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f767-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32f767-st-nucleo/board/linker_scripts/link.lds index 542ad623f7..8672f3b672 100644 --- a/bsp/stm32/stm32f767-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f767-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 512k /* 512K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32f769-st-disco/board/linker_scripts/link.lds b/bsp/stm32/stm32f769-st-disco/board/linker_scripts/link.lds index 542ad623f7..8672f3b672 100644 --- a/bsp/stm32/stm32f769-st-disco/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f769-st-disco/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 512k /* 512K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32g070-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32g070-st-nucleo/board/linker_scripts/link.lds index 4fa07b4ac7..18c530241f 100644 --- a/bsp/stm32/stm32g070-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32g070-st-nucleo/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 36k /* 36K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32g071-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32g071-st-nucleo/board/linker_scripts/link.lds index 4fa07b4ac7..18c530241f 100644 --- a/bsp/stm32/stm32g071-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32g071-st-nucleo/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 36k /* 36K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32g431-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32g431-st-nucleo/board/linker_scripts/link.lds index 8e4600e594..1a228ba882 100644 --- a/bsp/stm32/stm32g431-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32g431-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32h743-armfly-V7/board/linker_scripts/link.lds b/bsp/stm32/stm32h743-armfly-V7/board/linker_scripts/link.lds index de4989f69f..9339c6af7c 100644 --- a/bsp/stm32/stm32h743-armfly-V7/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h743-armfly-V7/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x24000000, LENGTH = 512k /* 512K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32h743-atk-apollo/board/linker_scripts/link.lds b/bsp/stm32/stm32h743-atk-apollo/board/linker_scripts/link.lds index de4989f69f..9339c6af7c 100644 --- a/bsp/stm32/stm32h743-atk-apollo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h743-atk-apollo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x24000000, LENGTH = 512k /* 512K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32h743-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32h743-st-nucleo/board/linker_scripts/link.lds index de4989f69f..9339c6af7c 100644 --- a/bsp/stm32/stm32h743-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h743-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x24000000, LENGTH = 512k /* 512K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32h747-st-discovery/board/linker_scripts/link.lds b/bsp/stm32/stm32h747-st-discovery/board/linker_scripts/link.lds index 2e58f218e2..7ad7729d2c 100644 --- a/bsp/stm32/stm32h747-st-discovery/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h747-st-discovery/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 512K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32h750-armfly-h7-tool/board/linker_scripts/link.lds b/bsp/stm32/stm32h750-armfly-h7-tool/board/linker_scripts/link.lds index 506b740640..f3bfeab242 100644 --- a/bsp/stm32/stm32h750-armfly-h7-tool/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h750-armfly-h7-tool/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K DTCM */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32h750-artpi-h750/board/linker_scripts/link.lds b/bsp/stm32/stm32h750-artpi-h750/board/linker_scripts/link.lds index 1975a3b8d4..0609f4d445 100644 --- a/bsp/stm32/stm32h750-artpi-h750/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32h750-artpi-h750/board/linker_scripts/link.lds @@ -12,7 +12,7 @@ TxDecripSection (rw) : ORIGIN =0x30040060,LENGTH =32k RxArraySection (rw) : ORIGIN =0x30040200,LENGTH =32k } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l010-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l010-st-nucleo/board/linker_scripts/link.lds index e7cde43e9d..4fde4762fa 100644 --- a/bsp/stm32/stm32l010-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l010-st-nucleo/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 20k /* 20KB sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l053-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l053-st-nucleo/board/linker_scripts/link.lds index 19094d5f93..ff393d1e71 100644 --- a/bsp/stm32/stm32l053-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l053-st-nucleo/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 8k /* 8KB sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l412-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l412-st-nucleo/board/linker_scripts/link.lds index c72bc8b7e3..bc1bd87cdb 100644 --- a/bsp/stm32/stm32l412-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l412-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 8k /* 8K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l431-BearPi/board/linker_scripts/link.lds b/bsp/stm32/stm32l431-BearPi/board/linker_scripts/link.lds index ddb43a1126..f659e99588 100644 --- a/bsp/stm32/stm32l431-BearPi/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l431-BearPi/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 16k /* 16K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l432-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l432-st-nucleo/board/linker_scripts/link.lds index ddb43a1126..f659e99588 100644 --- a/bsp/stm32/stm32l432-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l432-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 16k /* 16K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l433-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l433-st-nucleo/board/linker_scripts/link.lds index ddb43a1126..f659e99588 100644 --- a/bsp/stm32/stm32l433-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l433-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 16k /* 16K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l452-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l452-st-nucleo/board/linker_scripts/link.lds index 7d3e40ae6b..cb5dd4095e 100644 --- a/bsp/stm32/stm32l452-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l452-st-nucleo/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128KB sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l475-atk-pandora/board/linker_scripts/link.lds b/bsp/stm32/stm32l475-atk-pandora/board/linker_scripts/link.lds index f2b81f7697..85311d6b2f 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l475-atk-pandora/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 32k /* 32K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l475-st-discovery/board/linker_scripts/link.lds b/bsp/stm32/stm32l475-st-discovery/board/linker_scripts/link.lds index 8d26782b40..22076de870 100644 --- a/bsp/stm32/stm32l475-st-discovery/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l475-st-discovery/board/linker_scripts/link.lds @@ -11,7 +11,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 32k /* 32K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l476-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l476-st-nucleo/board/linker_scripts/link.lds index 97d4f14dd7..a6aca31dae 100644 --- a/bsp/stm32/stm32l476-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l476-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 32k /* 32K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l496-ali-developer/board/linker_scripts/link.lds b/bsp/stm32/stm32l496-ali-developer/board/linker_scripts/link.lds index da2f4d1ac1..b180b27ef9 100644 --- a/bsp/stm32/stm32l496-ali-developer/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l496-ali-developer/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 320k /* 320K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l496-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l496-st-nucleo/board/linker_scripts/link.lds index 8bcfa78da7..0571d2142f 100644 --- a/bsp/stm32/stm32l496-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l496-st-nucleo/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l4r5-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l4r5-st-nucleo/board/linker_scripts/link.lds index 7fd9efea5b..c675b6f406 100644 --- a/bsp/stm32/stm32l4r5-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l4r5-st-nucleo/board/linker_scripts/link.lds @@ -11,7 +11,7 @@ MEMORY RAM3 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l4r9-st-eval/board/linker_scripts/link.lds b/bsp/stm32/stm32l4r9-st-eval/board/linker_scripts/link.lds index 2775b08bef..55c0cd87ac 100644 --- a/bsp/stm32/stm32l4r9-st-eval/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l4r9-st-eval/board/linker_scripts/link.lds @@ -11,7 +11,7 @@ MEMORY RAM3 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l4r9-st-sensortile-box/board/linker_scripts/link.lds b/bsp/stm32/stm32l4r9-st-sensortile-box/board/linker_scripts/link.lds index c16b706da7..f51f38fe55 100644 --- a/bsp/stm32/stm32l4r9-st-sensortile-box/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l4r9-st-sensortile-box/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM2 (rw) : ORIGIN = 0x20040000, LENGTH = 384k /* 384k sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32l552-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32l552-st-nucleo/board/linker_scripts/link.lds index 65c28e724e..3950cbac38 100644 --- a/bsp/stm32/stm32l552-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32l552-st-nucleo/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 96k /* 96KB sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32mp157a-st-discovery/board/linker_scripts/link.lds b/bsp/stm32/stm32mp157a-st-discovery/board/linker_scripts/link.lds index 81eef75b22..e407492c39 100644 --- a/bsp/stm32/stm32mp157a-st-discovery/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32mp157a-st-discovery/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x10040000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32mp157a-st-ev1/board/linker_scripts/link.lds b/bsp/stm32/stm32mp157a-st-ev1/board/linker_scripts/link.lds index 81eef75b22..e407492c39 100644 --- a/bsp/stm32/stm32mp157a-st-ev1/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32mp157a-st-ev1/board/linker_scripts/link.lds @@ -10,7 +10,7 @@ MEMORY RAM (rw) : ORIGIN = 0x10040000, LENGTH = 128k /* 128K sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32u575-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32u575-st-nucleo/board/linker_scripts/link.lds index 65c28e724e..3950cbac38 100644 --- a/bsp/stm32/stm32u575-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32u575-st-nucleo/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 96k /* 96KB sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/stm32wb55-st-nucleo/board/linker_scripts/link.lds b/bsp/stm32/stm32wb55-st-nucleo/board/linker_scripts/link.lds index ce08b8e8aa..85635b902d 100644 --- a/bsp/stm32/stm32wb55-st-nucleo/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32wb55-st-nucleo/board/linker_scripts/link.lds @@ -9,7 +9,7 @@ MEMORY RAM (rw) : ORIGIN = 0x20000000, LENGTH = 192k /* 192KB sram */ } ENTRY(Reset_Handler) -_system_stack_size = 0x000; +_system_stack_size = 0x400; SECTIONS { diff --git a/bsp/stm32/tools/upgrade.py b/bsp/stm32/tools/upgrade.py index 12e34bf7ab..c7e35466d2 100644 --- a/bsp/stm32/tools/upgrade.py +++ b/bsp/stm32/tools/upgrade.py @@ -24,7 +24,8 @@ # 本文件用于在HAL库更新之后 # 1.对gcc的汇编启动文件中main替换为entry函数 -# 2.将启动文件heap降为0 +# 2.将启动文件heap降为0(Keil IAR) +# 3.将GCC的堆大小扩展到0x400,与Keil IAR保持一致 #使用方法:运行脚本,将bsp/stm32的绝对路径传给脚本即可,如:C:\Users\92036\Desktop\rt-thread\bsp\stm32 @@ -122,10 +123,10 @@ def heap2zero(path): if line == '': break - re_result = re.match('\s*_system_stack_size\s*=\s*0[xX][0-9a-fA-F]+', line) #GCC的表示方法 + re_result = re.match('\s*_system_stack_size\s*=\s*0[xX][0-9a-fA-F]+', line) #GCC的表示方法, 将默认的栈大小增加到0x400 if re_result != None: oldline = line - newline = re.sub('0[xX][0-9a-fA-F]+','0x000', oldline) + newline = re.sub('0[xX][0-9a-fA-F]+','0x400', oldline) flag_need_replace = True break