openocd/src
Elliott Partridge 7bcf1d838d STM32F2x: Don't clear FLASH_OPTCR bits when locking register
stm32x_write_options is locking the FLASH_OPTCR register by
writing 0x00000001 to it, which clears the other bits. This
causes problems with subsequent flash operations; the hardware
is probably seeing the write protection bits in the register
set to '0' (protect), causing a WRPERR.
This patch ORs the value of the register with 0x00000001, so that
the only change is the lock bit itself.

Change-Id: I0e3ca9aa6563ce1b57a01fc0faf7563b6b85f620
Signed-off-by: Elliott Partridge <elliott.partridge@gmail.com>
Reviewed-on: http://openocd.zylin.com/2155
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-06-01 17:38:42 +00:00
..
flash STM32F2x: Don't clear FLASH_OPTCR bits when locking register 2014-06-01 17:38:42 +00:00
helper Update to the current Jim Tcl 2014-05-09 20:12:17 +00:00
jtag jtag/drivers/stlink: allow to reconnect seamlessly after polling failure 2014-06-01 17:28:49 +00:00
pld update files to correct FSF address 2013-06-05 19:52:42 +00:00
rtos Don't cast return value of [cm]alloc 2014-03-30 03:53:45 +00:00
server server: fix confusing wording for incoming tcp connections 2014-05-31 12:04:31 +00:00
svf svf: Fix debug and error messages that print hex buffer 2014-05-05 20:25:10 +00:00
target Disable multiprocessor-id read on ARMv7-R cores 2014-06-01 17:37:56 +00:00
transport Don't cast return value of [cm]alloc 2014-03-30 03:53:45 +00:00
xsvf update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
main.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
Makefile.am Makefile.am: fix build for libftdi1, pass CFLAGS where appropriate 2014-04-14 18:09:40 +00:00
openocd.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
openocd.h update files to correct FSF address 2013-06-05 19:52:42 +00:00