known device/sram data persistence working

This commit is contained in:
jaseg 2018-11-14 22:47:04 +09:00
parent 66f9e82c5c
commit eb481f1cda
5 changed files with 53 additions and 14 deletions

View file

@ -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));