2021-04-28 02:26:20 -04:00
|
|
|
/*
|
|
|
|
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
|
|
|
|
}
|
2022-11-23 05:41:48 -05:00
|
|
|
|
|
|
|
/* Location from which mboot is allowed to write to flash.
|
|
|
|
Must be the start of a flash erase sector. */
|
|
|
|
_mboot_writable_flash_start = ORIGIN(FLASH_BL) + LENGTH(FLASH_BL);
|