Skip to content

Commit 9222e15

Browse files
author
Veijo Pesonen
committed
Allows having KVStore in internal and update image in external flash
Fixes a bug where it has not been possible to have KVStore in internal flash while an update image image has been kept in external storage.
1 parent e69a7c9 commit 9222e15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

features/storage/kvstore/direct_access_devicekey/DirectAccessDevicekey.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ int get_expected_internal_TDBStore_position(uint32_t *out_tdb_start_offset, uin
123123
} else if (strcmp(STR(MBED_CONF_STORAGE_STORAGE_TYPE), "TDB_EXTERNAL") == 0) {
124124
*out_tdb_start_offset = MBED_CONF_STORAGE_TDB_EXTERNAL_INTERNAL_BASE_ADDRESS;
125125
tdb_size = MBED_CONF_STORAGE_TDB_EXTERNAL_RBP_INTERNAL_SIZE;
126+
} else if (strcmp(STR(MBED_CONF_STORAGE_STORAGE_TYPE), "TDB_INTERNAL") == 0) {
127+
*out_tdb_start_offset = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS;
128+
tdb_size = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE;
126129
} else if (strcmp(STR(MBED_CONF_STORAGE_STORAGE_TYPE), "default") == 0) {
127130
#if COMPONENT_QSPIF || COMPONENT_SPIF || COMPONENT_DATAFLASH
128131
*out_tdb_start_offset = MBED_CONF_STORAGE_TDB_EXTERNAL_INTERNAL_BASE_ADDRESS;

0 commit comments

Comments
 (0)