openocd/src/flash
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
..
nand build: fix memory leaks 2012-08-24 16:49:56 +00:00
nor Modified Sector Erase for AT91SAM4S 2012-10-07 07:23:12 +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 flash: add support for deprecated stm32 flash cmds 2011-07-28 12:47:49 +01:00