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.
pull/12808/head
Chun-Chieh Li 2020-04-15 09:38:59 +08:00
parent 35c93011ea
commit 123c254f52
1 changed files with 4 additions and 0 deletions

View File

@ -1107,6 +1107,10 @@ int kv_get_flash_bounds_from_config(bd_addr_t *start_address, bd_size_t *size)
return MBED_ERROR_INVALID_SIZE;
}
}
// Non-default configuration. Maybe in front of application, so in front of FLASHIAP_APP_ROM_END_ADDR. Must skip after-application check below.
flash.deinit();
return MBED_SUCCESS;
}
flash.deinit();