From 3d48137c00511b3f2d35511482d1a76f8d06382d Mon Sep 17 00:00:00 2001 From: root Date: Fri, 26 Feb 2021 12:12:38 +0000 Subject: works --- app/roofclock.ld | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app/roofclock.ld (limited to 'app/roofclock.ld') diff --git a/app/roofclock.ld b/app/roofclock.ld new file mode 100644 index 0000000..325e7ce --- /dev/null +++ b/app/roofclock.ld @@ -0,0 +1,20 @@ +/* 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 libopencm3_stm32f4.ld + +dfu_shared_location = ORIGIN(ram) + LENGTH(ram) - 1024; + +SECTIONS +{ + .dfu_shared dfu_shared_location :{ + dfu_flag = .; + } +} -- cgit v1.2.3