On Fri, 2009-05-22 at 10:57 +0200, Øyvind Harboe wrote:
> Trying again...
>
> My editor is screwing things up with whitespace, hence all those irrelevant
> changes...
The second attempt was no better. Here it is done right.
Please let me know if this fixes things, and I will get it committed.
Cheers,
Zach
Index: src/target/cortex_m3.c
===================================================================
--- src/target/cortex_m3.c (revision 1903)
+++ src/target/cortex_m3.c (working copy)
@@ -1426,6 +1426,12 @@
cortex_m3_common_t *cortex_m3 = armv7m->arch_info;
swjdp_common_t *swjdp = &armv7m->swjdp_info;
+ if (!cortex_m3->jtag_info.tap->enabled)
+ {
+ LOG_ERROR("Can not examine target %s, TAP not enabled yet",
target->type->name);
+ return ERROR_FAIL;
+ }
+
if ((retval = ahbap_debugport_init(swjdp)) != ERROR_OK)
return retval;
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development