aboutsummaryrefslogtreecommitdiffstats
path: root/memory.x
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2022-10-25 12:20:32 -0400
committerBrian Cully <bjc@kublai.com>2022-10-25 12:20:32 -0400
commit0c4eb964b015961e3c90e45ef498f6c7f89eddba (patch)
treeb0cc3b540e7123b45da044c73d1f47f98ce010ef /memory.x
parent0f80c612d59c855a99073e583db339fe6a42b883 (diff)
downloadluchie-0c4eb964b015961e3c90e45ef498f6c7f89eddba.tar.gz
luchie-0c4eb964b015961e3c90e45ef498f6c7f89eddba.zip
convert to gd32f303 (stm32f103) bluepill variant
Diffstat (limited to 'memory.x')
-rw-r--r--memory.x15
1 files changed, 6 insertions, 9 deletions
diff --git a/memory.x b/memory.x
index 6d8ae75..56c58de 100644
--- a/memory.x
+++ b/memory.x
@@ -1,13 +1,10 @@
+/* Linker script for the STM32F303VCT6 */
MEMORY
{
- /* 0x0000_0000 is an alias for 0x08000_0000 */
- FLASH(rwx) : ORIGIN = 0x00000000, LENGTH = 128K
- RAM(rw) : ORIGIN = 0x20000000, LENGTH = 32K
+ CCRAM : ORIGIN = 0x10000000, LENGTH = 8K
+ FLASH : ORIGIN = 0x08000000, LENGTH = 256K
+ RAM : ORIGIN = 0x20000000, LENGTH = 40K
}
-REGION_ALIAS("REGION_TEXT", FLASH);
-REGION_ALIAS("REGION_RODATA", FLASH);
-REGION_ALIAS("REGION_DATA", RAM);
-REGION_ALIAS("REGION_BSS", RAM);
-REGION_ALIAS("REGION_HEAP", RAM);
-REGION_ALIAS("REGION_STACK", RAM);
+/* _stack_start = ORIGIN(CCRAM) + LENGTH(CCRAM); */
+_stack_start = ORIGIN(RAM) + LENGTH(RAM);