Is it a good or bad idea to continue startup if validation of the jtag
chain fails?
This is in reference to problems with validating the iMX31 chain.
https://lists.berlios.de/pipermail/openocd-development/2008-August/002919.html
As far as I can tell, validation does not change the state of OpenOCD,
it's just there as a healthy check on the connection.
--
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
Index: C:/workspace/openocd/src/jtag/jtag.c
===================================================================
--- C:/workspace/openocd/src/jtag/jtag.c (revision 948)
+++ C:/workspace/openocd/src/jtag/jtag.c (working copy)
@@ -1554,7 +1554,6 @@
static int jtag_init_inner(struct command_context_s *cmd_ctx)
{
- int validate_tries = 0;
jtag_device_t *device;
int retval;
@@ -1580,16 +1579,9 @@
LOG_ERROR("trying to validate configured JTAG chain anyway...");
}
- while (jtag_validate_chain() != ERROR_OK)
+ if (jtag_validate_chain() != ERROR_OK)
{
- validate_tries++;
-
- if (validate_tries > 5)
- {
- LOG_ERROR("Could not validate JTAG chain");
- return ERROR_JTAG_INVALID_INTERFACE;
- }
- alive_sleep(10);
+ LOG_ERROR("Could not validate JTAG chain, continuing
anyway...");
}
return ERROR_OK;
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development