ld: fix SRAM size
This commit is contained in:
parent
de6d3cb134
commit
67b232f96e
|
@ -1,13 +1,13 @@
|
||||||
/* linker script for application running on STM32F103x8 micro-controller
|
/* 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
|
* the USB DFU bootloader will take the first 8 KB of flash, followed by the application
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Define memory regions. */
|
/* Define memory regions. */
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
rom (rx) : ORIGIN = 0x08000000 + 8K, LENGTH = 248K
|
rom (rx) : ORIGIN = 0x08000000 + 8K, LENGTH = 256K-8K
|
||||||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K
|
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 48K
|
||||||
}
|
}
|
||||||
PROVIDE(__application_beginning = ORIGIN(rom));
|
PROVIDE(__application_beginning = ORIGIN(rom));
|
||||||
/* only provide application_end and/or flash_end if you want to force a flash size
|
/* only provide application_end and/or flash_end if you want to force a flash size
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* linker script for application running on STM32F103x8 micro-controller
|
/* linker script for application running on STM32F103xC 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
|
||||||
* the USB DFU bootloader will take the first 8 KB of flash, followed by the application
|
* the USB DFU bootloader will take the first 8 KB of flash, followed by the application
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
rom (rx) : ORIGIN = 0x08000000, LENGTH = 8K
|
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));
|
PROVIDE(__application_beginning = ORIGIN(rom) + LENGTH(rom));
|
||||||
/* only provide application_end and/or flash_end if you want to force a flash size
|
/* only provide application_end and/or flash_end if you want to force a flash size
|
||||||
|
|
Loading…
Reference in New Issue