openocd/src/flash/nor
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
..
aduc702x.c flash/nor: make all working area pointers local 2012-10-08 10:25:15 +00:00
at91sam3.c at91sam3: Wrong PLLA frequency calculations 2013-03-24 14:25:29 +00:00
at91sam4.c flash: Added support for at91sam4sd32c 2013-04-15 16:56:38 +00:00
at91sam7.c build: fix memory leaks 2012-08-24 16:49:56 +00:00
avrf.c flash: blank check use default_flash_blank_check 2012-05-14 09:38:26 +00:00
cfi.c armv7m: use ARM_MODE_THREAD core mode for algoorithm's 2013-02-02 16:22:25 +00:00
cfi.h flash/nor: make all working area pointers local 2012-10-08 10:25:15 +00:00
core.c flash: blank check use default_flash_blank_check 2012-05-14 09:38:26 +00:00
core.h flash: blank check use default_flash_blank_check 2012-05-14 09:38:26 +00:00
driver.h flash/nor/driver.h: typo fix 2012-05-21 08:49:15 +00:00
drivers.c flash: EFM32 flash implementation 2013-01-14 10:25:55 +00:00
dsp5680xx_flash.c dsp5680xx_flash: Remove unused flash bank structure 2012-10-08 10:31:26 +00:00
efm32.c armv7m: use ARM_MODE_THREAD core mode for algoorithm's 2013-02-02 16:22:25 +00:00
em357.c topic: STM32W support added to em357 driver 2013-04-17 21:40:51 +00:00
faux.c build: cleanup src/flash/nor directory 2012-02-06 10:54:14 +00:00
fm3.c armv7m: use ARM_MODE_THREAD core mode for algoorithm's 2013-02-02 16:22:25 +00:00
imp.h build: cleanup src/flash/nor directory 2012-02-06 10:54:14 +00:00
kinetis.c Kinetis: Flash command function matches datasheet 2013-03-13 12:29:17 +00:00
lpc288x.c build: cleanup src/flash/nor directory 2012-02-06 10:54:14 +00:00
lpc2000.c armv7m: use ARM_MODE_THREAD core mode for algoorithm's 2013-02-02 16:22:25 +00:00
lpc2900.c build: use generic name for arm_algorithm vars 2012-05-14 09:29:02 +00:00
lpcspifi.c armv7m: use ARM_MODE_THREAD core mode for algoorithm's 2013-02-02 16:22:25 +00:00
Makefile.am flash: EFM32 flash implementation 2013-01-14 10:25:55 +00:00
non_cfi.c build: cleanup src/flash/nor directory 2012-02-06 10:54:14 +00:00
non_cfi.h build: cleanup src/flash/nor directory 2012-02-06 10:54:14 +00:00
ocl.c build: cleanup src/flash/nor directory 2012-02-06 10:54:14 +00:00
ocl.h build: cleanup src/flash/nor directory 2012-02-06 10:54:14 +00:00
pic32mx.c flash/nor: make all working area pointers local 2012-10-08 10:25:15 +00:00
spi.c Added support for SPI Flash Winbond W25Q64CV 2012-11-06 14:33:45 +00:00
spi.h SPI nor drivers refactor 2012-09-26 16:17:21 +00:00
stellaris.c armv7m: use ARM_MODE_THREAD core mode for algoorithm's 2013-02-02 16:22:25 +00:00
stm32f1x.c flash: fix stm32 failed probe using incorrect flash size 2013-03-06 21:10:40 +00:00
stm32f2x.c flash: fix stm32 failed probe using incorrect flash size 2013-03-06 21:10:40 +00:00
stm32lx.c flash: fix stm32 failed probe using incorrect flash size 2013-03-06 21:10:40 +00:00
stmsmi.c SPI nor drivers refactor 2012-09-26 16:17:21 +00:00
str7x.c flash/nor: make all working area pointers local 2012-10-08 10:25:15 +00:00
str9x.c flash/nor: make all working area pointers local 2012-10-08 10:25:15 +00:00
str9xpec.c flash: Additional check for NULL in str9xpec enable_turbo 2012-03-06 13:32:48 +00:00
tcl.c tcl: fix potential memory leaks 2012-08-24 16:50:18 +00:00
tms470.c build: cleanup src/flash/nor directory 2012-02-06 10:54:14 +00:00
virtual.c build: cleanup src/flash/nor directory 2012-02-06 10:54:14 +00:00