openocd/src/flash
Tomas Vanek b801452d42 flash/nor/stm32f1x: unify flash error reporting
stm32x_wait_status_busy() has two side effects in case of flash programming error:
- reports error
- clears error bit in status register

Use stm32x_wait_status_busy() to report also flash error during target
algo flash write.

While on it use more descriptive error codes in stm32x_wait_status_busy().

Change-Id: I6e1cffc2aa5411b918a23ed62d5194910888a9d1
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/6709
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
2022-04-13 16:53:14 +00:00
..
nand openocd: use single line for register_commands*() 2021-11-23 11:03:38 +00:00
nor flash/nor/stm32f1x: unify flash error reporting 2022-04-13 16:53:14 +00:00
common.c openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
common.h Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
Makefile.am mflash: Remove this broken flash driver 2019-07-28 21:17:47 +01:00
startup.tcl flash/nor/stm32f1x: Add support for GD32E23x 2021-11-15 15:35:50 +00:00