stm32: determine all cpu types and use common examine
[fw/openocd] / src / target / arm_adi_v5.c
index 2203eb55d44e73f21d0f3e7f8d6cef8174080dc4..1ef7c1a004aa6e202befe704984a27459ca08cda 100644 (file)
@@ -1098,6 +1098,14 @@ int ahbap_debugport_init(struct adiv5_dap *dap)
 
        LOG_DEBUG(" ");
 
+       /* test for initialized low level jtag hardware
+        * this always fails for stlink hardware
+        */
+       if (!dap->jtag_info) {
+               LOG_DEBUG("No low level jtag hardware found");
+               return ERROR_OK;
+       }
+
        /* JTAG-DP or SWJ-DP, in JTAG mode
         * ... for SWD mode this is patched as part
         * of link switchover