<?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: no-gui development on OS X</title>
		<link>http://forums.leaflabs.com/topic.php?id=118</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:22:09 +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=118" rel="self" type="application/rss+xml" />

		<item>
			<title>betovar on "no-gui development on OS X"</title>
			<link>http://forums.leaflabs.com/topic.php?id=118#post-2504</link>
			<pubDate>Sun, 14 Nov 2010 07:01:56 +0000</pubDate>
			<dc:creator>betovar</dc:creator>
			<guid isPermaLink="false">2504@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I've had the same error for awhile now and I wondered if maybe i had done something to the board. I too have an iMac 24&#34; 2.4GHz Intel Core 2 Duo running 10.5.8 and originally thought it was something wrong with Xcode. After reinstalling that with no success, I turned over to my Linux machine which worked like a charm (in terms of compiling, I haven't yet had the chance to upload code to the device).&#60;/p&#62;
&#60;p&#62;Pichenettes, your instructions for getting the patches installed and the cross compiler running went quite smoothly. thanks a bunch!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pichenettes on "no-gui development on OS X"</title>
			<link>http://forums.leaflabs.com/topic.php?id=118#post-731</link>
			<pubDate>Thu, 12 Aug 2010 14:58:58 +0000</pubDate>
			<dc:creator>pichenettes</dc:creator>
			<guid isPermaLink="false">731@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks for the info! Having a low-level, built-in, permanent bootloader is great.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "no-gui development on OS X"</title>
			<link>http://forums.leaflabs.com/topic.php?id=118#post-730</link>
			<pubDate>Thu, 12 Aug 2010 14:44:10 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">730@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The STM32 has a hard-coded bootloader mode that lets you upload programs over a serial interface (which from a PC would require, eg, an FTDI chip, or a second Maple or an arduino, or ____). That's what the stm32loader.py method does; the script talks to the chip and uploads binary files. You need to do some button mashing to get in to this mode; see &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=32#post-115&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=32#post-115&#60;/a&#62; . We find this simpler than JTAG and it's actually what we use to upload our bootloader program &#34;at the factory&#34;.&#60;/p&#62;
&#60;p&#62;The second bootloader is our custom written 'maple-bootloader' which allows programs to be uploaded via dfu-util over the USB port either at boot time or via auto-reset.&#60;/p&#62;
&#60;p&#62;High-density STM32 devices actually support something like DFU in their hard-coded bootloader, but the medium-density device in the Maple does not.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pichenettes on "no-gui development on OS X"</title>
			<link>http://forums.leaflabs.com/topic.php?id=118#post-729</link>
			<pubDate>Thu, 12 Aug 2010 12:59:45 +0000</pubDate>
			<dc:creator>pichenettes</dc:creator>
			<guid isPermaLink="false">729@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Yes, I built dfu-util from the sources on the OpenMoko site - no build problem. Runs, but can't tell if it really works without a board...&#60;/p&#62;
&#60;p&#62;What's the difference between an upload with dfu-util and with stm32loader? Do they rely on any specific bootloader to be present on the chip?&#60;/p&#62;
&#60;p&#62;My goal is to use the board to validate that the STM32 is the right platform for what I want to do, and then migrate to a custom board - so there will come a point where I will have to know what is needed to get a bare chip running. Given a &#34;blank&#34; chip straight from ST, is there any other way of programming it without using a JTAG interface (a bootbootloader?)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "no-gui development on OS X"</title>
			<link>http://forums.leaflabs.com/topic.php?id=118#post-727</link>
			<pubDate>Thu, 12 Aug 2010 11:27:19 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">727@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Awesome!&#60;/p&#62;
&#60;p&#62;I hope your binaries produce the correct bins; we had trouble with this initially on OSX, but jsnyder's process seems to give reliable compiler tools. &#60;/p&#62;
&#60;p&#62;If you're interested I think you can get a 10.5-compatible dfu-util from the OpenMoko project; note that if you use their binary you need to grab at least one dynlib as well and preserve the relative path.&#60;/p&#62;
&#60;p&#62;The other upload mechanism is the stm32loader.py script; if you compile programs for the JTAG target you should then be able to upload the bin out of ./build using that script (search these forums for the correct syntax).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pichenettes on "no-gui development on OS X"</title>
			<link>http://forums.leaflabs.com/topic.php?id=118#post-724</link>
			<pubDate>Thu, 12 Aug 2010 05:50:06 +0000</pubDate>
			<dc:creator>pichenettes</dc:creator>
			<guid isPermaLink="false">724@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Finally got the toolchain working!&#60;/p&#62;
