openocd/src
David Brownell 73566405b6 NOR: add optional "flash erase_address" sector padding
Add a NOR flash mechanism where erase_address ranges can be padded
out to sector boundaries, triggering a diagnostic:

  > flash erase_address 0x0001f980 16
  address range 0x0001f980 .. 0x0001f98f is not sector-aligned
  Command handler execution failed
  in procedure 'flash' called at file "command.c", line 647
  called at file "command.c", line 361
  >

  > flash erase_address pad 0x0001f980 16
  Adding extra erase range, 0x0001f800 to 0x0001f97f
  Adding extra erase range, 0x0001f990 to 0x0001fbff
  erased address 0x0001f980 (length 16) in 0.095975s (0.163 kb/s)
  >

This addresses what would otherwise be something of a functional
regression.  An earlier version of the interface had a dangerous
problem:  it would silently erase data outside the range it was
told to erase.  Fixing that bug turned up some folk who relied on
that unsafe behavior.  (The classic problem with interface bugs!)
Now they can get that behavior again.  If they really need it,
just specify "pad".

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2010-01-13 23:33:25 -08:00
..
flash NOR: add optional "flash erase_address" sector padding 2010-01-13 23:33:25 -08:00
helper debug: make logging of commands terser 2010-01-13 08:32:15 +01:00
jtag target: return JIM_OK instead of ERROR_OK 2010-01-11 15:01:02 +01:00
pld PLD: usage/help updates 2010-01-08 23:23:55 -08:00
server NOR: add optional "flash erase_address" sector padding 2010-01-13 23:33:25 -08:00
svf *SVF: help/usage updates 2010-01-08 20:16:05 -08:00
target Cortex-M3: improved core exception handling 2010-01-13 03:17:23 -08:00
xsvf *SVF: help/usage updates 2010-01-08 20:16:05 -08:00
Makefile.am Driver for USB-JTAG, Altera USB-Blaster and compatibles 2009-12-26 15:05:06 -08:00
ecosboard.c zy1000: add zy1000_ prefix to uart command 2009-12-30 13:13:31 +01:00
hello.c Doc/examples: clarify usage messages 2010-01-08 23:13:39 -08:00
hello.h improve command handling examples 2009-11-25 10:29:05 -08:00
main.c add openocd.h for top-level declarations 2009-11-14 07:29:16 -08:00
openocd.c server: add server_preinit which is called before config file is parsed. 2009-12-11 10:26:15 +00:00
openocd.h remove #if logic for openocd_sleep_*lude 2009-12-02 13:26:26 -08:00