X-Git-Url: https://git.sur5r.net/?p=openocd;a=blobdiff_plain;f=src%2Fflash%2Fnor%2Ftcl.c;h=0b72a1232d5246b5fc54dcb39b006b40fae516f0;hp=69368229d223a25795be681ec8369ce752f6cdf5;hb=93bc4ec40ffb9c30f170af3f1e3551c4b198507f;hpb=390c9aca1f9400d956020b3d1657237bcc1ffe68 diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c index 69368229..0b72a123 100644 --- a/src/flash/nor/tcl.c +++ b/src/flash/nor/tcl.c @@ -936,10 +936,11 @@ static const struct command_registration flash_exec_command_handlers[] = { .name = "protect", .handler = handle_flash_protect_command, .mode = COMMAND_EXEC, - .usage = "bank_id first_sector [last_sector|'last'] " + .usage = "bank_id first_block [last_block|'last'] " "('on'|'off')", - .help = "Turn protection on or off for a range of sectors " - "in a given flash bank.", + .help = "Turn protection on or off for a range of protection " + "blocks or sectors in a given flash bank. " + "See 'flash info' output for a list of blocks.", }, { .name = "padded_value",