<?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 flash *.bin or *.hex generated files into a leaflabs maple?</title>
		<link>http://forums.leaflabs.com/topic.php?id=1177</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:09:39 +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=1177" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "How  to flash *.bin or *.hex generated files into a leaflabs maple?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1177#post-105182</link>
			<pubDate>Thu, 16 Jan 2014 15:28:57 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105182@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;dexterkhm - have you tried using the Maple IDE? &#60;/p&#62;
&#60;p&#62;That would provide proof that upload is working.&#60;br /&#62;
More importantly the USB DFU upload program would be installed along with the IDE.&#60;/p&#62;
&#60;p&#62;Alternatively, you could get the USB DFU upload program directly:&#60;br /&#62;
&#60;a href=&#34;http://dfu-util.gnumonks.org/&#34; rel=&#34;nofollow&#34;&#62;http://dfu-util.gnumonks.org/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You might need to put the Maple into &#34;perpetual bootloader mode&#34; to get upload working:&#60;br /&#62;
&#60;a href=&#34;http://leaflabs.com/docs/troubleshooting.html#perpetual-bootloader-mode&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/troubleshooting.html#perpetual-bootloader-mode&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dexterkhm on "How  to flash *.bin or *.hex generated files into a leaflabs maple?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1177#post-105172</link>
			<pubDate>Wed, 15 Jan 2014 12:26:53 +0000</pubDate>
			<dc:creator>dexterkhm</dc:creator>
			<guid isPermaLink="false">105172@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I have same problem and i have no way to resolve it. I am programming on Eclipse + ARM GCC under Windows XP and i need to know how to upload compiled *.hex or *.bin into Maple stm32 using usb bootloader. Can anyone help me with my question.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "How  to flash *.bin or *.hex generated files into a leaflabs maple?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1177#post-20286</link>
			<pubDate>Sat, 13 Oct 2012 13:20:52 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">20286@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;RAJENDRA - are you using a LeafLabs Maple board, or something which has an STM32? &#60;/p&#62;
&#60;p&#62;If it is not a Maple board, and you wish to ask STM32 questions, you might try joining the forum at:&#60;br /&#62;
&#60;a href=&#34;https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&#34; rel=&#34;nofollow&#34;&#62;https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;If it is on a Maple board, please look at the documentation&#60;br /&#62;
&#60;a href=&#34;http://leaflabs.com/docs/unix-toolchain.html&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/unix-toolchain.html&#60;/a&#62;&#60;br /&#62;
which describes how to load a program onto a Maple board, which has an STM32 which has been pre-programmed with a bootloader.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RAJENDRA on "How  to flash *.bin or *.hex generated files into a leaflabs maple?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1177#post-20280</link>
			<pubDate>Fri, 12 Oct 2012 07:10:56 +0000</pubDate>
			<dc:creator>RAJENDRA</dc:creator>
			<guid isPermaLink="false">20280@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;hi every one,&#60;br /&#62;
i want to upload hex file through usb to STM32&#60;br /&#62;
is their  any way to do so please help me
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "How  to flash *.bin or *.hex generated files into a leaflabs maple?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1177#post-7375</link>
			<pubDate>Fri, 16 Dec 2011 17:46:56 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">7375@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;the IDE and our command line toolchain bundle a reset script for you. When you upload, you are actually doing two things, sending a out of band signal over the SerialUSB that causes maple to reset into bootloader mode, and then uploading a binary over dfu-util. &#60;/p&#62;
&#60;p&#62;You can put the board into bootloader mode by hitting reset, but it will jump back to user code in 2 seconds, so you have to time it right with your call to dfu-util.&#60;/p&#62;
&#60;p&#62;The better option is to use perpetual bootloader mode (serach the forums for more info), basically you press and release reset, then *immediately* after releasing reset press and hold the BUT button for about 2 seconds. The LED should blink slowly. All calls to DFU-util should work now. &#60;/p&#62;
&#60;p&#62;Note that given you are doing some fancy hacking building binaries with a different toolchain than we provide, you will probably not get your SerialUSB port back, and thus must use perpetual bootloader mode every time until you add your own reset mechanism into the binaries you are building outside the leaflabs toolchain. &#60;/p&#62;
&#60;p&#62;also, be careful that your binaries are not mal-configuring pins. Driving a zero or a one onto a pin that is wired to supply or ground will brick that pin and potentially your board. If you stay in toolchain, this shouldnt happen, but if you take a look at the schematic you might find some pins you wont want to touch. I cant think of anything for Maple, but I would double check before running some random binary on the board that wasnt generated by our toolchain. &#60;/p&#62;
&#60;p&#62;We would love to see some simulink support! let us know how this works out! feel free to email us or post here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>samtal on "How  to flash *.bin or *.hex generated files into a leaflabs maple?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1177#post-7362</link>
			<pubDate>Fri, 16 Dec 2011 04:17:37 +0000</pubDate>
			<dc:creator>samtal</dc:creator>
			<guid isPermaLink="false">7362@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;xavier_lahera, &#60;/p&#62;
