aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schink <openocd-dev@marcschink.de>2019-09-11 11:08:29 +0200
committerTomas Vanek <vanekt@fbl.cz>2019-09-24 05:46:52 +0100
commit181d594205f91969b0effdbc97e3d689d28e4cb3 (patch)
tree81360d3c26992c84afaea5d97abbd259132911c7
parent85a460d5a38ba7ce0d6090e1d2af4d45cd0f9592 (diff)
downloadriscv-openocd-181d594205f91969b0effdbc97e3d689d28e4cb3.zip
riscv-openocd-181d594205f91969b0effdbc97e3d689d28e4cb3.tar.gz
riscv-openocd-181d594205f91969b0effdbc97e3d689d28e4cb3.tar.bz2
flash/nor/tcl: Fix usage of 'flash erase_sector' command
Change-Id: I2141e377a0531cab8d1140049a2ee7721d30cfdc Signed-off-by: Marc Schink <openocd-dev@marcschink.de> Reviewed-on: http://openocd.zylin.com/5299 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
-rw-r--r--src/flash/nor/tcl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c
index b336cff..bd313a0 100644
--- a/src/flash/nor/tcl.c
+++ b/src/flash/nor/tcl.c
@@ -985,7 +985,7 @@ static const struct command_registration flash_exec_command_handlers[] = {
.name = "erase_sector",
.handler = handle_flash_erase_command,
.mode = COMMAND_EXEC,
- .usage = "bank_id first_sector_num last_sector_num",
+ .usage = "bank_id first_sector_num (last_sector_num|'last')",
.help = "Erase a range of sectors in a flash bank.",
},
{