From eb1d6913b09159095bbf109a0627cbcb27041211 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Wed, 26 Jun 2024 23:48:38 +0800 Subject: [PATCH] [bsp/stm32f103-100ask-mini] extend ROM from 64KB to 128KB --- bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.icf | 2 +- bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.lds | 2 +- bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.sct | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.icf b/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.icf index 6569a9cfc6..758734c181 100644 --- a/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.icf +++ b/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.icf @@ -5,7 +5,7 @@ define symbol __ICFEDIT_intvec_start__ = 0x08000000; /*-Memory Regions-*/ define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; -define symbol __ICFEDIT_region_ROM_end__ = 0x0800FFFF; +define symbol __ICFEDIT_region_ROM_end__ = 0x0801FFFF; define symbol __ICFEDIT_region_RAM_start__ = 0x20000000; define symbol __ICFEDIT_region_RAM_end__ = 0x20004FFF; /*-Sizes-*/ diff --git a/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.lds index 1e321b30bb..677bfcb4ed 100644 --- a/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.lds +++ b/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.lds @@ -5,7 +5,7 @@ /* Program Entry, set to mark it as "used" and avoid gc */ MEMORY { - ROM (rx) : ORIGIN = 0x08000000, LENGTH = 64k /* 64KB flash */ + ROM (rx) : ORIGIN = 0x08000000, LENGTH = 128k /* 64KB flash */ RAM (rw) : ORIGIN = 0x20000000, LENGTH = 20k /* 20K sram */ } ENTRY(Reset_Handler) diff --git a/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.sct b/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.sct index 6930ff4b50..7441625be2 100644 --- a/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.sct +++ b/bsp/stm32/stm32f103-100ask-mini/board/linker_scripts/link.sct @@ -3,7 +3,7 @@ ; ************************************************************* LR_IROM1 0x08000000 0x00010000 { ; load region size_region - ER_IROM1 0x08000000 0x00010000 { ; load address = execution address + ER_IROM1 0x08000000 0x00020000 { ; load address = execution address *.o (RESET, +First) *(InRoot$$Sections) .ANY (+RO)