&#60;p&#62;You can easily load any file to flash by your USB port.&#60;br /&#62;
It may be too late for this reply, but in case others want to use it, I made some time ago a flash read / write demo that works nice and can be used as a template.&#60;br /&#62;
You can download it from &#60;a href=&#34;http://pastebin.com/h0CxGRQ7&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/h0CxGRQ7&#60;/a&#62;.&#60;br /&#62;
WARNING:&#60;br /&#62;
Flash has a limited number of writing cycles (10,000?).&#60;br /&#62;
Be very careful not to get into a flash writing loop.&#60;br /&#62;
Such loop can kill a flash (and your board!) within seconds (It did to me!).&#60;br /&#62;
samtal
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "How  to flash *.bin or *.hex generated files into a leaflabs maple?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1177#post-7248</link>
			<pubDate>Fri, 25 Nov 2011 21:30:12 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">7248@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;You have to reset the board before you can flash, as the board has the run the boot loader, and you need to be fast if you do this manually.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Xavier on "How  to flash *.bin or *.hex generated files into a leaflabs maple?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1177#post-7247</link>
			<pubDate>Fri, 25 Nov 2011 13:34:31 +0000</pubDate>
			<dc:creator>Xavier</dc:creator>
			<guid isPermaLink="false">7247@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I think the right command line is :&#60;/p&#62;
&#60;p&#62;&#38;gt; dfu-util -a1 -d 0x1EAF:0x0003 -D your-binary.bin -R&#60;/p&#62;
&#60;p&#62;This one works for me...&#60;/p&#62;
&#60;p&#62;Xavier
&#60;/p&#62;</description>
		</item>
		<item>
			<title>xavier_lahera on "How  to flash *.bin or *.hex generated files into a leaflabs maple?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1177#post-7192</link>
			<pubDate>Sat, 19 Nov 2011 09:53:21 +0000</pubDate>
			<dc:creator>xavier_lahera</dc:creator>
			<guid isPermaLink="false">7192@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi everyone, &#60;/p&#62;
&#60;p&#62;I am an engineer that works developing control algorithms in the field of robotics. Most of my work is developed in MATLAB/Simulink under Windows 7 (32 bit), which I use to simulate, design, and produce highly efficient C code for embedded controllers. I have been working with various evaluation boards from the DSpace brand, but now I am interested on scaling some designs into leaflabs maple boards (by recommendation of some colleagues). &#60;/p&#62;
&#60;p&#62;We adquired a leaflabs maple r5 board, and I got all the procedure of using the maple ide, and flashing various examples. Therefore, I know that all the communication protocol throughout USB channel is properly working.&#60;/p&#62;
&#60;p&#62;Now, I am interested on the possibility to flash code that is produce by MATLAB/Simulink. To test this, I have created some simple example, which I can easily simulate and compile with Keil µVision IDE. I do this, because the code produced by MATLAB/Simulink is not in the format MAPLE IDE. From Keil µVision IDE I can produce either *.bin files or *.hex files, by setting the compilation with start in the area 0x8005000 as I got from reading on this forum. &#60;/p&#62;
&#60;p&#62;My problem now consists on flashing (transporting) this *.bin or *.hex file into my board, with a similar USB procedure as MAPLE IDE. I thought there would exist some easy tool in maple ide to do so, but I seem to be mistaken. I read around about the use of dfuse demo, and flash loader demo, but as I understand, they use different process than dfu-util.&#60;/p&#62;
&#60;p&#62;I would thank very much if somebody could help me figure out how to solve this issue, which problably is rather easy for some of you who are more familiar with this hardware unit. I would like to be able to flash the code, but still been able to use the MAPLE IDE for simpler tasks. &#60;/p&#62;
&#60;p&#62;I tried by the command line&#60;/p&#62;
&#60;p&#62;dfu-util -d 0110:1001 -a 0 -D file.bin&#60;/p&#62;
&#60;p&#62;under the windows cmd.exe, but I only get the message:&#60;br /&#62;
Lost device after reset, assuming prod_id was incremented by one&#60;br /&#62;
NO DFU capable USB device found&#60;/p&#62;
&#60;p&#62;Thanks in advance&#60;/p&#62;
&#60;p&#62;Dr. Pedro Xavier Miranda La Hera&#60;br /&#62;
Principal Research Engineer&#60;br /&#62;
==============================================&#60;/p&#62;
&#60;p&#62;Umeå Universitet&#60;br /&#62;
Tillämpad fysik och elektronik&#60;br /&#62;
SE-90187 Umeå&#60;br /&#62;
Sweden&#60;/p&#62;
&#60;p&#62;tel (office):  +46 (0)90 - 786 97 22&#60;br /&#62;
facsimile:     +46 (0)90 - 786 64 69&#60;br /&#62;
e-mail:       &#60;a href=&#34;mailto:xavier.lahera@tfe.umu.se&#34;&#62;xavier.lahera@tfe.umu.se&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
