.mpl Files -

/* Program code */ .text : ALIGN(4)

FLASH (RX) : ORIGIN = 0x08000000, LENGTH = 512K SRAM (RWX) : ORIGIN = 0x20000000, LENGTH = 128K

KEEP( (.isr_vector)) > FLASH

/* Internal RAM */ CCMRAM (rw) : ORIGIN = 0x10000000, LENGTH = 64K SRAM (rw) : ORIGIN = 0x20000000, LENGTH = 128K

/ Interrupt vector table goes right at the start of Flash / .isr_vector : ALIGN(4) .mpl files

/* Initialized data (copied from Flash to RAM at boot) */ .data : ALIGN(4)

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 /* Program code */

*(.text) *(.text*) > FLASH