Skip to content

Commit d5c9220

Browse files
authored
Merge pull request #12808 from OpenNuvoton/nuvoton_kvstore_flashiap
KVStore: Remove incorrect check with non-default configuration of FLASHIAP
2 parents 44b9876 + 123c254 commit d5c9220

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)