]> git.sur5r.net Git - openocd/blobdiff - src/flash/nor/tcl.c
flash/nor: fix doc/help and range test for flash protect
[openocd] / src / flash / nor / tcl.c
index 69368229d223a25795be681ec8369ce752f6cdf5..0b72a1232d5246b5fc54dcb39b006b40fae516f0 100644 (file)
@@ -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",