aboutsummaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
authorTomas Vanek <vanekt@fbl.cz>2017-11-23 11:17:53 +0100
committerTomas Vanek <vanekt@fbl.cz>2018-04-10 06:17:00 +0100
commita867e36f78be231bfdf5161ff7172bcf69aa6280 (patch)
treef818ad876f2617d4d6aee4494a86c4ba1788a63b /src/flash
parenteb8912ec38c0fd6867d2b5a88b40549f791ce7bb (diff)
downloadriscv-openocd-a867e36f78be231bfdf5161ff7172bcf69aa6280.zip
riscv-openocd-a867e36f78be231bfdf5161ff7172bcf69aa6280.tar.gz
riscv-openocd-a867e36f78be231bfdf5161ff7172bcf69aa6280.tar.bz2
target armv7m: multi-block erase check
Tested on PSoC6 (Cortex-M0+ core), onboard KitProg2 in CMSIS-DAP mode, adapter_khz=1000. Plain read: flash read_bank 0 /dev/null takes 48 seconds. erase_check without this change: flash erase_check 0 takes horrible 149 seconds!! And the same command with the change applied takes 1.8 seconds. Quite a difference. Remove the erase-value=0 version of algorithm as the new one can check for any value. If the target is an insane slow clocked CPU (under 1MHz) algo timeouts. Blocks checked so far are returned and the next call uses increased timeout. Change-Id: Ic0899011256d2114112e67c0b51fab4f6230d9cd Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/4298 Tested-by: jenkins Reviewed-by: Jonas Norling <jonas.norling@cyanconnode.com> Reviewed-by: Andreas Bolsch <hyphen0break@gmail.com>
Diffstat (limited to 'src/flash')
0 files changed, 0 insertions, 0 deletions