openocd/src/flash
Tomas Vanek 3f6ab8e6a6 flash/nor/stm32f2x: fix erase on STM32F413/423
Theese devices do not have a gap in sector numbering.
The driver translates sectors numbers 12 13... to 16 17... as used on dual
bank flash devices. Therefore erase of sector 12 and above fails with error
	'stm32x device protected'
on F413/423.

Drop sector number translation for devices without has_large_mem flag.

Change-Id: I65531c0dfe02e2fd0f3d68f0615e0926e9901391
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4299
Tested-by: jenkins
Reviewed-by: Andreas Bolsch <hyphen0break@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2017-12-12 21:16:24 +00:00
..
nand Fix GCC7 warnings about switch-case fallthroughs 2017-10-23 10:54:16 +01:00
nor flash/nor/stm32f2x: fix erase on STM32F413/423 2017-12-12 21:16:24 +00:00
common.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
common.h flash/nor: at91samd protection bits write fix 2016-12-08 12:19:19 +00:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
mflash.c Fix GCC7 warnings about switch-case fallthroughs 2017-10-23 10:54:16 +01:00
mflash.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
startup.tcl Tcl exception codes cleanup, shutdown command amendments 2015-04-14 12:11:48 +01:00