X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fstm32lx.c;h=ec696d2b376a1314be506dc64fc5a66612412c27;hp=7093fa4cbb6996f790fb42379c36632712a50125;hb=3646e86c974948fdae4bd0771377e1910966bc8e;hpb=9c298cd27874c77bd9f5aa84c0380349f002cffa diff --git a/src/flash/nor/stm32lx.c b/src/flash/nor/stm32lx.c index 7093fa4cbb..ec696d2b37 100644 --- a/src/flash/nor/stm32lx.c +++ b/src/flash/nor/stm32lx.c @@ -158,11 +158,6 @@ static int stm32lx_protect_check(struct flash_bank *bank) uint32_t wrpr; - if (target->state != TARGET_HALTED) { - LOG_ERROR("Target not halted"); - return ERROR_TARGET_NOT_HALTED; - } - /* * Read the WRPR word, and check each bit (corresponding to each * flash sector