<?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: How to build the bootloader on win7</title>
		<link>http://forums.leaflabs.com/topic.php?id=109</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:14:45 +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=109" rel="self" type="application/rss+xml" />

		<item>
			<title>x893 on "How to build the bootloader on win7"</title>
			<link>http://forums.leaflabs.com/topic.php?id=109#post-653</link>
			<pubDate>Sat, 31 Jul 2010 18:43:09 +0000</pubDate>
			<dc:creator>x893</dc:creator>
			<guid isPermaLink="false">653@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;It's very easy to build bootloader under W7 and maple-ide 0.0.6&#60;br /&#62;
1. Not use hardware\leaflabs\bootloaders\maple folder. Download latest from &#60;a href=&#34;http://github.com/leaflabs/maple-bootloader&#34; rel=&#34;nofollow&#34;&#62;http://github.com/leaflabs/maple-bootloader&#60;/a&#62; page (leaflabs-maple-bootloader-maple-rev1-17-g91f1187.zip) and unpack it. (D:\Tools\maple-ide\bootloader)&#60;br /&#62;
2. Unpack maple-ide-0.0.6 (D:\Tools\maple-ide)&#60;br /&#62;
3. maple-ide 0.0.6 contain not working cs-make (under W7). i use WinAVR as more accuracy package for make. download it and install (D:\Tools\WinAVR)&#60;br /&#62;
4. Create batch file in bootloader folder&#60;/p&#62;
&#60;p&#62;SET PATH=D:\Tools\maple-ide\hardware\tools\arm\bin;D:\Tools\WinAVR\utils\bin;%PATH%&#60;br /&#62;
%*&#60;/p&#62;
&#60;p&#62;5. Execute&#60;br /&#62;
arm.cmd make&#60;/p&#62;
&#60;p&#62;and use maple_boot.bin in build subfolder.&#60;/p&#62;
&#60;p&#62;But more problem (as i have) with dfu-util under W7.&#60;br /&#62;
See post &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=113&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=113&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "How to build the bootloader on win7"</title>
			<link>http://forums.leaflabs.com/topic.php?id=109#post-645</link>
			<pubDate>Wed, 28 Jul 2010 15:09:32 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">645@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hmmm, not sure why ./build doesn't get generated automagically by the &#34;mkdir -p build/stm32lib&#34; command in the &#34;begin&#34; target. &#60;/p&#62;
&#60;p&#62;&#34;etags&#34; isn't necessary; it's just used to generate the ./tags file, which is used for auto-completion in some text editors. I removed it from the default &#34;all&#34; target and pushed that change to github.&#60;/p&#62;
&#60;p&#62;icing, you should be good to go if you got .bin files in your ./build directory. We use the .bin's (binary files) instead of .hex. If you're just looking for the original .bin files that we &#34;flashed at the factory&#34;, you can get them from &#60;a href=&#34;http://static.leaflabs.com/pub/leaflabs/maple-bootloader/&#34; rel=&#34;nofollow&#34;&#62;http://static.leaflabs.com/pub/leaflabs/maple-bootloader/&#60;/a&#62; (you'll want maple_boot-rev3-9c5f8e.bin).&#60;/p&#62;
&#60;p&#62;Also, we usually use the stm32loader.py script to upload bootloaders from linux, I haven't tried to the Flash Loader Demo myself but it should probably work. &#60;/p&#62;
&#60;p&#62;I'm a little confused about what you're trying to accomplish... reloading a bootloader with no modifications onto a Maple? It should have come with a working bootloader and if it didn't work out of the box we'd love to hear about it. If you're trying to adapt the most recent development version of the bootloader to a rev1 or modified hardware you might run in to difficulties (no oscillator/no led) and we could give you some pointers. The &#34;-rev1-mods&#34; version in the folder linked above is an example with the required changes to work with the rev1 boards (slightly different hardware).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mikep on "How to build the bootloader on win7"</title>
			<link>http://forums.leaflabs.com/topic.php?id=109#post-644</link>
			<pubDate>Wed, 28 Jul 2010 14:42:46 +0000</pubDate>
			<dc:creator>mikep</dc:creator>
			<guid isPermaLink="false">644@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Looking at the error message, it seems the make file cannot find the file&#60;br /&#62;
