File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
features/storage/kvstore/tdbstore Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 24
24
#include " mbed_error.h"
25
25
#include " mbed_wait_api.h"
26
26
#include " MbedCRC.h"
27
+ // Bypass the check of NVStore co existance if compiled for TARGET_TFM
28
+ #if !(TARGET_TFM_BYPASS_NVSTORE_CHECK)
27
29
#include " SystemStorage.h"
30
+ #endif
28
31
29
32
using namespace mbed ;
30
33
@@ -990,13 +993,18 @@ int TDBStore::init()
990
993
goto end;
991
994
}
992
995
996
+ // Bypass the check of NVStore co existance if compiled for TARGET_TFM
997
+ #if !(TARGET_TFM_BYPASS_NVSTORE_CHECK)
998
+
993
999
// Check if we are on internal memory && try to set the internal memory for TDBStore use.
994
1000
if (strcmp (_bd->get_type (), " FLASHIAP" ) == 0 &&
995
1001
avoid_conflict_nvstore_tdbstore (TDBSTORE) == MBED_ERROR_ALREADY_INITIALIZED) {
996
1002
997
1003
MBED_ERROR (MBED_ERROR_ALREADY_INITIALIZED, " TDBStore in internal memory can not be initialize when NVStore is in use" );
998
1004
}
999
1005
1006
+ #endif
1007
+
1000
1008
_max_keys = initial_max_keys;
1001
1009
1002
1010
ram_table = new ram_table_entry_t [_max_keys];
You can’t perform that action at this time.
0 commit comments