script: label the identify/load phases in jtag_autoinit
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.
This commit is contained in:
@@ -1523,6 +1523,7 @@ static int cmd_autoinit(script_ctx *ctx, char *line)
|
|||||||
if (!fileinfo.isdirectory)
|
if (!fileinfo.isdirectory)
|
||||||
{
|
{
|
||||||
chip_id_mask = 0xFFFFFFFF;
|
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);
|
chip_id = jtagcore_get_bsdl_id(jc, filename, &chip_id_mask);
|
||||||
if (chip_id)
|
if (chip_id)
|
||||||
{
|
{
|
||||||
@@ -1537,6 +1538,7 @@ static int cmd_autoinit(script_ctx *ctx, char *line)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The BSDL ID match with the device.
|
// 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)
|
if (jtagcore_loadbsdlfile(jc, filename, dev_nb) == JTAG_CORE_NO_ERROR)
|
||||||
{
|
{
|
||||||
entityname[0] = 0;
|
entityname[0] = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user