&#34;etags&#34;, which it is looking for in &#34;/usr/bin/sh&#34;&#60;/p&#62;
&#60;p&#62;So that looks like a Unix path to me, which probably does not exist on your windows system.&#60;br /&#62;
Now I have never used MinGW/MSYS but I think it does some path translation from Windows paths into *nix paths.&#60;br /&#62;
So I would look for the etags.exe program and then copy it into your MinGW\bin folder or MinGW\bin\sh&#60;/p&#62;
&#60;p&#62;Maybe this post helps:&#60;br /&#62;
&#60;a href=&#34;http://userweb.cs.utexas.edu/~moore/acl2/current/installation/windows-gcl-jared.html&#34; rel=&#34;nofollow&#34;&#62;http://userweb.cs.utexas.edu/~moore/acl2/current/installation/windows-gcl-jared.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;&#34;    copy &#34;etags.exe&#34; to /mingw/bin. &#34;&#60;/p&#62;
&#60;p&#62;Mike
&#60;/p&#62;</description>
		</item>
		<item>
			<title>icing on "How to build the bootloader on win7"</title>
			<link>http://forums.leaflabs.com/topic.php?id=109#post-643</link>
			<pubDate>Wed, 28 Jul 2010 11:08:23 +0000</pubDate>
			<dc:creator>icing</dc:creator>
			<guid isPermaLink="false">643@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Yeah,&#60;br /&#62;
Thank you Mike,&#60;/p&#62;
&#60;p&#62;I got partial success by doing what you said. And the compile finally results a lot of files like maple_boot.elf, maple_boot.bin, maple_boot.lss, maple_boot.map, maple_boot.sym, etc.. And with the following info:&#60;/p&#62;
&#60;p&#62;Errors: none&#60;br /&#62;
etags 'find . -name &#34;*.c&#34; -o -name &#34;*.cpp&#34; -o -name &#34;*.h&#34;&#60;br /&#62;
/usr/bin/sh:etags:command not found&#60;br /&#62;
make:*** [tags]Error 127&#60;/p&#62;
&#60;p&#62;Any help will be appreciate,thank you!&#60;/p&#62;
&#60;p&#62;-Icing
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mikep on "How to build the bootloader on win7"</title>
			<link>http://forums.leaflabs.com/topic.php?id=109#post-640</link>
			<pubDate>Wed, 28 Jul 2010 08:14:27 +0000</pubDate>
			<dc:creator>mikep</dc:creator>
			<guid isPermaLink="false">640@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
this is just a wild guess, but based on the error message &#34;can't create build/main.o&#34;, try creating a folder called &#34;build&#34; in the current directory where you are running &#34;make&#34;, and make sure your user account has &#34;full&#34; permissions on that folder and all files in it (i.e. you can go into that folder and create a new file test.txt or so).&#60;br /&#62;
If the folder already exists, make sure there is no file &#34;main.o&#34; already in there, if it is, rename or delete it and then try again.&#60;br /&#62;
Hope that helps,&#60;br /&#62;
Mike
&#60;/p&#62;</description>
		</item>
		<item>
			<title>icing on "How to build the bootloader on win7"</title>
			<link>http://forums.leaflabs.com/topic.php?id=109#post-638</link>
			<pubDate>Wed, 28 Jul 2010 01:22:09 +0000</pubDate>
			<dc:creator>icing</dc:creator>
			<guid isPermaLink="false">638@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Thank you for your help.&#60;/p&#62;
&#60;p&#62;&#34;When you pull up a regular command prompt can you run&#60;/p&#62;
&#60;p&#62;arm-none-eabi-gcc --version&#60;br /&#62;
to double check that it's actually on your system path?&#34;&#60;/p&#62;
&#60;p&#62;I got the wrong info, which implied that the tool chain was not on my system path.&#60;/p&#62;
&#60;p&#62;Now I make it work and get the right version info.&#60;/p&#62;
&#60;p&#62;&#34;What environment are you running make from? Does Windows 7 include build toolchain or do you have MiniGW/cygwin set up?&#34;&#60;/p&#62;
&#60;p&#62;I run make in the cmd line of windows 7. I think the g++ toolchain has been included. And also I have MiniGW set up.&#60;/p&#62;
&#60;p&#62;&#34;What version of make are you using?&#60;/p&#62;
&#60;p&#62;make --version&#34;&#60;/p&#62;
&#60;p&#62;I got the info like:&#60;/p&#62;
&#60;p&#62;GNU Make 3.81&#60;br /&#62;
Copyright(c)2006.....&#60;br /&#62;
...&#60;br /&#62;
This program built for i386-pc-mingw32&#60;/p&#62;
&#60;p&#62;===============================================&#60;/p&#62;
&#60;p&#62;Now I do as following:&#60;br /&#62;
1. open the command line by runing cmd.exe on win7.&#60;br /&#62;
2. change to the directory of D:\Program Files\maple-ide-0.0.6\hardware\leaflabs\bootloaders\maple&#60;br /&#62;
2. Add the gcc toolchain to the user environment path, including the directory of:&#60;br /&#62;
   D:\Program Files\maple-ide-0.0.6\hardware\tools\arm\bin;&#60;br /&#62;
   D:\Program Files\maple-ide-0.0.6\hardware\tools\arm\lib;&#60;br /&#62;
   D:\Program Files\maple-ide-0.0.6\hardware\tools\arm\libexec\gcc\arm-none-eabi\4.4.1&#60;br /&#62;
   D:\Program Files\maple-ide-0.0.6\hardware\tools\arm\arm-none-eabi\bin&#60;br /&#62;
   D:\Program Files\maple-ide-0.0.6\hardware\tools\arm\arm-none-eabi\include&#60;br /&#62;
   D:\Program Files\maple-ide-0.0.6\hardware\tools\arm\arm-none-eabi\lib&#60;br /&#62;
