openocd/src
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
..
flash flash/nor/stm32f1x: unify flash error reporting 2022-04-13 16:53:14 +00:00
helper helper/bits: add BIT_ULL and GENMASK macros 2022-03-26 13:35:55 +00:00
jtag drivers/cmsis-dap: Remove stray whitespace 2022-04-03 20:12:43 +00:00
pld openocd: use single line for register_commands*() 2021-11-23 11:03:38 +00:00
rtos helper/bits: add BIT_ULL and GENMASK macros 2022-03-26 13:35:55 +00:00
rtt openocd: include config.h in every file .c 2022-03-26 13:32:57 +00:00
server gdb_server: Improve logging of GDB-remote packets 2022-04-03 20:11:08 +00:00
svf openocd: fix Yoda conditions with checkpatch 2021-07-24 10:38:31 +01:00
target openocd: include config.h in every file .c 2022-03-26 13:32:57 +00:00
transport openocd: remove NULL comparisons with checkpatch [1/2] 2021-07-24 10:38:00 +01:00
xsvf openocd: fix simple cases of NULL comparison 2021-07-24 10:37:49 +01:00
hello.c openocd: fix simple cases of Yoda condition 2021-07-20 14:55:24 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Cleanup of config/includes. 2021-05-01 14:35:09 +01:00
Makefile.am build: Fix out-of-tree with --disable-dependency-tracking configure flag 2021-04-05 23:24:14 +01:00
openocd.c log: fix memory leak when log to file is enabled 2022-01-22 10:15:48 +00:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00