summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-01-26 06:28:39 +0800
committerMeco Man <[email protected]>2021-01-26 06:28:39 +0800
commit4f1c96de30ea4b27847d97088a5980ddafee0fa3 (patch)
treefb8cfcfc04872430c65432579ffc3dbd7b42b548 /bsp
parentf439bb4f2240dfb1473fc5c2365056e5ae662fec (diff)
change linker scripts to 128K ROM
Diffstat (limited to 'bsp')
-rw-r--r--bsp/stm32/stm32f103-blue-pill/board/board.h2
-rw-r--r--bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.icf2
-rw-r--r--bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.lds2
-rw-r--r--bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.sct4
4 files changed, 5 insertions, 5 deletions
diff --git a/bsp/stm32/stm32f103-blue-pill/board/board.h b/bsp/stm32/stm32f103-blue-pill/board/board.h
index 7f0ae67d48..fc435ee029 100644
--- a/bsp/stm32/stm32f103-blue-pill/board/board.h
+++ b/bsp/stm32/stm32f103-blue-pill/board/board.h
@@ -21,7 +21,7 @@ extern "C" {
#endif
#define STM32_FLASH_START_ADRESS ((uint32_t)0x08000000)
-#define STM32_FLASH_SIZE (64 * 1024)
+#define STM32_FLASH_SIZE (128 * 1024)
#define STM32_FLASH_END_ADDRESS ((uint32_t)(STM32_FLASH_START_ADRESS + STM32_FLASH_SIZE))
/* Internal SRAM memory size[Kbytes] <8-64>, Default: 64*/
diff --git a/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.icf b/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.icf
index 1de6821bb1..fc3d71632f 100644
--- a/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.icf
+++ b/bsp/stm32/stm32f103-blue-pill/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-blue-pill/board/linker_scripts/link.lds b/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.lds
index 22e29d2ed7..d22c800cab 100644
--- a/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.lds
+++ b/bsp/stm32/stm32f103-blue-pill/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 /* 128KB flash */
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 20k /* 20K sram */
}
ENTRY(Reset_Handler)
diff --git a/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.sct b/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.sct
index f64b03c941..c26b647ebf 100644
--- a/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.sct
+++ b/bsp/stm32/stm32f103-blue-pill/board/linker_scripts/link.sct
@@ -2,8 +2,8 @@
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
-LR_IROM1 0x08000000 0x00010000 { ; load region size_region
- ER_IROM1 0x08000000 0x00010000 { ; load address = execution address
+LR_IROM1 0x08000000 0x00020000 { ; load region size_region
+ ER_IROM1 0x08000000 0x00020000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)