Skip to content

Commit 123c254

Browse files
committed
KVStore: Remove incorrect check with non-default configuration FLASHIAP
With non-default configuration FLASHIAP, the region can be defined in front of application. The after-application check must be skipped.
1 parent 35c9301 commit 123c254

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

features/storage/kvstore/conf/kv_config.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,10 @@ int kv_get_flash_bounds_from_config(bd_addr_t *start_address, bd_size_t *size)
11071107
return MBED_ERROR_INVALID_SIZE;
11081108
}
11091109
}
1110+
1111+
// Non-default configuration. Maybe in front of application, so in front of FLASHIAP_APP_ROM_END_ADDR. Must skip after-application check below.
1112+
flash.deinit();
1113+
return MBED_SUCCESS;
11101114
}
11111115

11121116
flash.deinit();

0 commit comments

Comments
 (0)