diff options
author | Mathias K <kesmtp@freenet.de> | 2012-03-19 19:37:55 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2012-03-19 19:50:18 +0000 |
commit | f1c0133321c8fcadadd10bba5537c0a634eb183b (patch) | |
tree | 37249c512be4a560f43abc40cf0a19a3e5b4b7a3 /src | |
parent | b0cab3d8090e64bbcbba874cd57b21ab67548c0b (diff) | |
download | riscv-openocd-f1c0133321c8fcadadd10bba5537c0a634eb183b.zip riscv-openocd-f1c0133321c8fcadadd10bba5537c0a634eb183b.tar.gz riscv-openocd-f1c0133321c8fcadadd10bba5537c0a634eb183b.tar.bz2 |
Add warn message if no flash bank found for the current image address.
Add a warn message to inform the user that something is wrong
with the flash settings or command parameters.
Change-Id: Ia55868b2abf2a17845e51620b0f29b2809d841c2
Signed-off-by: Mathias K <kesmtp@freenet.de>
Reviewed-on: http://openocd.zylin.com/280
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/flash/nor/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flash/nor/core.c b/src/flash/nor/core.c index ce3ab48..b2bbeb7 100644 --- a/src/flash/nor/core.c +++ b/src/flash/nor/core.c @@ -595,6 +595,7 @@ int flash_write_unlock(struct target *target, struct image *image, if (retval != ERROR_OK) goto done; if (c == NULL) { + LOG_WARNING("no flash bank found for address %x", run_address); section++; /* and skip it */ section_offset = 0; continue; |