ld: fix SRAM size

This commit is contained in:
King Kévin 2018-04-07 11:15:29 +02:00
parent de6d3cb134
commit 67b232f96e
2 changed files with 6 additions and 6 deletions

View File

@ -1,13 +1,13 @@
/* linker script for application running on STM32F103x8 micro-controller
* the STM32F103xC has 256 KB of flash starting at 0x0800 0000, and 20 KB of RAM starting at 0x2000 0000
* the STM32F103xC has 256 KB of flash starting at 0x0800 0000, and 48 KB of SRAM starting at 0x2000 0000 (exception for STM32F103RC in WLCSP64 package: 64 KB of SRAM)
* the USB DFU bootloader will take the first 8 KB of flash, followed by the application
*/
/* Define memory regions. */
MEMORY
{
rom (rx) : ORIGIN = 0x08000000 + 8K, LENGTH = 248K
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K
rom (rx) : ORIGIN = 0x08000000 + 8K, LENGTH = 256K-8K
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 48K
}
PROVIDE(__application_beginning = ORIGIN(rom));
/* only provide application_end and/or flash_end if you want to force a flash size

View File

@ -1,5 +1,5 @@
/* linker script for application running on STM32F103x8 micro-controller
* the STM32F103xC has 256 KB of flash starting at 0x0800 0000, and 20 KB of RAM starting at 0x2000 0000
/* linker script for application running on STM32F103xC micro-controller
* the STM32F103xC has 256 KB of flash starting at 0x0800 0000, and 48 KB of SRAM starting at 0x2000 0000
* the USB DFU bootloader will take the first 8 KB of flash, followed by the application
*/
@ -7,7 +7,7 @@
MEMORY
{
rom (rx) : ORIGIN = 0x08000000, LENGTH = 8K
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 48K
}
PROVIDE(__application_beginning = ORIGIN(rom) + LENGTH(rom));
/* only provide application_end and/or flash_end if you want to force a flash size