https://elinux.org/index.php?title=OpenOCD_Troubleshooting:_Adapter_Speed_Not_Selected&feed=atom&action=historyOpenOCD Troubleshooting: Adapter Speed Not Selected - Revision history2024-03-28T13:14:30ZRevision history for this page on the wikiMediaWiki 1.31.0https://elinux.org/index.php?title=OpenOCD_Troubleshooting:_Adapter_Speed_Not_Selected&diff=118802&oldid=prevWmat: Adding proper categories2012-04-18T03:15:21Z<p>Adding proper categories</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 03:15, 18 April 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l28" >Line 28:</td>
<td colspan="2" class="diff-lineno">Line 28:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>OpenOCD should now be able to communicate with your hardware correctly.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>OpenOCD should now be able to communicate with your hardware correctly.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:TinCanTools]]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:OpenOCD]]</ins></div></td></tr>
<!-- diff cache key elinux:diff::1.12:old-111950:rev-118802 -->
</table>Wmathttps://elinux.org/index.php?title=OpenOCD_Troubleshooting:_Adapter_Speed_Not_Selected&diff=111950&oldid=prevWmat: Porting the TCT content.2012-03-30T01:49:56Z<p>Porting the TCT content.</p>
<p><b>New page</b></p><div>You run OpenOCD, and you see this error:<br />
<br />
Error: An adapter speed is not selected in the init script. Insert a call to adapter_khz or jtag_rclk to proceed.<br />
<br />
[[File:Adapterkhzerror.png|thumb|Adapter speed error in Windows XP]]<br />
You will most likely see this error with the original TinCanTools Flyswatter an [[OpenOCD]] build that supports the Flyswatter2. OpenOCD now expects the '''flyswatter.cfg''' file to specify an adapter speed, and throws an error when it doesn't. This guide will demonstrate how to fix the problem.<br />
<br />
<br />
===Step 1: Find Your Interface Config File===<br />
<br />
Find the config file for your interface device. For the Flyswatter this file is called '''flyswatter.cfg''' located in your '''interface''' folder. Open this file in a text editor.<br />
<br />
<br />
===Step 2: Look for a Line Reading ''jtag_khz''===<br />
<br />
Search the file for a line reading ''jtag_khz'' followed by a number. The ''jtag_khz'' call has been replaced by ''adapter_khz'' in the latest version is no longer supported by OpenOCD. Replace the word ''jtag_khz'' with the word ''adapter_khz'', leaving the number unchanged.<br />
<br />
If the file does not contain a ''jtag_khz'' call, proceed to Step 3. (You may skip Step 2 with the Flyswatter. The '''flyswatter.cfg''' file distributed with [[OpenOCD]] does not contain a ''jtag_khz'' line.)<br />
<br />
<br />
===Step 3: Specify an Adapter Speed===<br />
[[File:Adapterkhzfix.png|thumb|Adding adapter_khz to flyswatter.cfg]]<br />
If you found a ''jtag_khz'' line in Step 2, skip this step. If you did not find a ''jtag_khz'' line, add a line at the bottom of the file specifying an adapter speed (in kHz). For the flyswatter, use 6000 kHz. The line should read like this:<br />
<br />
adapter_khz 6000<br />
<br />
See the image to the right. For other hardware, contact the manufacturer to obtain the correct clock speed.<br />
<br />
OpenOCD should now be able to communicate with your hardware correctly.</div>Wmat