known device/sram data persistence working
This commit is contained in:
parent
66f9e82c5c
commit
eb481f1cda
5 changed files with 53 additions and 14 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue