openocd/src/flash/nor
Olivier Schonken e69b94295e Modified Sector Erase for AT91SAM4S
In FLASHD_ErasePages AT91C_EFC_FCMD_EPA is used to erase sectors.
According to the datasheet FARG[15:2] defines the page from which
the erase will start.This page must be modulo 4, 8, 16 or 32
according to the number of pages to erase. FARG[1:0] defines the
number of pages to be erased. Previously (firstpage << 2) was used
to conform to this, seems it should not be shifted... Changed it
to (firstPage) | erasePages.

Change-Id: I791cc7fc4faf056623ad5a6c7e860315306098a1
Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com>
Reviewed-on: http://openocd.zylin.com/897
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
2012-10-07 07:23:12 +00:00
..
aduc702x.c build: use generic name for arm_algorithm vars 2012-05-14 09:29:02 +00:00
at91sam3.c flash: fix sam3 page read/write address computation error 2012-09-07 06:16:57 +00:00
at91sam4.c Modified Sector Erase for AT91SAM4S 2012-10-07 07:23:12 +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 cfi: fix type-punning warnings in cfi_spansion_write_block 2012-08-24 16:52:27 +00:00
cfi.h build: cleanup src/flash/nor directory 2012-02-06 10:54:14 +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 topic: Added support for the SAM4S variants 2012-04-26 10:58:14 +00:00
dsp5680xx_flash.c build: cleanup src/flash/nor directory 2012-02-06 10:54:14 +00:00
em357.c flash: blank check use default_flash_blank_check 2012-05-14 09:38:26 +00:00
faux.c build: cleanup src/flash/nor directory 2012-02-06 10:54:14 +00:00
fm3.c flash: blank check use default_flash_blank_check 2012-05-14 09:38:26 +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 flash: remove lpc2000 clang warnings 2012-08-24 16:50:25 +00:00
lpc2900.c build: use generic name for arm_algorithm vars 2012-05-14 09:29:02 +00:00
Makefile.am topic: Added support for the SAM4S variants 2012-04-26 10:58:14 +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 Pic32mx: make row programming work with any offset 2012-08-29 06:43:08 +00:00
stellaris.c flash: blank check use default_flash_blank_check 2012-05-14 09:38:26 +00:00
stm32f1x.c flash: add stm32f3 rev 2 flash support 2012-10-04 15:58:36 +00:00
stm32f2x.c flash: reduce code duplication in stm32 flash probe 2012-07-30 06:33:58 +00:00
stm32lx.c flash: reduce code duplication in stm32 flash probe 2012-07-30 06:33:58 +00:00
stmsmi.c build: cleanup src/flash/nor directory 2012-02-06 10:54:14 +00:00
str7x.c build: use generic name for arm_algorithm vars 2012-05-14 09:29:02 +00:00
str9x.c build: use generic name for arm_algorithm vars 2012-05-14 09:29:02 +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