mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-13 17:05:42 -04:00
Do note delete or corrupt preloaded app 0 when storing preloaded app 1
This commit is contained in:
parent
a86cd4a618
commit
feca8f19f4
2 changed files with 11 additions and 9 deletions
|
@ -36,7 +36,7 @@
|
|||
// partition table
|
||||
|
||||
#define N_PRELOADED_APP 2
|
||||
#define ADDR_PRE_LOADED_APP (ADDR_PARTITION_TABLE + SIZE_PARTITION_TABLE)
|
||||
#define ADDR_PRE_LOADED_APP_0 (ADDR_PARTITION_TABLE + SIZE_PARTITION_TABLE)
|
||||
#define SIZE_PRE_LOADED_APP 0x20000UL // 128KiB
|
||||
|
||||
// Pre-loaded app present and authenticated
|
||||
|
@ -44,7 +44,7 @@
|
|||
// Pre-loaded app present but not yet authenticated
|
||||
#define PRE_LOADED_STATUS_PRESENT 0x02
|
||||
|
||||
#define ADDR_STORAGE_AREA (ADDR_PRE_LOADED_APP + (N_PRELOADED_APP * SIZE_PRE_LOADED_APP))
|
||||
#define ADDR_STORAGE_AREA (ADDR_PRE_LOADED_APP_0 + (N_PRELOADED_APP * SIZE_PRE_LOADED_APP))
|
||||
#define SIZE_STORAGE_AREA 0x20000UL // 128KiB
|
||||
#define N_STORAGE_AREA 4
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue