diff options
Diffstat (limited to 'src/flash/flash.c')
-rw-r--r-- | src/flash/flash.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/flash/flash.c b/src/flash/flash.c index 850dcd4c..46606d2d 100644 --- a/src/flash/flash.c +++ b/src/flash/flash.c @@ -884,7 +884,10 @@ int flash_erase_address_range(target_t *target, u32 addr, u32 length) return ERROR_FLASH_DST_OUT_OF_BANK; /* no corresponding bank found */ if (c->size == 0 || c->num_sectors == 0) + { + LOG_ERROR("Bank is invalid"); return ERROR_FLASH_BANK_INVALID; + } if (length == 0) { |