/* Linker script for STM32F407VET6, 512K flash, 192K RAM. */ /* Define memory regions. */ MEMORY { rom (rx) : ORIGIN = 0x08004000, LENGTH = 496K ram (xrw) : ORIGIN = 0x20000000, LENGTH = 128K } /* Include the common ld script. */ INCLUDE cortex-m-generic.ld dfu_shared_location = ORIGIN(ram) + LENGTH(ram) - 1024; SECTIONS { .dfu_shared dfu_shared_location :{ dfu_flag = .; } }