Browse Source
A board can now define MBOOT_LD_FILES (at the Makefile-level) to specify custom linker scripts. And stm32_generic.ld has been split into 2 pieces so one or the other can be reused (usually stm32_sections.ld wolud be reused by a board, and stm32_memory.ld redefined). Signed-off-by: Damien George <damien@micropython.org>pull/7178/head
Damien George
4 years ago
3 changed files with 14 additions and 9 deletions
@ -0,0 +1,10 @@ |
|||
/* |
|||
Linker script fragment for mboot on an STM32xxx MCU. |
|||
This defines the memory sections for the bootloader to use. |
|||
*/ |
|||
|
|||
MEMORY |
|||
{ |
|||
FLASH_BL (rx) : ORIGIN = 0x08000000, LENGTH = 32K |
|||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 120K |
|||
} |
@ -1,14 +1,8 @@ |
|||
/* |
|||
GNU linker script for generic STM32xxx MCU |
|||
Linker script fragment for mboot on an STM32xxx MCU. |
|||
This needs the following MEMORY sections to be defined: FLASH_BL, RAM. |
|||
*/ |
|||
|
|||
/* Specify the memory areas */ |
|||
MEMORY |
|||
{ |
|||
FLASH_BL (rx) : ORIGIN = 0x08000000, LENGTH = 32K /* sector 0 (can be 32K) */ |
|||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 120K |
|||
} |
|||
|
|||
/* produce a link error if there is not this amount of RAM for these sections */ |
|||
_minimum_stack_size = 8K; |
|||
|
Loading…
Reference in new issue