arm-jtag-ew: In armjtagew_init(), set initial JTAG speed to 32 kHz (before TAP initia...
authorSimon Barner <barner@gmx.de>
Fri, 16 Sep 2011 19:13:39 +0000 (21:13 +0200)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 8 Oct 2011 21:09:42 +0000 (23:09 +0200)
This prevents rare communication errors during startup.

src/jtag/drivers/arm-jtag-ew.c

index 7712a9e2009e31795c3d15b034fa5432a72ccabe..d42756c45b4f84d2f95061ec05007602a231aa1b 100644 (file)
@@ -256,6 +256,9 @@ static int armjtagew_init(void)
                LOG_INFO("ARM-JTAG-EW initial read failed, don't worry");
        }
 
+       // Initial JTAG speed (for reset and initialization): 32 kHz
+       armjtagew_speed(32);
+
        LOG_INFO("ARM-JTAG-EW JTAG Interface ready");
 
        armjtagew_reset(0, 0);