diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2010-03-03 21:01:16 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2010-03-03 21:01:16 -0800 |
commit | 5e78ddcea0d8303c316f687c05dfa78af27109d8 (patch) | |
tree | 563777a521940811f1d1ac8d8113aa45668bf895 /src/helper/configuration.h | |
parent | 5fdf9535cef7e43f6e99081b6d1f6bd682184803 (diff) | |
download | openocd_libswd-5e78ddcea0d8303c316f687c05dfa78af27109d8.tar.gz openocd_libswd-5e78ddcea0d8303c316f687c05dfa78af27109d8.tar.bz2 openocd_libswd-5e78ddcea0d8303c316f687c05dfa78af27109d8.tar.xz openocd_libswd-5e78ddcea0d8303c316f687c05dfa78af27109d8.zip |
NOR: trim range in flash_driver_protect()
When the beginning or end of the specified range of sectors
already has the requested protection status, don't ask the
flash driver to change those sectors.
This will among other things turn command sequences like
this into the NOPs one would expect:
flash protect_check 0
flash info 0
... reports everything as unprotected ...
flash protect 0 0 1 off
That speeds things up (by whatever work was just avoided).
Also, with Stellaris (which can't unprotect flash at page level)
this can eliminate some undesirable/false error reports. (And
finishes fixing a bug currently listed in our bug database...)
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/helper/configuration.h')
0 files changed, 0 insertions, 0 deletions