only if we do not have enough ram do we continue. Signed-off-by: Øyvind Harboe <oyvind.har...@zylin.com> --- src/flash/nor/stm32x.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/flash/nor/stm32x.c b/src/flash/nor/stm32x.c index c0e464b..d874141 100644 --- a/src/flash/nor/stm32x.c +++ b/src/flash/nor/stm32x.c @@ -668,6 +668,9 @@ static int stm32x_write(struct flash_bank *bank, uint8_t *buffer, } } + if ((retval != ERROR_OK) && (retval != ERROR_TARGET_RESOURCE_NOT_AVAILABLE)) + return retval; + while (words_remaining > 0) { uint16_t value; -- 1.7.0.4 _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development