]> git.sur5r.net Git - openocd/commit
flash: fix bug in error propagation of flash write_image
authorØyvind Harboe <oyvind.harboe@zylin.com>
Mon, 14 Jun 2010 10:08:46 +0000 (12:08 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Mon, 14 Jun 2010 10:27:58 +0000 (12:27 +0200)
commitb6a82540654f02dbf4caaed1be538044220dd3dc
tree86405f1a4bb5799ed07d8dfed44c0d66f2001e39
parentf3ae52cace69f9568bac719d50af3a62993e96ad
flash: fix bug in error propagation of flash write_image

when a write/unlock/erase failed during write_image, then
an error was not propagated back up so e.g. flash write
image from tcl scripts would not throw an exception.

Also flash filling speed was printed even when the
operation failed. Output is now less confusing.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/flash/nor/cfi.c
src/flash/nor/core.c
src/flash/nor/tcl.c