<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: OpenOCD  and JTAG</title>
		<link>http://forums.leaflabs.com/topic.php?id=1231</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:15:10 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=1231" rel="self" type="application/rss+xml" />

		<item>
			<title>corguy on "OpenOCD  and JTAG"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1231#post-7770</link>
			<pubDate>Wed, 18 Jan 2012 14:09:41 +0000</pubDate>
			<dc:creator>corguy</dc:creator>
			<guid isPermaLink="false">7770@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks kqr2, I could really use a sample working config file. &#60;/p&#62;
&#60;p&#62;Seems like someone on the Maple team could easily post the OpenOCD config file for the Olimex? Or do you guys use something else?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kqr2 on "OpenOCD  and JTAG"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1231#post-7467</link>
			<pubDate>Wed, 28 Dec 2011 16:50:28 +0000</pubDate>
			<dc:creator>kqr2</dc:creator>
			<guid isPermaLink="false">7467@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The jtag_device command has been deprecated.&#60;/p&#62;
&#60;p&#62;From &#60;a href=&#34;http://www.amontec.com/openocd/doc/Tap-Creation.html&#34; rel=&#34;nofollow&#34;&#62;http://www.amontec.com/openocd/doc/Tap-Creation.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;     OLD: jtag_device 8 0x01 0xe3 0xfe&#60;br /&#62;
     NEW: jtag newtap CHIPNAME TAPNAME -irlen 8 -ircapture 0x01 -irmask 0xe3&#60;/p&#62;
&#60;p&#62;Also, for the Olimex ARM-USB-OCD-H &#60;/p&#62;
&#60;p&#62;     ft2232_vid_pid 0x15ba 0x002b&#60;/p&#62;
&#60;p&#62;Since you are running OpenOCD 0.5.0, you may want to look at upgrading your entire config file.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>corguy on "OpenOCD  and JTAG"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1231#post-7427</link>
			<pubDate>Fri, 23 Dec 2011 13:59:31 +0000</pubDate>
			<dc:creator>corguy</dc:creator>
			<guid isPermaLink="false">7427@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I'm finally back to my VET6 project after taking care of few other things and I received my first batch of boards back this week from the fab house and have gotten one assembled. &#60;/p&#62;
&#60;p&#62;I'm trying to get OpenOCD running under Fedora and having a few problems. I'm using the Olimex ARM-OCD-USB-H and I see it as a USB device after I plug it in using dmesg and lsusb. I suspect I have something wrong in the openocd.cfg file. &#60;/p&#62;
&#60;p&#62;I'm wondering if someone can share their openocd.cfg file or take a look at the one below? &#60;/p&#62;
&#60;p&#62;This is how I start openocd and the error I get:&#60;/p&#62;
&#60;p&#62;openocd -f openocd.cfg&#60;/p&#62;
&#60;p&#62;Open On-Chip Debugger 0.5.0 (2011-12-23-12:46)&#60;br /&#62;
Licensed under GNU GPL v2&#60;br /&#62;
For bug reports, read&#60;br /&#62;
        &#60;a href=&#34;http://openocd.berlios.de/doc/doxygen/bugs.html&#34; rel=&#34;nofollow&#34;&#62;http://openocd.berlios.de/doc/doxygen/bugs.html&#60;/a&#62;&#60;br /&#62;
Info : only one transport option; autoselect 'jtag'&#60;br /&#62;
500 kHz&#60;br /&#62;
adapter_nsrst_delay: 100&#60;br /&#62;
jtag_ntrst_delay: 100&#60;br /&#62;
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain&#60;br /&#62;
Runtime Error: openocd.cfg:27: invalid command name &#34;jtag_device&#34;&#60;br /&#62;
in procedure 'script'&#60;br /&#62;
at file &#34;embedded:startup.tcl&#34;, line 58&#60;br /&#62;
at file &#34;openocd.cfg&#34;, line 27&#60;/p&#62;
&#60;p&#62;#################################&#60;br /&#62;
my openocd.cfg:&#60;/p&#62;
&#60;p&#62;#daemon configuration&#60;br /&#62;
telnet_port 4444&#60;br /&#62;
gdb_port 3333&#60;/p&#62;
&#60;p&#62;#interface&#60;br /&#62;
#cat /usr/lib/openocd/interface/olimex-arm-usb-ocd.cfg &#38;gt;&#38;gt; openocd.cfg&#60;br /&#62;
interface ft2232&#60;br /&#62;
ft2232_device_desc &#34;Olimex OpenOCD JTAG&#34;&#60;br /&#62;
ft2232_layout olimex-jtag&#60;br /&#62;
ft2232_vid_pid 0x15ba 0x0003&#60;/p&#62;
&#60;p&#62;# target configuration&#60;br /&#62;
# cat /usr/lib/openocd/target/stm32.cfg &#38;gt;&#38;gt; openocd.cfg&#60;br /&#62;
# script for stm32&#60;/p&#62;
&#60;p&#62;# jtag speed&#60;br /&#62;
jtag_khz 500&#60;/p&#62;
&#60;p&#62;jtag_nsrst_delay 100&#60;br /&#62;
jtag_ntrst_delay 100&#60;/p&#62;
&#60;p&#62;#use combined on interfaces or targets that can't set TRST/SRST separately&#60;br /&#62;
reset_config trst_and_srst&#60;/p&#62;
&#60;p&#62;#jtag scan chain&#60;br /&#62;
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)&#60;br /&#62;
jtag_device 4 0x1 0xf 0xe&#60;br /&#62;
jtag_device 5 0x1 0x1 0x1e&#60;/p&#62;
&#60;p&#62;target create target0 cortex_m3 -endian little -chain-position 0&#60;/p&#62;
&#60;p&#62;[new_target_name] configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 16384 -work-area-backup 0&#60;/p&#62;
&#60;p&#62;#flash bank str7x &#38;lt;base&#38;gt; &#38;lt;size&#38;gt; 0 0 &#38;lt;target#&#38;gt; &#38;lt;variant&#38;gt;&#60;br /&#62;
flash bank stm32x 0 0 0 0 0&#60;/p&#62;
&#60;p&#62;# For more information about the configuration files, take a look at:&#60;br /&#62;
# openocd.texi&#60;/p&#62;
&#60;p&#62;At this point I just want to connect to the Olimex and see if it is able to&#60;br /&#62;
access the new board.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
