add better version of EEPROM emulation in flash (for now - only in chronometer)

This commit is contained in:
eddyem
2019-07-10 23:38:56 +03:00
parent 3a5ef823db
commit 7ac9d908fa
17 changed files with 529 additions and 47 deletions

View File

@@ -52,7 +52,7 @@ SECTIONS {
. = ALIGN(4);
_etext = .;
} >rom
.ARM.extab :
{
*(.ARM.extab* .gnu.linkonce.armextab.*)
@@ -71,6 +71,12 @@ SECTIONS {
_edata = .;
} >ram AT >rom
.myvars :
{
. = ALIGN(1024);
KEEP(*(.myvars))
} > rom
_ldata = LOADADDR(.data);
.bss :
@@ -84,4 +90,4 @@ SECTIONS {
} >ram
}
PROVIDE(_stack = ORIGIN(ram) + LENGTH(ram));
PROVIDE(_stack = ORIGIN(ram) + LENGTH(ram));