<?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 on mac osx with olimex arm-usb-ocd</title>
		<link>http://forums.leaflabs.com/topic.php?id=532</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:20: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=532" rel="self" type="application/rss+xml" />

		<item>
			<title>larryang on "openocd on mac osx with olimex arm-usb-ocd"</title>
			<link>http://forums.leaflabs.com/topic.php?id=532#post-2985</link>
			<pubDate>Sat, 04 Dec 2010 21:21:23 +0000</pubDate>
			<dc:creator>larryang</dc:creator>
			<guid isPermaLink="false">2985@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I got most of it to work (unfortunately, I need to remake my JTAG adapter so I can't connect it to the board yet).  The most painful part was getting my Powerbook not to load the driver for serial port A.  Had to repeat the Sparkfun thread instructions a few times (including reboot).&#60;/p&#62;
&#60;p&#62;Further information I noticed:&#60;br /&#62;
- to compile libusb, I had to remove the -Werror flag, or the compiler would fail because of warnings on some typecasts&#60;br /&#62;
- used libftdi-0.18 from &#60;a href=&#34;http://www.intra2net.com/en/developer/libftdi/download/libftdi-0.18.tar.gz&#34; rel=&#34;nofollow&#34;&#62;http://www.intra2net.com/en/developer/libftdi/download/libftdi-0.18.tar.gz&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Now onto figuring out how to get it working with Eclipse with Zylin and gdb...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "openocd on mac osx with olimex arm-usb-ocd"</title>
			<link>http://forums.leaflabs.com/topic.php?id=532#post-2809</link>
			<pubDate>Wed, 24 Nov 2010 09:35:48 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">2809@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;structuresound,&#60;/p&#62;
&#60;p&#62;awesome!  thanks for the legwork on this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>larryang on "openocd on mac osx with olimex arm-usb-ocd"</title>
			<link>http://forums.leaflabs.com/topic.php?id=532#post-2802</link>
			<pubDate>Tue, 23 Nov 2010 12:50:00 +0000</pubDate>
			<dc:creator>larryang</dc:creator>
			<guid isPermaLink="false">2802@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;nice work.  I'm going to try it out sometime this week.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>structuresound on "openocd on mac osx with olimex arm-usb-ocd"</title>
			<link>http://forums.leaflabs.com/topic.php?id=532#post-2799</link>
			<pubDate>Tue, 23 Nov 2010 04:13:19 +0000</pubDate>
			<dc:creator>structuresound</dc:creator>
			<guid isPermaLink="false">2799@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Okay, tried the other method (libftdi instead of d2xx) and everything seems to work fine !&#60;/p&#62;
&#60;p&#62;So I can verify that the Olimex is happy on OS X using the leaflabs CFG file with one exception.&#60;/p&#62;
&#60;p&#62;the open ocd install method was simply following the first post here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forum.sparkfun.com/viewtopic.php?t=8923&#34; rel=&#34;nofollow&#34;&#62;http://forum.sparkfun.com/viewtopic.php?t=8923&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;which involves the following:&#60;/p&#62;
&#60;p&#62;OpenOCD from SVN, r214 (I used 0.4.0)&#60;br /&#62;
- libusb 0.1.12&#60;br /&#62;
- libftdi 0.10&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;cd libusb-0.1.12
./configure
make
sudo make install
cd ..

cd libftdi-0.10
./configure
make
sudo make install
cd ..

cd openocd
./configure --enable-ft2232_libftdi --enable-usbprog
make
sudo make install&#60;/code&#62;&#60;/pre&#62;
&#60;pre&#62;&#60;code&#62;but also in libmaple/support/openocd

remove this

flash bank stm32x 0x08000000 0x00020000 0 0 $_TARGETNAME

replace with

set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME stm32x 0x08000000 0x00020000 0 0 $_TARGETNAME&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;otherwise it thinks stm32x is the name not the driver.&#60;/p&#62;
&#60;p&#62;then use make jtag install
&#60;/p&#62;</description>
		</item>
		<item>
			<title>structuresound on "openocd on mac osx with olimex arm-usb-ocd"</title>
			<link>http://forums.leaflabs.com/topic.php?id=532#post-2770</link>
			<pubDate>Fri, 19 Nov 2010 22:52:45 +0000</pubDate>
			<dc:creator>structuresound</dc:creator>
			<guid isPermaLink="false">2770@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;yeah I'm hacking through it slowly, hopefully will have a working solution. Now that I've disabled the ftdi .kext it is able to recognize the device.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;Info : device: 4 &#38;quot;2232C&#38;quot;
Info : deviceID: 364511235
Info : SerialNumber: ? A
Info : Description: Olimex OpenOCD JTAG A
Info : clock speed 1000 kHz
Info : JTAG tap: stm32.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32.bs tap/device found: 0x16410041 (mfg: 0x020, part: 0x6410, ver: 0x1)
Info : stm32.cpu: hardware has 6 breakpoints, 4 watchpoints
Halting...
Erasing...
Info : device id = 0x20036410
Info : flash size = 128kbytes
2010-11-19 19:40:25.343 openocd[896:1c03] In &#38;#39;__CFRunLoopLock&#38;#39;, file /SourceCache/CF/CF-550.13/RunLoop.subproj/CFRunLoop.c, line 438, during lock, spin lock 0x95ead0a8 has value 0x850b75f6, which is neither locked nor unlocked.  The memory has been smashed.
make: *** [install] Bus error&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I like the error code &#34;The memory has been smashed&#34; :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "openocd on mac osx with olimex arm-usb-ocd"</title>
			<link>http://forums.leaflabs.com/topic.php?id=532#post-2768</link>
			<pubDate>Fri, 19 Nov 2010 21:57:09 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">2768@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;structuresound,&#60;/p&#62;
&#60;p&#62;our openocd docs are sadly lacking in general; all we've got is a pointer to a tutorial for how to do it on ubuntu, and nothing for os x.  i've filed a ticket:&#60;br /&#62;
&#60;a href=&#34;http://code.google.com/p/leaflabs/issues/detail?id=45&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/leaflabs/issues/detail?id=45&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;however, i realistically don't think this issue will be addressed in the next month; we've got a lot on our plates until mid-december.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>structuresound on "openocd on mac osx with olimex arm-usb-ocd"</title>
			<link>http://forums.leaflabs.com/topic.php?id=532#post-2766</link>
			<pubDate>Fri, 19 Nov 2010 21:12:42 +0000</pubDate>
			<dc:creator>structuresound</dc:creator>
			<guid isPermaLink="false">2766@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;whoops not quite there yet&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;Install target: jtag
openocd -f support/openocd/flash.cfg
Open On-Chip Debugger 0.4.0 (2010-11-19-17:40)
Licensed under GNU GPL v2
For bug reports, read
	&#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;
1000 kHz
jtag_nsrst_delay: 100
jtag_ntrst_delay: 100
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
Warn : Unable to open FTDI Device tried: &#38;#39;Olimex OpenOCD JTAG&#38;#39; and &#38;#39;Olimex OpenOCD JTAG A&#38;#39;

Error: unable to open ftdi device: 2
Error: ListDevices: 0&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>structuresound on "openocd on mac osx with olimex arm-usb-ocd"</title>
			<link>http://forums.leaflabs.com/topic.php?id=532#post-2765</link>
			<pubDate>Fri, 19 Nov 2010 20:51:25 +0000</pubDate>
			<dc:creator>structuresound</dc:creator>
			<guid isPermaLink="false">2765@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Is there a guide already for openocd on mac os X somewhere in the documentation?&#60;/p&#62;
&#60;p&#62;Think I have this running (need to make my jtag header to test) but software install looks good, there's a couple guides sort of but I thought I'd consolidate also this one (&#60;a href=&#34;http://forum.sparkfun.com/viewtopic.php?t=8923&#34; rel=&#34;nofollow&#34;&#62;http://forum.sparkfun.com/viewtopic.php?t=8923&#60;/a&#62;) seems out dated (for 0.1.0 not 0.1.7) so here goes.&#60;/p&#62;
&#60;p&#62;You need:&#60;/p&#62;
&#60;p&#62;D2XX drivers: &#60;a href=&#34;http://www.ftdichip.com/Drivers/D2XX/MacOSX/UniBin/D2XX0.1.7.dmg&#34; rel=&#34;nofollow&#34;&#62;http://www.ftdichip.com/Drivers/D2XX/MacOSX/UniBin/D2XX0.1.7.dmg&#60;/a&#62;&#60;br /&#62;
and&#60;br /&#62;
openocd 4 &#60;a href=&#34;http://sourceforge.net/projects/openocd/files/openocd/0.4.0/openocd-0.4.0.tar.bz2/download&#34; rel=&#34;nofollow&#34;&#62;http://sourceforge.net/projects/openocd/files/openocd/0.4.0/openocd-0.4.0.tar.bz2/download&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;and of course normal xcode / gnu compilers.&#60;/p&#62;
&#60;p&#62;so from the D2XX folder you&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;sudo cp bin/10.6/libftd2xx.0.1.7.dylib /usr/local/lib
sudo ln -sf /usr/local/lib/libftd2xx.0.1.7.dylib /usr/local/lib/libftd2xx.dylib
sudo cp bin/ftd2xx.h /usr/local/include
sudo cp Samples/WinTypes.h /usr/local/include&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then from the openocd folder you:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;./configure --enable-ft2232_ftd2xx
make
sudo make install&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
