flash/nor/stm32f1x: Use of protection blocks, improved option bytes handling 76/4576/12
authorDominik Peklo <dom.peklo@gmail.com>
Thu, 12 Jul 2018 10:44:28 +0000 (20:44 +1000)
committerMatthias Welwarsky <matthias@welwarsky.de>
Sat, 3 Nov 2018 11:18:18 +0000 (11:18 +0000)
commitcea40152f82f52bfc718c7bda9fa4a9d70bf9cfd
treeeede28649bf43900737f4a3dfc194c280ca2ecd6
parent1e3ba2046cf93dd037fd6e5c7babf95dd2716a1f
flash/nor/stm32f1x: Use of protection blocks, improved option bytes handling

Handle write protection status in blocks instead of sectors, removing
unnecessary complexity in the process. Now closer to stm32f2x.
Support sequential modification of option bytes by read/modify/write
directly to option bytes area instead of always starting with the
currently loaded bytes from FLASH_OBR/WRPR registers.
Added new command 'options_load' to force re-load of option bytes w/o
having to power cycle target.

Change-Id: I5c76191e29c17a1e11482df06379d10ca8d6d04d
Signed-off-by: Dominik Peklo <dom.peklo@gmail.com>
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4576
Tested-by: jenkins
Reviewed-by: Jan Vojtěch <honza.vojtech@gmail.com>
doc/openocd.texi
src/flash/nor/stm32f1x.c