update linker script to STM32F103xC memory sizes
This commit is contained in:
parent
2538ee6683
commit
3e37211c90
|
@ -1,8 +1,6 @@
|
|||
/* linker script for application running on STM32F103x8 micro-controller
|
||||
* the STM32F103x8 has 64 KB of flash starting at 0x0800 0000, and 20 KB of RAM starting at 0x2000 0000
|
||||
* the STM32F103xB has 128 KB of flash starting at 0x0800 0000, and 20 KB of RAM starting at 0x2000 0000
|
||||
* STM32F103x8 most often have if fact 128 KB, instead of the specified and advertised 64 KB, like the STM32F103xB
|
||||
* you can define the desired flash size here.
|
||||
/* linker script for application running on STM32F103xC micro-controller
|
||||
* the STM32F103xC has 256 KB of flash starting at 0x0800 0000, and 64 KB of RAM starting at 0x2000 0000
|
||||
* STM32F103xC might have if fact 512 KB instead of the specified and advertised 256 KB
|
||||
* the USB DFU bootloader will take the first 8 KB of flash, followed by the application
|
||||
* the first 4 bytes of the RAM is reserved for the DFU magic word (DFU! to start DFU bootloader)
|
||||
*/
|
||||
|
@ -10,8 +8,8 @@
|
|||
/* define memory regions. */
|
||||
MEMORY
|
||||
{
|
||||
rom (rx) : ORIGIN = 0x08000000 + 8K, LENGTH = 64K - 8K
|
||||
ram (rwx) : ORIGIN = 0x20000000 + 4, LENGTH = 20K - 4
|
||||
rom (rx) : ORIGIN = 0x08000000 + 8K, LENGTH = 256K - 8K
|
||||
ram (rwx) : ORIGIN = 0x20000000 + 4, LENGTH = 64K - 4
|
||||
}
|
||||
PROVIDE(__application_beginning = ORIGIN(rom));
|
||||
/* if you want the firmware to use the flash size advertised by the micro-controller itself, use the following:
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
/* linker script for application running on STM32F103x8 micro-controller
|
||||
* the STM32F103x8 has 64 KB of flash starting at 0x0800 0000, and 20 KB of RAM starting at 0x2000 0000
|
||||
* the STM32F103xB has 128 KB of flash starting at 0x0800 0000, and 20 KB of RAM starting at 0x2000 0000
|
||||
* STM32F103x8 most often have if fact 128 KB, instead of the specified and advertised 64 KB, like the STM32F103xB
|
||||
* you can define the desired flash size here.
|
||||
/* linker script for application running on STM32F103xC micro-controller
|
||||
* the STM32F103xC has 256 KB of flash starting at 0x0800 0000, and 64 KB of RAM starting at 0x2000 0000
|
||||
* STM32F103xC might have 512 KB instead of the specified and advertised 256 KB
|
||||
* the USB DFU bootloader will take the first 8 KB of flash, followed by the application
|
||||
* the first 4 bytes of the RAM is reserved for the DFU magic word (DFU! to start DFU bootloader)
|
||||
*/
|
||||
|
@ -11,7 +9,7 @@
|
|||
MEMORY
|
||||
{
|
||||
rom (rx) : ORIGIN = 0x08000000, LENGTH = 8K
|
||||
ram (rwx) : ORIGIN = 0x20000000 + 4, LENGTH = 20K - 4
|
||||
ram (rwx) : ORIGIN = 0x20000000 + 4, LENGTH = 64K - 4
|
||||
}
|
||||
PROVIDE(__application_beginning = ORIGIN(rom) + LENGTH(rom));
|
||||
/* if you want the firmware to use the flash size advertised by the micro-controller itself, use the following:
|
||||
|
|
Loading…
Reference in New Issue