diff options
Diffstat (limited to 'buildroot/share/PlatformIO/ldscripts/fysetc_stm32f103rc.ld')
-rw-r--r-- | buildroot/share/PlatformIO/ldscripts/fysetc_stm32f103rc.ld | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/buildroot/share/PlatformIO/ldscripts/fysetc_stm32f103rc.ld b/buildroot/share/PlatformIO/ldscripts/fysetc_stm32f103rc.ld new file mode 100644 index 0000000..6777e59 --- /dev/null +++ b/buildroot/share/PlatformIO/ldscripts/fysetc_stm32f103rc.ld @@ -0,0 +1,18 @@ +/* + * Linker script for Generic STM32F103RC boards, using the generic bootloader (which takes the lower 8k of memory) + */ + +MEMORY +{ + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 48K + rom (rx) : ORIGIN = 0x08008000, LENGTH = 256K - 32K +} + +/* Provide memory region aliases for common.inc */ +REGION_ALIAS("REGION_TEXT", rom); +REGION_ALIAS("REGION_DATA", ram); +REGION_ALIAS("REGION_BSS", ram); +REGION_ALIAS("REGION_RODATA", rom); + +/* Let common.inc handle the real work. */ +INCLUDE common.inc |