ports/stm32/boards/LEGO_HUB_NO6/mboot_memory.ld
raw| 1 | /* |
| 2 | Linker script fragment for mboot on an STM32xxx MCU. |
| 3 | This defines the memory sections for the bootloader to use. |
| 4 | */ |
| 5 | MEMORY |
| 6 | { |
| 7 | FLASH_BL (rx) : ORIGIN = 0x08008000, LENGTH = 32K |
| 8 | RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 120K |
| 9 | } |
| 10 | |
| 11 | /* Location of protected flash area which must not be modified, because mboot lives there. */ |
| 12 | _mboot_protected_flash_start = ORIGIN(FLASH_BL); |
| 13 | _mboot_protected_flash_end_exclusive = ORIGIN(FLASH_BL) + LENGTH(FLASH_BL); |