Move animation steps to NVS data

This commit is contained in:
fruchti 2020-09-19 19:54:31 +02:00
parent 1e8da90156
commit 99b3d6a36c
7 changed files with 230 additions and 12 deletions

View file

@ -12,6 +12,15 @@ SECTIONS
_end_text = .;
} >flash
/* Non-volatile storage area in flash */
.nvstore (NOLOAD) :
{
. = ALIGN(1K);
*(.nvstore*)
. = ALIGN(1K);
_end_nvstore = .;
} > flash_nvstore
/* C++ initialiser code segments */
.preinit_array :
{

View file

@ -1,7 +1,8 @@
MEMORY
{
flash (rx) : ORIGIN = 0x08000000, LENGTH = 16K
flash (rx) : ORIGIN = 0x08000000, LENGTH = 15K
flash_nvstore (rw) : ORIGIN = 0x08003c00, LENGTH = 1K
sram (xrw) : ORIGIN = 0x20000000, LENGTH = 4K
}
INCLUDE ld/common.ld
INCLUDE ld/common_nvs.ld