openocd/src/flash/nor
Spencer Oliver 468a4b65ea flash: fix stm32 failed probe using incorrect flash size
This fixes an issue if the device is manually probed after the initial probe
fails due to being unable to read flash size register. In this situation the
driver assumes the user has overridden the flash size when infact this may
not be the case.

It also seems on the older stm32f1 devices the flash register is not readable
when locked, this does not seem to apply to the newer parts - f0, f3, f4.

Change-Id: I125f872fcb2d962ca6705f97b62d957e2b31303b
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/1187
Tested-by: jenkins
Reviewed-by: Johan Almquist <johan.almquist@assaabloy.com>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
2013-03-06 21:10:40 +00:00
..
aduc702x.c flash/nor: make all working area pointers local 2012-10-08 10:25:15 +00:00
at91sam3.c flash: fix at91sam3/4 driver typos 2012-10-17 09:25:11 +00:00
at91sam4.c flash: fix at91sam3/4 driver typos 2012-10-17 09:25:11 +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 armv7m: use ARM_MODE_THREAD core mode for algoorithm's 2013-02-02 16:22:25 +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: bugfix in kinetis_write() fallback path 2012-08-29 06:26:02 +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