openocd/src/flash
Ben Nahill 2cb486213e topic: STM32W support added to em357 driver
The em357 driver only supported one page configuration (192k in 96 2048k)
pages. This is fine for em357 chips since that's the size they have, but
ST's STM32W chips (pretty much the same) have different flash
configurations available (64, 128, 192, 256k). I can't find anywhere
that would indicate the size of the chip anywhere in memory so the
selection must be manual, using the 'size' parameter. For backwards
compatibility, any size not known to be in use defaults to the 192k
configuration. I don't have any em357 devices to test, but I also found
that I had to re-assert the FPEC clock enable before performing an
erase. This is a single line and shouldn't break any configurations.

My testing so far has only been with a 64k device with 8k of RAM.

Change-Id: Ic0ac400a9696efaa09d1407dd4a4d456bc2c318b
Signed-off-by: Ben Nahill <bnahill@gmail.com>
Reviewed-on: http://openocd.zylin.com/1336
Tested-by: jenkins
Reviewed-by: Peter Stuge <peter@stuge.se>
2013-04-17 21:40:51 +00:00
..
nand Added support for ARMv7-M in arm io. 2013-04-02 15:11:02 +00:00
nor topic: STM32W support added to em357 driver 2013-04-17 21:40:51 +00:00
ocl/at91sam7x change #include "ocl.h" to <flash/nor/ocl.h> 2009-12-03 04:24:49 -08:00
Makefile.am build: add common.mk 2010-11-18 14:05:56 +00:00
common.c build: cleanup src/flash directory 2012-02-06 10:51:49 +00:00
common.h build: cleanup src/flash directory 2012-02-06 10:51:49 +00:00
mflash.c build: fix clang warnings 2012-08-24 16:51:00 +00:00
mflash.h build: cleanup src/flash directory 2012-02-06 10:51:49 +00:00
startup.tcl program: do not poll target after reset run 2013-04-17 09:52:40 +00:00