From: Mathias K Date: Mon, 19 Mar 2012 18:37:55 +0000 (+0100) Subject: Add warn message if no flash bank found for the current image address. X-Git-Tag: v0.6.0-rc1~178 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f1c0133321c8fcadadd10bba5537c0a634eb183b;p=openocd 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 Reviewed-on: http://openocd.zylin.com/280 Tested-by: jenkins Reviewed-by: Spencer Oliver --- diff --git a/src/flash/nor/core.c b/src/flash/nor/core.c index ce3ab482..b2bbeb7d 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;