projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
flash/stm32*: Remove the halted check in protect_check
[fw/openocd]
/
src
/
flash
/
nor
/
stm32f1x.c
diff --git
a/src/flash/nor/stm32f1x.c
b/src/flash/nor/stm32f1x.c
index 5ad0b62279d37d0f5578b55ef0c93b87cb627722..037fea07b9b634ef56e8b0a995ab176c2087aaf4 100644
(file)
--- a/
src/flash/nor/stm32f1x.c
+++ b/
src/flash/nor/stm32f1x.c
@@
-364,11
+364,6
@@
static int stm32x_protect_check(struct flash_bank *bank)
int num_bits;
int set;
- if (target->state != TARGET_HALTED) {
- LOG_ERROR("Target not halted");
- return ERROR_TARGET_NOT_HALTED;
- }
-
int retval = stm32x_check_operation_supported(bank);
if (ERROR_OK != retval)
return retval;