Add bootlader support for NUCLEO_L073RZ on GCC

pull/9792/head
Sarah Marsh 2019-02-21 16:14:16 +00:00
parent f61dee1626
commit 44bc123483
3 changed files with 28 additions and 15 deletions

View File

@ -1,17 +1,3 @@
/* Linker script to configure memory regions. */
#if !defined(MBED_BOOT_STACK_SIZE)
#define MBED_BOOT_STACK_SIZE 0x400
#endif
STACK_SIZE = MBED_BOOT_STACK_SIZE;
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 192k
RAM (rwx) : ORIGIN = 0x200000C0, LENGTH = 20K - 0xC0
}
/* Linker script to place sections and symbol values. Should be used together
* with other linker script that defines memory regions FLASH and RAM.
* It references following symbols, which must be defined in code:
@ -39,6 +25,28 @@ MEMORY
* __stack
* _estack
*/
#if !defined(MBED_APP_START)
#define MBED_APP_START 0x08000000
#endif
#if !defined(MBED_APP_SIZE)
#define MBED_APP_SIZE 0x2EE00
#endif
#if !defined(MBED_BOOT_STACK_SIZE)
#define MBED_BOOT_STACK_SIZE 0x400
#endif
STACK_SIZE = MBED_BOOT_STACK_SIZE;
/* Linker script to configure memory regions. */
MEMORY
{
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
RAM (rwx) : ORIGIN = 0x200000C0, LENGTH = 20K - 0xC0
}
ENTRY(Reset_Handler)
SECTIONS

View File

@ -81,9 +81,13 @@ void SystemInit (void)
/* Configure the Vector Table location add offset address ------------------*/
#ifdef VECT_TAB_SRAM
SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
#else
#ifdef APPLICATION_ADDR
SCB->VTOR = APPLICATION_ADDR; /* Vector Table Relocation in Internal FLASH to offset application*/
#else
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
#endif
#endif // end APPLICATION_ADDR
#endif // end VECT_TAB_SRAM
}

View File

@ -3142,6 +3142,7 @@
"MPU"
],
"release_versions": ["2", "5"],
"bootloader_supported": true,
"device_name": "STM32L073RZ"
},
"NUCLEO_L152RE": {