From 35b2022362f1350e86000104fa57f51d346f6324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Sun, 24 May 2026 00:22:48 +0200 Subject: [PATCH] script: label the identify/load phases in jtag_autoinit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit autoinit parses every bsdl twice for a matching part — once to read the IDCODE, once to actually attach it — producing two identical loader blocks with no hint why. Bracket each with an [identify] / [load] line. --- modules/script/script.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/script/script.c b/modules/script/script.c index f29975e..519041c 100644 --- a/modules/script/script.c +++ b/modules/script/script.c @@ -1523,6 +1523,7 @@ static int cmd_autoinit(script_ctx *ctx, char *line) if (!fileinfo.isdirectory) { chip_id_mask = 0xFFFFFFFF; + ctx->script_printf(ctx, MSG_INFO_0, "[identify] reading IDCODE from %s :\n", fileinfo.filename); chip_id = jtagcore_get_bsdl_id(jc, filename, &chip_id_mask); if (chip_id) { @@ -1537,6 +1538,7 @@ static int cmd_autoinit(script_ctx *ctx, char *line) } // The BSDL ID match with the device. + ctx->script_printf(ctx, MSG_INFO_0, "[load] IDCODE 0x%.8lX matches device %d, attaching %s :\n", chip_id, dev_nb, fileinfo.filename); if (jtagcore_loadbsdlfile(jc, filename, dev_nb) == JTAG_CORE_NO_ERROR) { entityname[0] = 0;