&#60;p&#62;The core of the problem is that mpfr and gmp must be compiled for 32 bits. I have no idea if the problem is specific to 10.5.8, to my machine (late 2007 Core 2 Duo iMac) or to the hodge-podge of compilers and development tools that have accumulated on my system since then.&#60;/p&#62;
&#60;p&#62;Here's how I did it:&#60;/p&#62;
&#60;p&#62;- Grabbed jsnyder's makefile and patches&#60;br /&#62;
- sudo make install-deps . It will fail at the steps described above, because arm-none-eabi-gcc will be attempted to be built for 32 bits, while make install-deps will build mpfr and gmp have just been built for 64 bits.&#60;br /&#62;
- cd gmp-2010q1-188 ; ./configure ABI=32 ; sudo make install ; cd .. to force gmp to be built for 32 bits&#60;br /&#62;
- cd mpfr-2010q1-188 ; ./configure ABI=32 ; sudo make install ; cd .. to force mpfr to be built for 32 bits&#60;br /&#62;
- now you can resume the global install procedure with mkdir -p $HOME/arm-cs-tools/bin ; export PATH=$HOME/arm-cs-tools/bin:$PATH ; make install-cross&#60;/p&#62;
&#60;p&#62;The files produced in arm-cs-tools can now be copied over the files in /Applications/MapleIDE.app/Contents/Resources/Java/hardware/tools/arm .&#60;/p&#62;
&#60;p&#62;I could compile Blink. Now waiting for my board to arrive!&#60;/p&#62;
&#60;p&#62;If you're interested in getting the pre-built binaries:&#60;br /&#62;
&#60;a href=&#34;http://dl.dropbox.com/u/612135/dev/tools.zip&#34; rel=&#34;nofollow&#34;&#62;http://dl.dropbox.com/u/612135/dev/tools.zip&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pichenettes on "no-gui development on OS X"</title>
			<link>http://forums.leaflabs.com/topic.php?id=118#post-716</link>
			<pubDate>Wed, 11 Aug 2010 10:14:59 +0000</pubDate>
			<dc:creator>pichenettes</dc:creator>
			<guid isPermaLink="false">716@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Still stuck at building the code from &#60;a href=&#34;http://github.com/jsnyder/arm-eabi-toolchain&#34; rel=&#34;nofollow&#34;&#62;http://github.com/jsnyder/arm-eabi-toolchain&#60;/a&#62; . I've installed mpfr and gmp (got them built with make install-deps) but I still get:&#60;/p&#62;
&#60;p&#62;configure:4708: gcc -o conftest -g -O2    conftest.c  -lmpfr -lgmp &#38;gt;&#38;amp;5&#60;br /&#62;
ld warning: in /usr/lib/libmpfr.a, file is not of required architecture&#60;br /&#62;
ld warning: in /usr/local/lib/libgmp.a, file is not of required architecture&#60;br /&#62;
Undefined symbols:&#60;br /&#62;
  &#34;_mpfr_erfc&#34;, referenced from:&#60;br /&#62;
      _main in ccmc7m95.o&#60;br /&#62;
  &#34;_mpfr_atan2&#34;, referenced from:&#60;br /&#62;
      _main in ccmc7m95.o&#60;br /&#62;
  &#34;_mpfr_init&#34;, referenced from:&#60;br /&#62;
      _main in ccmc7m95.o&#60;br /&#62;
      _main in ccmc7m95.o&#60;br /&#62;
  &#34;_mpfr_subnormalize&#34;, referenced from:&#60;br /&#62;
      _main in ccmc7m95.o&#60;br /&#62;
ld: symbol(s) not found&#60;br /&#62;
collect2: ld returned 1 exit status&#60;br /&#62;
configure:4714: $? = 1
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "no-gui development on OS X"</title>
			<link>http://forums.leaflabs.com/topic.php?id=118#post-706</link>
			<pubDate>Tue, 10 Aug 2010 11:27:13 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">706@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi pichenettes!&#60;/p&#62;
&#60;p&#62;Those binaries are indeed intended only for 10.6 (and should probably be labeled as such). I had a great deal of trouble trying to cross compile for 10.5/10.6 and 32bit/64bit at the same time and decided to just go with 10.6 in the end. &#60;/p&#62;
&#60;p&#62;The most popular way to get the arm-none-eabi toolchain going on OSX is to use this makefile:&#60;br /&#62;
&#60;a href=&#34;http://github.com/jsnyder/arm-eabi-toolchain&#34; rel=&#34;nofollow&#34;&#62;http://github.com/jsnyder/arm-eabi-toolchain&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Note that this also is intended for 10.6 but &#34;should also work on 10.5&#34;. If I recall it did work eventually but I had to make some tweaks. &#60;/p&#62;
&#60;p&#62;You can grab the codesourcery source from our mirror (&#60;a href=&#34;http://static.leaflabs.com/pub/codesourcery/originals/&#34; rel=&#34;nofollow&#34;&#62;http://static.leaflabs.com/pub/codesourcery/originals/&#60;/a&#62; ) or I think the makefile will grab it from their website. You can use either the 2010q1 or 2009q3 releases.&#60;/p&#62;
&#60;p&#62;Good luck! And please post if you have success.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pichenettes on "no-gui development on OS X"</title>
			<link>http://forums.leaflabs.com/topic.php?id=118#post-704</link>
			<pubDate>Mon, 09 Aug 2010 19:34:52 +0000</pubDate>
			<dc:creator>pichenettes</dc:creator>
			<guid isPermaLink="false">704@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I'm planning to use my leaf board on OS X 10.5.8 with standard command line tools.&#60;/p&#62;
&#60;p&#62;I've tried to follow the linux how2 but I am stuck at the stage where the codesourcery tools have to be installed. The arm-2010q1-188-arm-none-eabi-toolchain-macosx32.tar archive contains prebuilt binaries which seem to have something wrong (eg launching bin/arm-none-eabi-g++ yields a &#34;dyld: unknown required load command 0x80000022&#34; error) - maybe because they have been built on 10.6? Is there a source-only distribution of the toolchain that I can download somewhere and build?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