3. Run make , and got the new error:&#60;br /&#62;
   Compiling C:main.c&#60;br /&#62;
   arm-none-eabi-gcc -c -mthumb ...&#60;br /&#62;
   ...&#60;br /&#62;
   Assembler messages:&#60;br /&#62;
   Fatal error: can't create build/main.o:No such file or directory&#60;br /&#62;
   make:***[build/main.o]Error 1&#60;/p&#62;
&#60;p&#62;Could you help me about this?&#60;/p&#62;
&#60;p&#62;PS:&#60;br /&#62;
1. What I want to do finally is to download the bootloader file (hex ?) to a raw maple through UART1 by the tool Flash Loader Demo.&#60;br /&#62;
2. I had read the flash content from a maple already with bootloader into a hex file.&#60;br /&#62;
3. However the raw maple downloaded with the read flash file won't work.(the led did not blink, and the no signal from the 8MHz crystal oscillator)&#60;br /&#62;
4. I will be also appreciate if an complied bootloader (hex file?) is supplied.&#60;/p&#62;
&#60;p&#62;Thank you!&#60;/p&#62;
&#60;p&#62;-Icing
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "How to build the bootloader on win7"</title>
			<link>http://forums.leaflabs.com/topic.php?id=109#post-628</link>
			<pubDate>Tue, 27 Jul 2010 08:43:22 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">628@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi icing! I think deep down inside we're all newer to the gcc...&#60;/p&#62;
&#60;p&#62;When you pull up a regular command prompt can you run&#60;/p&#62;
&#60;pre&#62;arm-none-eabi-gcc --version&#60;/pre&#62;
&#60;p&#62; to double check that it's actually on your system path?&#60;/p&#62;
&#60;p&#62;What environment are you running make from? Does Windows 7 include build toolchain or do you have MiniGW/cygwin set up? What version of make are you using?&#60;/p&#62;
&#60;pre&#62;make --version&#60;/pre&#62;</description>
		</item>
		<item>
			<title>icing on "How to build the bootloader on win7"</title>
			<link>http://forums.leaflabs.com/topic.php?id=109#post-626</link>
			<pubDate>Mon, 26 Jul 2010 23:04:10 +0000</pubDate>
			<dc:creator>icing</dc:creator>
			<guid isPermaLink="false">626@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;I want to build the bootloader on win7.&#60;br /&#62;
I use command 'make', in the directory of &#34;D:\Program Files\maple-ide-0.0.6\hardware\leaflabs\bootloaders\maple&#34;.&#60;br /&#62;
The console reports error messages:&#60;/p&#62;
&#60;p&#62;.....&#60;br /&#62;
process_begin:CreateProcess&#38;lt;NULL,arm-none-eabi-gcc --version, ...&#38;gt;failed.&#60;br /&#62;
make &#38;lt;e=2&#38;gt;:system can not find the specific file.&#60;br /&#62;
make:***[gccversion]Error2&#60;/p&#62;
&#60;p&#62;I had add the path &#34;D:\Program Files\maple-ide-0.0.6\hardware\tools\arm\arm-none-eabi\bin&#34; to the system environment variable path.&#60;/p&#62;
&#60;p&#62;I'm a newer to the gcc. Many thanks to any help.&#60;/p&#62;
&#60;p&#62;-Icing
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
