openocd/src/flash/nor
David Brownell 3f18900b19 NOR FLASH: only erase/unlock whole sectors
Much to my surprise, I observed a "flash erase_address ..."
command erasing data which I said should not be erased.

The issue turns out to be generic NOR flash code which was
silently, and rather dangerously, morphing partial-sector
references into unrequested whole-sector ones.

This patch removes that low-level morphing.  If desired, it
can and should be done in higher level code.  (We might need
to fix some stuff in the GDB server code.)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-12-18 10:16:52 -08:00
..
Makefile.am build: add build/src to include path 2009-12-08 10:16:10 +01:00
aduc702x.c ARM: use <target/arm.h> not armv4_5.h 2009-12-07 14:57:44 -08:00
at91sam3.c remove target.h from flash.h 2009-12-04 16:56:23 -08:00
at91sam3.h move nor drivers to src/flash/nor 2009-12-02 23:27:09 -08:00
at91sam7.c remove target.h from flash.h 2009-12-04 16:56:23 -08:00
at91sam7.h remove flash.h from tree 2009-12-04 16:56:24 -08:00
avrf.c remove target.h from flash.h 2009-12-04 16:56:23 -08:00
avrf.h remove flash.h from tree 2009-12-04 16:56:24 -08:00
cfi.c ARM: use <target/arm.h> not armv4_5.h 2009-12-07 14:57:44 -08:00
cfi.h remove flash.h from tree 2009-12-04 16:56:24 -08:00
core.c NOR FLASH: only erase/unlock whole sectors 2009-12-18 10:16:52 -08:00
core.h split flash.h into into flash/nor/*.h 2009-12-04 16:56:24 -08:00
driver.h split flash.h into into flash/nor/*.h 2009-12-04 16:56:24 -08:00
drivers.c split flash.h into into flash/nor/*.h 2009-12-04 16:56:24 -08:00
ecos.c ARM: rename armv4_5_algorithm as arm_algorithm 2009-12-04 20:19:49 -08:00
faux.c remove target.h from flash.h 2009-12-04 16:56:23 -08:00
imp.h Comment and doxygen fixes 2009-12-09 10:25:52 -08:00
lpc288x.c remove target.h from flash.h 2009-12-04 16:56:23 -08:00
lpc288x.h remove flash.h from tree 2009-12-04 16:56:24 -08:00
lpc2000.c LPC2000: rename "r13_svc" as "sp_svc" 2009-12-12 15:43:02 -08:00
lpc2000.h remove flash.h from tree 2009-12-04 16:56:24 -08:00
lpc2900.c ARM: use <target/arm.h> not armv4_5.h 2009-12-07 14:57:44 -08:00
non_cfi.c NOR: add 29LV400BC flash device 2009-12-05 11:12:59 -08:00
non_cfi.h remove flash.h from tree 2009-12-04 16:56:24 -08:00
ocl.c remove target.h from flash.h 2009-12-04 16:56:23 -08:00
ocl.h move nor drivers to src/flash/nor 2009-12-02 23:27:09 -08:00
pic32mx.c remove target.h from flash.h 2009-12-04 16:56:23 -08:00
pic32mx.h remove flash.h from tree 2009-12-04 16:56:24 -08:00
stellaris.c stellaris: fix min buffer length checks 2009-12-18 09:59:40 -08:00
stellaris.h stellaris: comments 2009-12-16 14:17:31 -08:00
stm32x.c remove target.h from flash.h 2009-12-04 16:56:23 -08:00
stm32x.h remove flash.h from tree 2009-12-04 16:56:24 -08:00
str7x.c ARM: use <target/arm.h> not armv4_5.h 2009-12-07 14:57:44 -08:00
str7x.h remove flash.h from tree 2009-12-04 16:56:24 -08:00
str9x.c ARM: rename armv4_5_algorithm as arm_algorithm 2009-12-04 20:19:49 -08:00
str9x.h remove flash.h from tree 2009-12-04 16:56:24 -08:00
str9xpec.c remove target.h from flash.h 2009-12-04 16:56:23 -08:00
str9xpec.h remove flash.h from tree 2009-12-04 16:56:24 -08:00
tcl.c Subject: flash fill[bwh] should use bulk i/o 2009-12-18 10:09:35 -08:00
tms470.c remove target.h from flash.h 2009-12-04 16:56:23 -08:00
tms470.h remove flash.h from tree 2009-12-04 16:56:24 -08:00