mirror of https://github.com/ARMmbed/mbed-os.git
Add bootlader support for NUCLEO_L073RZ on GCC
parent
f61dee1626
commit
44bc123483
|
@ -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
|
||||
|
|
|
@ -82,8 +82,12 @@ void SystemInit (void)
|
|||
#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
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -3142,6 +3142,7 @@
|
|||
"MPU"
|
||||
],
|
||||
"release_versions": ["2", "5"],
|
||||
"bootloader_supported": true,
|
||||
"device_name": "STM32L073RZ"
|
||||
},
|
||||
"NUCLEO_L152RE": {
|
||||
|
|
Loading…
Reference in New Issue