]> www.infradead.org Git - users/borneoa/openocd-next.git/commitdiff
flash: stellaris: fix deprecated command master next
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 6 Apr 2025 12:59:50 +0000 (14:59 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 19 Apr 2025 09:25:09 +0000 (09:25 +0000)
The driver directly runs a TCL command that has been renamed with
commit 4d99e77419e3 ("jtag/hla: Restructure commands"), while the
original name has been deprecated.

Update the TCL command to the new syntax.

Change-Id: I2fc9ef9a209bae1d78951e253d54164b2ac00cdd
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Fixes: 4d99e77419e3 ("jtag/hla: Restructure commands")
Reviewed-on: https://review.openocd.org/c/openocd/+/8832
Reviewed-by: zapb <dev@zapb.de>
Tested-by: jenkins
src/flash/nor/stellaris.c

index 1f53b2f35e7f16cad3e13b230852f6b99e41bed3..f7dcc6f0e349c01c87e57740a74a683223046800 100644 (file)
@@ -1342,7 +1342,7 @@ COMMAND_HANDLER(stellaris_handle_recover_command)
         * cycle to recover.
         */
 
-       Jim_Eval_Named(CMD_CTX->interp, "catch { hla_command \"debug unlock\" }", NULL, 0);
+       Jim_Eval_Named(CMD_CTX->interp, "catch { hla command \"debug unlock\" }", NULL, 0);
        if (!strcmp(Jim_GetString(Jim_GetResult(CMD_CTX->interp), NULL), "0")) {
                retval = ERROR_OK;
                goto user_action;