2017-04-15 13:51:24 +02:00
|
|
|
/* linker script for application running on STM32F103x8 micro-controller
|
|
|
|
* the STM32F103x8 has 64kB of flash starting at 0x0800 0000, and 20kB of RAM starting at 0x2000 0000
|
2017-08-06 09:53:46 +02:00
|
|
|
* the USB DFU bootloader will take the first 8 kB of flash, followed by the application
|
2017-04-15 13:51:24 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Define memory regions. */
|
|
|
|
MEMORY
|
|
|
|
{
|
2017-08-06 09:53:46 +02:00
|
|
|
rom (rx) : ORIGIN = 0x08000000 + 8K, LENGTH = 56K
|
2017-04-15 13:51:24 +02:00
|
|
|
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K
|
|
|
|
}
|
|
|
|
PROVIDE(__application_beginning = ORIGIN(rom));
|
|
|
|
PROVIDE(__application_end = ORIGIN(rom) + LENGTH(rom));
|
|
|
|
|
|
|
|
/* include rest of the definitions for the STM32F1 family */
|
|
|
|
INCLUDE libopencm3_stm32f1.ld
|