<?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: libmaple make problem</title>
		<link>http://forums.leaflabs.com/topic.php?id=528</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:22:20 +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=528" rel="self" type="application/rss+xml" />

		<item>
			<title>structuresound on "libmaple make problem"</title>
			<link>http://forums.leaflabs.com/topic.php?id=528#post-2745</link>
			<pubDate>Thu, 18 Nov 2010 23:57:09 +0000</pubDate>
			<dc:creator>structuresound</dc:creator>
			<guid isPermaLink="false">2745@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Yes copied makefile and targets, everything is happy now.&#60;/p&#62;
&#60;p&#62;also slightly OT&#60;/p&#62;
&#60;p&#62;I've changed my makefile so that jtag build uses serial instead:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;# UPLOAD_jtag  := $(OPENOCD) -f support/openocd/flash.cfg

UPLOAD_jtag := stm32flash -w $(BUILD_PATH)/$(BOARD).bin -v /dev/tty.usbserial-A8007ZPL&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I thought at some point I had read that leaflabs uses serial not jtag to upload bootloader so I'm surprised there wasn't a serial target already.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "libmaple make problem"</title>
			<link>http://forums.leaflabs.com/topic.php?id=528#post-2741</link>
			<pubDate>Thu, 18 Nov 2010 22:12:09 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">2741@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;how strange. i use ~ in my LIB_MAPLE_HOME and everything works fine.  os x 10.6.5, standard xcode gnumake etc.&#60;/p&#62;
&#60;p&#62;edit: sorry, your post answered my first question, and i hadn't noticed.&#60;/p&#62;
&#60;p&#62;next question: you copied over the Makefile and build-targets.mk, yes?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>structuresound on "libmaple make problem"</title>
			<link>http://forums.leaflabs.com/topic.php?id=528#post-2735</link>
			<pubDate>Thu, 18 Nov 2010 21:31:30 +0000</pubDate>
			<dc:creator>structuresound</dc:creator>
			<guid isPermaLink="false">2735@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;yes exactly. absolute path works, relative path works up until where you see it fail in my first post.&#60;/p&#62;
&#60;p&#62;note to self, use absolute paths :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "libmaple make problem"</title>
			<link>http://forums.leaflabs.com/topic.php?id=528#post-2732</link>
			<pubDate>Thu, 18 Nov 2010 20:26:00 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">2732@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;So are you saying when LIB_MAPLE_HOME has an absolute path to the libmaple directory, everything bulds okay? Or is there some other environment variable involved too?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>structuresound on "libmaple make problem"</title>
			<link>http://forums.leaflabs.com/topic.php?id=528#post-2723</link>
			<pubDate>Thu, 18 Nov 2010 18:25:29 +0000</pubDate>
			<dc:creator>structuresound</dc:creator>
			<guid isPermaLink="false">2723@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Okay my mistake, I guess using the shortcut ~/ instead of a full /Users/ in the environment variable screws things up.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>structuresound on "libmaple make problem"</title>
			<link>http://forums.leaflabs.com/topic.php?id=528#post-2722</link>
			<pubDate>Thu, 18 Nov 2010 18:19:08 +0000</pubDate>
			<dc:creator>structuresound</dc:creator>
			<guid isPermaLink="false">2722@http://forums.leaflabs.com/</guid>
			<description>&#60;br /&#62;</description>
		</item>
		<item>
			<title>structuresound on "libmaple make problem"</title>
			<link>http://forums.leaflabs.com/topic.php?id=528#post-2721</link>
			<pubDate>Thu, 18 Nov 2010 18:09:17 +0000</pubDate>
			<dc:creator>structuresound</dc:creator>
			<guid isPermaLink="false">2721@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Right, LIB_MAPLE_HOME was not set when I did the initial make. Worked fine because I was in the home folder and I think there's an IF statement in there somewhere that defaults to ./ if LIB_MAPLE_HOME is undefined. What confuses me is that shouldn't change the relative hierarchy between home and /usb/usb_lib. I can probably fix it manually just thought it seemed odd.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "libmaple make problem"</title>
			<link>http://forums.leaflabs.com/topic.php?id=528#post-2714</link>
			<pubDate>Thu, 18 Nov 2010 14:43:03 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">2714@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;An include in usb.h looks wrong (depending on the compiler command).&#60;/p&#62;
&#60;p&#62;usb.h contains&#60;br /&#62;
&#60;code&#62;#include &#38;quot;usb_lib.h&#38;quot;&#60;/code&#62;&#60;br /&#62;
but usb_lib.h isn't in this directory, it is in &#34;usb_lib/usb_lib.h&#34;&#60;/p&#62;
&#60;p&#62;I'm puzzled why it worked the first time.&#60;br /&#62;
Was LIB_MAPLE_HOME set when you did the initial test make?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>structuresound on "libmaple make problem"</title>
			<link>http://forums.leaflabs.com/topic.php?id=528#post-2705</link>
			<pubDate>Thu, 18 Nov 2010 04:41:48 +0000</pubDate>
			<dc:creator>structuresound</dc:creator>
			<guid isPermaLink="false">2705@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;OS X 10.6 / shell&#60;/p&#62;
&#60;p&#62;So gitted (got?) libmaple and arm toolchain did a test make and everything went fine.&#60;/p&#62;
&#60;p&#62;Followed directions to start new project (set LIB_MAPLE_HOME environment variable, copy makeFile + cpp.main)&#60;/p&#62;
&#60;p&#62;now when trying to make from new directory or doing the &#34;test&#34; again I get&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;66-117-149-79:libmaple leif$ make clean
rm -rf build
66-117-149-79:libmaple leif$ make
================================================================================

  Build info:
     BOARD:           maple
     MCU:             STM32F103RB
     MEMORY_TARGET:   flash

  See &#38;#39;make help&#38;#39; for all possible targets

================================================================================

  [CC]        /Users/leif/Documents/libmaple/libmaple/systick.c
  [CC]        /Users/leif/Documents/libmaple/libmaple/timers.c
  [CC]        /Users/leif/Documents/libmaple/libmaple/adc.c
  [CC]        /Users/leif/Documents/libmaple/libmaple/syscalls.c
  [CC]        /Users/leif/Documents/libmaple/libmaple/exti.c
  [CC]        /Users/leif/Documents/libmaple/libmaple/gpio.c
  [CC]        /Users/leif/Documents/libmaple/libmaple/nvic.c
  [CC]        /Users/leif/Documents/libmaple/libmaple/usart.c
  [CC]        /Users/leif/Documents/libmaple/libmaple/util.c
  [CC]        /Users/leif/Documents/libmaple/libmaple/rcc.c
  [CC]        /Users/leif/Documents/libmaple/libmaple/flash.c
  [CC]        /Users/leif/Documents/libmaple/libmaple/spi.c
  [CC]        /Users/leif/Documents/libmaple/libmaple/fsmc.c
  [CC]        /Users/leif/Documents/libmaple/libmaple/dac.c
  [CC]        /Users/leif/Documents/libmaple/libmaple/usb/usb.c
In file included from /Users/leif/Documents/libmaple/libmaple/usb/usb.c:33:
/Users/leif/Documents/libmaple/libmaple/usb/usb.h:30: fatal error: usb_lib.h: No such file or directory
compilation terminated.
make: *** [build/~/Documents/libmaple/libmaple/usb/usb.o] Error 1&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;also&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;echo $LIB_MAPLE_HOME&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;yields the correct path, so I assume that's not the problem.&#60;/p&#62;
&#60;p&#62;ideas?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
