bootloader is now 8 kB thanks to better dependency handling

This commit is contained in:
King Kévin 2017-08-06 09:53:46 +02:00
parent 8a8424b349
commit a1de197209
2 changed files with 5 additions and 5 deletions

View File

@ -1,12 +1,12 @@
/* 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
* the bootloader will take the first 9 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. */
MEMORY
{
rom (rx) : ORIGIN = 0x08000000 + 9K, LENGTH = 55K
rom (rx) : ORIGIN = 0x08000000 + 8K, LENGTH = 56K
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K
}
PROVIDE(__application_beginning = ORIGIN(rom));

View File

@ -1,16 +1,16 @@
/* 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
* the bootloader will take the first 9 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. */
MEMORY
{
rom (rx) : ORIGIN = 0x08000000, LENGTH = 9K
rom (rx) : ORIGIN = 0x08000000, LENGTH = 8K
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 20K
}
PROVIDE(__application_beginning = ORIGIN(rom) + LENGTH(rom));
PROVIDE(__application_end = __application_beginning + 55K);
PROVIDE(__application_end = __application_beginning + 56K);
/* include rest of the definitions for the STM32F1 family */
INCLUDE libopencm3_stm32f1.ld