@@ -245,7 +245,7 @@ void test_direct_access_to_device_inject_root()
245
245
uint32_t key[DEVICE_KEY_16BYTE / sizeof (uint32_t )];
246
246
KVMap &kv_map = KVMap::get_instance ();
247
247
KVStore *inner_store = kv_map.get_internal_kv_instance (NULL );
248
- TEST_ASSERT_NOT_EQUAL ( NULL , inner_store );
248
+ TEST_SKIP_UNLESS_MESSAGE (inner_store != NULL , " Test skipped. No KVStore Internal " );
249
249
250
250
BlockDevice *flash_bd = kv_map.get_internal_blockdevice_instance (" " );
251
251
TEST_ASSERT_NOT_EQUAL (NULL , flash_bd);
@@ -271,6 +271,20 @@ void test_direct_access_to_device_inject_root()
271
271
internal_start_address = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS;
272
272
internal_rbp_size = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE;
273
273
is_conf_tdb_internal = true ;
274
+ } else if (strcmp (STR (MBED_CONF_STORAGE_STORAGE_TYPE), " default" ) == 0 ) {
275
+ #if COMPONENT_QSPIF || COMPONENT_SPIF || COMPONENT_DATAFLASH
276
+ internal_start_address = MBED_CONF_STORAGE_TDB_EXTERNAL_INTERNAL_BASE_ADDRESS;
277
+ internal_rbp_size = MBED_CONF_STORAGE_TDB_EXTERNAL_RBP_INTERNAL_SIZE;
278
+ #elif COMPONENT_SD
279
+ internal_start_address = MBED_CONF_STORAGE_FILESYSTEM_INTERNAL_BASE_ADDRESS;
280
+ internal_rbp_size = MBED_CONF_STORAGE_FILESYSTEM_RBP_INTERNAL_SIZE;
281
+ #elif COMPONENT_FLASHIAP
282
+ internal_start_address = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_BASE_ADDRESS;
283
+ internal_rbp_size = MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE;
284
+ is_conf_tdb_internal = true ;
285
+ #else
286
+ TEST_SKIP_UNLESS_MESSAGE (false , " Test skipped. No KVStore Internal" );
287
+ #endif
274
288
} else {
275
289
TEST_SKIP_UNLESS_MESSAGE (false , " Test skipped. No KVStore Internal" );
276
290
}
0 commit comments