From ac1ab2d14038e251e5547d94aaab077c77b8b88d Mon Sep 17 00:00:00 2001 From: whj4674672 Date: Wed, 16 Oct 2019 14:20:30 +0800 Subject: [PATCH] [bsp][stm32h7]Fix BUG that cannot run in IAR environment --- .../stm32h7xx/board/linker_scripts/link.icf | 2 +- .../templates/stm32h7xx/template.ewp | 117 +++++++++++++---- .../board/linker_scripts/link.icf | 2 +- bsp/stm32/stm32h743-atk-apollo/project.ewp | 118 ++++++++++++++---- bsp/stm32/stm32h743-atk-apollo/template.ewp | 115 ++++++++++++++--- .../board/linker_scripts/link.icf | 2 +- 6 files changed, 289 insertions(+), 67 deletions(-) diff --git a/bsp/stm32/libraries/templates/stm32h7xx/board/linker_scripts/link.icf b/bsp/stm32/libraries/templates/stm32h7xx/board/linker_scripts/link.icf index d315eb2c2..238d9ae6d 100644 --- a/bsp/stm32/libraries/templates/stm32h7xx/board/linker_scripts/link.icf +++ b/bsp/stm32/libraries/templates/stm32h7xx/board/linker_scripts/link.icf @@ -7,7 +7,7 @@ define symbol __ICFEDIT_intvec_start__ = 0x08000000; define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; define symbol __ICFEDIT_region_ROM_end__ = 0x081FFFFF; define symbol __ICFEDIT_region_RAM_start__ = 0x24000000; -define symbol __ICFEDIT_region_RAM_end__ = 0x2007FFFF; +define symbol __ICFEDIT_region_RAM_end__ = 0x2407FFFF; /*-Sizes-*/ define symbol __ICFEDIT_size_cstack__ = 0x0400; define symbol __ICFEDIT_size_heap__ = 0x0000; diff --git a/bsp/stm32/libraries/templates/stm32h7xx/template.ewp b/bsp/stm32/libraries/templates/stm32h7xx/template.ewp index 2b3e41eb1..bc0b523be 100644 --- a/bsp/stm32/libraries/templates/stm32h7xx/template.ewp +++ b/bsp/stm32/libraries/templates/stm32h7xx/template.ewp @@ -11,7 +11,7 @@ General 3 - 29 + 31 1 1 + + ICCARM 2 - 34 + 35 1 1 + @@ -674,7 +687,7 @@ ILINK 0 - 20 + 23 1 1 + + + + + + @@ -1025,7 +1062,7 @@ General 3 - 29 + 31 1 0 + + ICCARM 2 - 34 + 35 1 0 + @@ -1687,7 +1738,7 @@ ILINK 0 - 20 + 23 1 0 + + + + + + diff --git a/bsp/stm32/stm32h743-atk-apollo/board/linker_scripts/link.icf b/bsp/stm32/stm32h743-atk-apollo/board/linker_scripts/link.icf index d315eb2c2..238d9ae6d 100644 --- a/bsp/stm32/stm32h743-atk-apollo/board/linker_scripts/link.icf +++ b/bsp/stm32/stm32h743-atk-apollo/board/linker_scripts/link.icf @@ -7,7 +7,7 @@ define symbol __ICFEDIT_intvec_start__ = 0x08000000; define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; define symbol __ICFEDIT_region_ROM_end__ = 0x081FFFFF; define symbol __ICFEDIT_region_RAM_start__ = 0x24000000; -define symbol __ICFEDIT_region_RAM_end__ = 0x2007FFFF; +define symbol __ICFEDIT_region_RAM_end__ = 0x2407FFFF; /*-Sizes-*/ define symbol __ICFEDIT_size_cstack__ = 0x0400; define symbol __ICFEDIT_size_heap__ = 0x0000; diff --git a/bsp/stm32/stm32h743-atk-apollo/project.ewp b/bsp/stm32/stm32h743-atk-apollo/project.ewp index 06511c579..b0e180439 100644 --- a/bsp/stm32/stm32h743-atk-apollo/project.ewp +++ b/bsp/stm32/stm32h743-atk-apollo/project.ewp @@ -10,7 +10,7 @@ General 3 - 29 + 31 1 1 + + ICCARM 2 - 34 + 35 1 1 + @@ -690,7 +703,7 @@ ILINK 0 - 20 + 23 1 1 + + + + + + @@ -1041,7 +1078,7 @@ General 3 - 29 + 31 1 0 + + ICCARM 2 - 34 + 35 1 0 @@ -1500,6 +1547,10 @@ IccRTTI2 0 + @@ -1720,7 +1771,7 @@ ILINK 0 - 20 + 23 1 0 + + + + + + @@ -2069,9 +2144,6 @@ $PROJ_DIR$\..\..\..\src\components.c - - $PROJ_DIR$\..\..\..\src\cpu.c - $PROJ_DIR$\..\..\..\src\device.c diff --git a/bsp/stm32/stm32h743-atk-apollo/template.ewp b/bsp/stm32/stm32h743-atk-apollo/template.ewp index 2b3e41eb1..4e3a5d1e7 100644 --- a/bsp/stm32/stm32h743-atk-apollo/template.ewp +++ b/bsp/stm32/stm32h743-atk-apollo/template.ewp @@ -11,7 +11,7 @@ General 3 - 29 + 31 1 1 + + ICCARM 2 - 34 + 35 1 1 + @@ -674,7 +687,7 @@ ILINK 0 - 20 + 23 1 1 + + + + + + @@ -1025,7 +1062,7 @@ General 3 - 29 + 31 1 0 + + ICCARM 2 - 34 + 35 1 0 + @@ -1687,7 +1738,7 @@ ILINK 0 - 20 + 23 1 0 + + + + + + diff --git a/bsp/stm32/stm32h743-st-nucleo/board/linker_scripts/link.icf b/bsp/stm32/stm32h743-st-nucleo/board/linker_scripts/link.icf index 89354c763..9fca195a6 100644 --- a/bsp/stm32/stm32h743-st-nucleo/board/linker_scripts/link.icf +++ b/bsp/stm32/stm32h743-st-nucleo/board/linker_scripts/link.icf @@ -7,7 +7,7 @@ define symbol __ICFEDIT_intvec_start__ = 0x08000000; define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; define symbol __ICFEDIT_region_ROM_end__ = 0x081FFFFF; define symbol __ICFEDIT_region_RAM_start__ = 0x24000000; -define symbol __ICFEDIT_region_RAM_end__ = 0x2007FFFF; +define symbol __ICFEDIT_region_RAM_end__ = 0x2407FFFF; /*-Sizes-*/ define symbol __ICFEDIT_size_cstack__ = 0x800; define symbol __ICFEDIT_size_heap__ = 0x400; -- GitLab