<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://elinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://elinux.org/index.php?title=Beagleboard_Troubleshooting:_JTAG_Tap_Unexpected&amp;feed=atom&amp;action=history</id>
		<title>Beagleboard Troubleshooting: JTAG Tap Unexpected - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://elinux.org/index.php?title=Beagleboard_Troubleshooting:_JTAG_Tap_Unexpected&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Beagleboard_Troubleshooting:_JTAG_Tap_Unexpected&amp;action=history"/>
		<updated>2013-05-20T19:52:26Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21alpha</generator>

	<entry>
		<id>http://elinux.org/index.php?title=Beagleboard_Troubleshooting:_JTAG_Tap_Unexpected&amp;diff=118676&amp;oldid=prev</id>
		<title>Wmat: Adding proper categories</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Beagleboard_Troubleshooting:_JTAG_Tap_Unexpected&amp;diff=118676&amp;oldid=prev"/>
				<updated>2012-04-18T03:02:07Z</updated>
		
		<summary type="html">&lt;p&gt;Adding proper categories&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 03:02, 18 April 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 66:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 66:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; jtag_rclk 1000&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; jtag_rclk 1000&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:TinCanTools]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:OpenOCD]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wmat</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=Beagleboard_Troubleshooting:_JTAG_Tap_Unexpected&amp;diff=115064&amp;oldid=prev</id>
		<title>Wmat: Porting TinCanTools wiki content.</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=Beagleboard_Troubleshooting:_JTAG_Tap_Unexpected&amp;diff=115064&amp;oldid=prev"/>
				<updated>2012-04-11T18:18:32Z</updated>
		
		<summary type="html">&lt;p&gt;Porting TinCanTools wiki content.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;''This page is specific to the Beagleboard. For non-board-specific troubleshooting, see [[OpenOCD Troubleshooting: JTAG Tap Unexpected]].''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You start [[OpenOCD]] with the [[Flyswatter]] or [[Flyswatter2]] and the {{BEAGLEBOARD_PRODUCTLINK}} and see an error like this:&lt;br /&gt;
&lt;br /&gt;
[[Image:beagle_ocdstartup_jtagfailed.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Info : JTAG tap: omap3530.jrc tap/device found: '''0x000000ff''' (mfg: 0x07f, part: 0x0000, ver: 0x0)&lt;br /&gt;
 Warn : JTAG tap: omap3530.jrc       UNEXPECTED: '''0x000000ff''' (mfg: 0x07f, part: 0x0000, ver: 0x0)&lt;br /&gt;
 Error: JTAG tap: omap3530.jrc  expected 1 of 1: 0x0b7ae02f (mfg: 0x017, part: 0xb7ae, ver: 0x0)&lt;br /&gt;
&lt;br /&gt;
OpenOCD has read the board's CPU tap ID as '''0x000000ff'''. If you see the value '''0x000000ff''' or '''0x00000000''', OpenOCD has failed to read the tap ID correctly. This guide will walk you through troubleshooting the issue.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Solution 1: Restart with ''-c &amp;quot;init&amp;quot; -c &amp;quot;reset init&amp;quot;''==&lt;br /&gt;
&lt;br /&gt;
An issue with OpenOCD and the Beagleboard sometimes prevents OpenOCD from initializing the JTAG chain correctly. As described in the [[Flyswatter How To]], you can prevent the issue by running the ''init'' and ''reset init'' commands on OpenOCD startup. &lt;br /&gt;
&lt;br /&gt;
*Unplug the USB cable from the Flyswatter or Flyswatter2.&lt;br /&gt;
*Unplug the power cable from the Beagleboard.&lt;br /&gt;
*Plug both devices back in.&lt;br /&gt;
*Start OpenOCD as follows:&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
(with the Flyswatter2)&lt;br /&gt;
 openocd -f interface/flyswatter2.cfg -f board/ti_beagleboard.cfg -c &amp;quot;init&amp;quot; -c &amp;quot;reset init&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(with the Flyswatter)&lt;br /&gt;
 openocd -f interface/flyswatter.cfg -f board/ti_beagleboard.cfg -c &amp;quot;init&amp;quot; -c &amp;quot;reset init&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If using Ubuntu, use the ''sudo'' command as normal.&lt;br /&gt;
  sudo openocd -f interface/flyswatter2.cfg -f board/ti_beagleboard.cfg -c &amp;quot;init&amp;quot; -c &amp;quot;reset init&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
==Solution 2: Check the JTAG Cable Connections==&lt;br /&gt;
&lt;br /&gt;
OpenOCD won't be able to read the Beagleboard's CPU tap ID if the JTAG ribbon cable is connected incorrectly. Make sure the cable is secured at both ends and aligned correctly on the pins. &lt;br /&gt;
&lt;br /&gt;
Make sure the JTAG cable isn't connected backwards. The pin numbers are marked on the Beagleboard in small print around the JTAG header. On the ribbon cable included with the [http://www.tincantools.com/product.php?productid=16144&amp;amp;cat=249&amp;amp;page=1 Beagleboard Adapter Kit], Pin 1 is marked with a red stripe. Make sure it aligns with Pin 1 on the board.&lt;br /&gt;
&lt;br /&gt;
[[File:Beagle_jtag_wrong.png]] [[File:Beagle_jtag_wrong2.png]] [[File:Beagle_jtag_correct.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
==Solution 3: Disable Adaptive Clocking==&lt;br /&gt;
&lt;br /&gt;
OpenOCD sometimes has issues initializing the Beagleboard's JTAG with the Flyswatter2 adaptive clocking enabled. Adaptive clocking is enabled in the config file ''omap3530.cfg,'' called from ''ti_beagleboard.cfg.'' You will need to run OpenOCD with a modified config file that doesn't enable adaptive clocking. &lt;br /&gt;
&lt;br /&gt;
{{DOWNLOAD|omap3530_norclk.cfg}}&lt;br /&gt;
&lt;br /&gt;
*Download the file above to OpenOCD's '''/target''' folder:&lt;br /&gt;
*Unplug the USB cable from the Flyswatter2.&lt;br /&gt;
*Unplug the power cable from the Beagleboard.&lt;br /&gt;
*Plug both devices back in.&lt;br /&gt;
*Start OpenOCD as follows:&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 openocd -f interface/flyswatter2.cfg -f target/omap3530_norclk.cfg -c &amp;quot;init&amp;quot; -c &amp;quot;reset init&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If using Ubuntu, use the ''sudo'' command as normal.&lt;br /&gt;
  sudo openocd -f interface/flyswatter2.cfg -f target/omap3530_norclk.cfg -c &amp;quot;init&amp;quot; -c &amp;quot;reset init&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After OpenOCD starts successfully the first time you may be able to start it again as normal. Unplug the Flyswatter/Flyswatter2 and the Beagleboard and restart as in [[#Solution 1: Restart with ''-c &amp;quot;init&amp;quot; -c &amp;quot;reset init&amp;quot;''|Solution 1]]. If you need to resort to disabling adaptive clocking again, you can still enable adaptive clocking manually once OpenOCD starts. Connect to OpenOCD via telnet or GDB as normal and enter the following command:&lt;br /&gt;
&lt;br /&gt;
 jtag_rclk 1000&lt;/div&gt;</summary>
		<author><name>Wmat</name></author>	</entry>

	</feed>