From eb481f1cda0a6eae1aa0486acb637f985cddcc2f Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 14 Nov 2018 22:47:04 +0900 Subject: known device/sram data persistence working --- libusbhost_stm32f4.ld | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libusbhost_stm32f4.ld') diff --git a/libusbhost_stm32f4.ld b/libusbhost_stm32f4.ld index d1801d8..a1cf6d9 100644 --- a/libusbhost_stm32f4.ld +++ b/libusbhost_stm32f4.ld @@ -33,6 +33,17 @@ MEMORY /* Include the common ld script. */ INCLUDE libopencm3_stm32f4.ld +/* Extra stuff */ +SECTIONS +{ + .backup_sram : { + . = ALIGN(4); + __backup_sram_start = .; + *(.backup_sram) + __backup_sram_end = .; + } >backup +} + PROVIDE(_ram_start = ORIGIN(ram)); PROVIDE(_ram_end = ORIGIN(ram) + LENGTH(ram)); PROVIDE(_rom_start = ORIGIN(rom)); -- cgit