riscv-openocd/src/flash/nor
Christopher Head 47d0930410 flash/nor/stm32: Report errors in wait_status_busy
Flash operation errors that occur during algorithm programming are
reported via the algorithm return value. However, Flash operation
errors that occur during non-algorithm work (erasing, programming
without a work area, programming the last non-multiple-of-32-bytes on
an H7, etc.) generally end with a call to stm32x_wait_status_busy,
which reads the status register and clears the error flags but fails
to actually report that something went wrong should an error flag
(other than WRPERR) be set. Return an error status from
stm32x_wait_status_busy in those cases. Correct a log message
accordingly.

Change-Id: I09369ea5f924fe58833aec1f45e52320ab4aaf43
Signed-off-by: Christopher Head <chead@zaber.com>
Reviewed-on: http://openocd.zylin.com/4519
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
2018-07-03 07:47:14 +01:00
..
Makefile.am flash/nor: Add support for TI CC26xx/CC13xx flash 2018-06-15 20:06:25 +01:00
aduc702x.c Fix usage of timeval_ms() 2016-07-19 10:45:16 +01:00
aducm360.c Fix usage of timeval_ms() 2016-07-19 10:45:16 +01:00
ambiqmicro.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
at91sam3.c flash/nor/at91sam: implement flash bank deallocation for SAM series 2018-04-10 06:19:01 +01:00
at91sam4.c flash/nor/at91sam: implement flash bank deallocation for SAM series 2018-04-10 06:19:01 +01:00
at91sam4l.c flash/nor/at91sam: implement flash bank deallocation for SAM series 2018-04-10 06:19:01 +01:00
at91sam7.c target, flash: prepare infrastructure for multi-block blank check 2018-04-10 06:16:40 +01:00
at91samd.c flash/nor/at91sam: implement flash bank deallocation for SAM series 2018-04-10 06:19:01 +01:00
ath79.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
atsamv.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
avrf.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
bluenrg-x.c Fix for warnings detected by clang static analyzer 2018-04-04 21:23:57 +01:00
cc26xx.c flash/nor: Add support for TI CC26xx/CC13xx flash 2018-06-15 20:06:25 +01:00
cc26xx.h flash/nor: Add support for TI CC26xx/CC13xx flash 2018-06-15 20:06:25 +01:00
cc3220sf.c flash/nor: Add support for TI CC3220SF internal flash 2018-06-06 15:38:25 +01:00
cc3220sf.h flash/nor: Add support for TI CC3220SF internal flash 2018-06-06 15:38:25 +01:00
cfi.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
cfi.h cfi: Add support for strangely endianness broken SoC implementations 2016-06-23 07:39:57 +01:00
core.c flash/nor/core: fix double-free crash with 'virtual' flash banks 2018-06-05 11:29:33 +01:00
core.h flash/nor: handle flash write alignment/padding in the infrastructure 2018-04-10 06:17:52 +01:00
driver.h flash/nor: implement flash bank deallocation on OpenOCD exit 2018-03-30 10:13:09 +01:00
drivers.c flash/nor: Add support for TI CC26xx/CC13xx flash 2018-06-15 20:06:25 +01:00
dsp5680xx_flash.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
efm32.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
em357.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
faux.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
fm3.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
fm4.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
imp.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
jtagspi.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
kinetis.c Fix warnings exposed by GCC8 2018-05-30 09:36:46 +01:00
kinetis_ke.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
lpc288x.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
lpc2000.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
lpc2900.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
lpcspifi.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
mdr.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
mrvlqspi.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
niietcm4.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
non_cfi.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
non_cfi.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
nrf5.c flash/nor/nrf5: remove is_erased setting and autoerase before write 2018-06-15 20:07:09 +01:00
numicro.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
ocl.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
ocl.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
pic32mx.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
psoc4.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
psoc5lp.c flash/nor/psoc5lp: fix compile issue on GCC 8.1.0 2018-06-15 20:11:36 +01:00
psoc6.c psoc6: Run flash algorithm asynchronously to improve performance 2018-04-23 20:42:06 +01:00
sim3x.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
spi.c spi: add n25q256 flash 2017-12-06 21:06:00 +00:00
spi.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
stellaris.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
stm32f1x.c flash/nor, contrib/loaders: add stm32 loaders Makefile and generated .inc 2018-04-23 20:41:50 +01:00
stm32f2x.c flash/nor/stm32: Report errors in wait_status_busy 2018-07-03 07:47:14 +01:00
stm32h7x.c flash/nor/stm32: Report errors in wait_status_busy 2018-07-03 07:47:14 +01:00
stm32l4x.c flash/nor/stm32: Report errors in wait_status_busy 2018-07-03 07:47:14 +01:00
stm32lx.c flash/nor, contrib/loaders: add stm32 loaders Makefile and generated .inc 2018-04-23 20:41:50 +01:00
stmsmi.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
str7x.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
str9x.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
str9xpec.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
tcl.c flash/nor: handle flash write alignment/padding in the infrastructure 2018-04-10 06:17:52 +01:00
tms470.c src/flash/tms470: remove testing of sectors[].is_erased state 2018-06-15 20:07:22 +01:00
virtual.c flash/nor/virtual: copy missing fields from master flash_bank structure 2018-06-05 11:29:57 +01:00
xcf.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
xmc1xxx.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00
xmc4xxx.c flash/nor: implement flash bank deallocation in drivers with simple alloc 2018-04-04 20:14:18 +01:00