From f1c0133321c8fcadadd10bba5537c0a634eb183b Mon Sep 17 00:00:00 2001 From: Mathias K Date: Mon, 19 Mar 2012 19:37:55 +0100 Subject: [PATCH] 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 --- src/flash/nor/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/flash/nor/core.c b/src/flash/nor/core.c index ce3ab4822..b2bbeb7df 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; -- 2.11.4.GIT