Merge pull request #12808 from OpenNuvoton/nuvoton_kvstore_flashiap

KVStore: Remove incorrect check with non-default configuration of FLASHIAP
pull/12917/head
Martin Kojtal 2020-05-12 14:11:37 +02:00 committed by GitHub
commit d5c9220bdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();