/* Define stack size */ _Stack_Size = 0x2000;
/ Interrupt vector table goes right at the start of Flash / .isr_vector : ALIGN(4)
KEEP( (.isr_vector)) > FLASH
/* Internal Flash */ FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
*(.text) *(.text*) > FLASH
Here is a practical walkthrough of what a typical embedded .mpl looks like and how to edit it safely. /* File: stm32f4_flash.mpl */ /* Defines memory for STM32F407VG */ MEMORY
_sdata = .; *(.data) *(.data*) _edata = .; > SRAM AT > FLASH