<?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: Reseting to &#34;Factory Defaults&#34;</title>
		<link>http://forums.leaflabs.com/topic.php?id=178</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:13:47 +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=178" rel="self" type="application/rss+xml" />

		<item>
			<title>mbolivar on "Reseting to &#34;Factory Defaults&#34;"</title>
			<link>http://forums.leaflabs.com/topic.php?id=178#post-5556</link>
			<pubDate>Wed, 06 Jul 2011 11:57:26 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">5556@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;samtal,&#60;/p&#62;
&#60;p&#62;see here for why you don't need to select a serial port after the first time you upload a new bootloader:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=891#post-5468&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=891#post-5468&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>samtal on "Reseting to &#34;Factory Defaults&#34;"</title>
			<link>http://forums.leaflabs.com/topic.php?id=178#post-5520</link>
			<pubDate>Tue, 05 Jul 2011 07:08:05 +0000</pubDate>
			<dc:creator>samtal</dc:creator>
			<guid isPermaLink="false">5520@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Worked for me too.&#60;br /&#62;
Thanks.&#60;br /&#62;
Strange, but I could not belive I can try to program the Maple if it was not recognized as a serial port (there was no port number to use for the IDE).&#60;br /&#62;
It works nice and clean, the port number showed up after program load (I used one of the example programs fore that).&#60;br /&#62;
samtal
&#60;/p&#62;</description>
		</item>
		<item>
			<title>structuresound on "Reseting to &#34;Factory Defaults&#34;"</title>
			<link>http://forums.leaflabs.com/topic.php?id=178#post-1933</link>
			<pubDate>Fri, 22 Oct 2010 20:50:52 +0000</pubDate>
			<dc:creator>structuresound</dc:creator>
			<guid isPermaLink="false">1933@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;worked like a charm, thanks so much. Glad this is here now for future readers too!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "Reseting to &#34;Factory Defaults&#34;"</title>
			<link>http://forums.leaflabs.com/topic.php?id=178#post-1920</link>
			<pubDate>Fri, 22 Oct 2010 11:44:50 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">1920@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;When you reflash the bootloader, there is no code in RAM or Flash to jump to, so the device just idles in the &#34;permanent bootloader mode&#34; for a while. This is expected. &#60;/p&#62;
&#60;p&#62;Now that youve got it in permanent bootloader mode, you shouldnt expect it to come up as a serial or network device. Its not! its a DFU device, patiently awaiting new code. The auto-reset from the IDE during programming will fail, thats OK - because its already reset and waiting for new code. &#60;/p&#62;
&#60;p&#62;You should be able to upload code from the IDE in this state. You can verify that the device is coming up as expected by running &#60;/p&#62;
&#60;p&#62;dfu-util -l&#60;/p&#62;
&#60;p&#62;if you dont have dfu-util installed, you can get it from your maple install directory. On a mac, you can descend into the application folder, from there - dfu-util is located at:&#60;/p&#62;
&#60;p&#62;hardware/tools/arm/bin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>structuresound on "Reseting to &#34;Factory Defaults&#34;"</title>
			<link>http://forums.leaflabs.com/topic.php?id=178#post-1919</link>
			<pubDate>Fri, 22 Oct 2010 00:31:57 +0000</pubDate>
			<dc:creator>structuresound</dc:creator>
			<guid isPermaLink="false">1919@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I recently uploaded the bootloader via serial to my R3 using the python loader from shell (OS X) i.e.&#60;/p&#62;
&#60;p&#62;python stm32loader.py -p /dev/tty.usbserial-A8007ZPL -evw /maple_boot-rev3-9c5f8e.bin&#60;/p&#62;
&#60;p&#62;the python script wrote, read, and verified, now when I reset the maple board I get stuck in &#34;slow blinky&#34; (or permanent bootloader) and the maple doesn't show up as a network or serial device. Any ideas?&#60;/p&#62;
&#60;p&#62;I was messing around with JTAG stuff earlier so perhaps I've messed something else up!&#60;/p&#62;
&#60;p&#62;Edit: I know this an old thread but it seemed a relevant to continue?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DaemonMaker on "Reseting to &#34;Factory Defaults&#34;"</title>
			<link>http://forums.leaflabs.com/topic.php?id=178#post-1283</link>
			<pubDate>Wed, 15 Sep 2010 00:36:04 +0000</pubDate>
			<dc:creator>DaemonMaker</dc:creator>
			<guid isPermaLink="false">1283@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;To answer your questions, yes it does run blinky. It also successfully runs the programs I upload with the IDE.&#60;/p&#62;
&#60;p&#62;git tells me that I'm on the master branch for both code bases. Should I be using stable by chance?&#60;/p&#62;
&#60;p&#62;1) This fixed it (Thanks!). The IDE shows 6 options under Tools -&#38;gt; Serial Port&#60;br /&#62;
 /dev/tty.Bluetooth-Modem&#60;br /&#62;
 /dev/cu.Bluetooth-Modem&#60;br /&#62;
 /dev/tty.Bluetooth-PDA-Sync&#60;br /&#62;
 /dev/cu.Bluetooth-PDA-Sync&#60;br /&#62;
 /dev/tty.usbmodem411&#60;br /&#62;
 /dev/cu.usbmodem411&#60;/p&#62;
&#60;p&#62;I had it set to use /dev/tty.Bluetooh-Modem. When it's set to use /dev/tty.usbmodem411 it works just fine.&#60;/p&#62;
&#60;p&#62;2) Yes, this works just as you describe.&#60;/p&#62;
&#60;p&#62;Thanks again,&#60;br /&#62;
Dustin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "Reseting to &#34;Factory Defaults&#34;"</title>
			<link>http://forums.leaflabs.com/topic.php?id=178#post-1276</link>
			<pubDate>Tue, 14 Sep 2010 18:39:05 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">1276@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;It is strange that it worked before but not after uploading the fresh bootloader. The version you got from git is the correct version. &#60;/p&#62;
&#60;p&#62;As you have described things, your bootloader is functioning properly. If you hit reset and you successfully upload code, then the bootloader did its job. After reset it came up, enumerated itself to your computer, and ate code over dfu from the IDE and ran it (i assume it ran it...is it running blinky?). &#60;/p&#62;
&#60;p&#62;The problem is that when you try and upload more code, the board does not reset by itself, like its supposed to. The auto-reset feature is a function of the user code - hidden inside libmaple. Can you verify some things for me:&#60;br /&#62;
1) when your board is running blinky does the Maple Serial port exist? (does SerialUSB.print work, or does the device come up in whatever listing your OS provides? I think in mac it should come up as a modem device labeled Maple Virtual COM)&#60;br /&#62;
2) if you use permanent bootloader mode, are you successful? To do this, hit reset immediately followed by pressing and holding the secondary button labeled BUT. You should notice that the bootloader transitions from quick blinks to slow blinks after reset, the idea is to have the BUT button held down when this transition occurs. The LED should now blink slowly forever. Now try and upload code from the IDE - it should report something about &#34;Auto reset failed&#34; and then sucessfuly upload code.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DaemonMaker on "Reseting to &#34;Factory Defaults&#34;"</title>
			<link>http://forums.leaflabs.com/topic.php?id=178#post-1274</link>
			<pubDate>Tue, 14 Sep 2010 18:14:52 +0000</pubDate>
			<dc:creator>DaemonMaker</dc:creator>
			<guid isPermaLink="false">1274@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Poslathian:&#60;/p&#62;
&#60;p&#62;Unfortunately this didn't work.&#60;/p&#62;
&#60;p&#62;Just to be clear, I can only upload code if I push reset [em]while[/em] the IDE is trying to upload.&#60;/p&#62;
&#60;p&#62;I suspect I used the wrong git branch. The last thing I did was clone &#60;a href=&#34;http://github.com/leaflabs/libmaple.git&#34; rel=&#34;nofollow&#34;&#62;http://github.com/leaflabs/libmaple.git&#60;/a&#62; and &#60;a href=&#34;http://github.com/leaflabs/maple-bootloader.git&#34; rel=&#34;nofollow&#34;&#62;http://github.com/leaflabs/maple-bootloader.git&#60;/a&#62;. I then compiled the bootloader and uploaded it. Finally I compiled and uploaded the blinky example. From there I tried the IDE and encountered the error described above.&#60;/p&#62;
&#60;p&#62;I use Ubuntu to compile and upload code from git but I use the IDE under OSX. Before I changed the firmware there was no problem. I'm using v00018 of the IDE and I'm using the CodeSourcery EABI tool chain under Linux.&#60;/p&#62;
&#60;p&#62;I'm not sure if this is the detail you were looking for so please feel free to point out something I may have missed.&#60;/p&#62;
&#60;p&#62;Dustin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "Reseting to &#34;Factory Defaults&#34;"</title>
			<link>http://forums.leaflabs.com/topic.php?id=178#post-1261</link>
			<pubDate>Tue, 14 Sep 2010 14:46:18 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">1261@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Dustin,&#60;br /&#62;
   If you push reset, then you can succesfully upload a program? If so, upload a program - from the IDE - into FLASH. I think what is happening is this.&#60;/p&#62;
&#60;p&#62;- The bootloader only runs momentarily after reset, and then jumps to user code. If no user code is preset is will idle in the bootloader. If user code is present in RAM it will jump there. Finally it will jump to flash if there user code there. The check for user code is naiive, and user binaries are not CRC checked or verified, it does happen (rarely) that corrupted user binaries are uploaded.&#60;/p&#62;
&#60;p&#62;- When you program the board from the IDE, the reset is initiated via a command over the serial port. This little auto-reset daemon is actually compiled in as part of your user code. Thus for auto-reset to work, you must&#60;br /&#62;
A) be running valid user code that contains the auto-reset daemon&#60;br /&#62;
B) have the serial port selected in the IDE menu, or have whatever command line tools properly configured. &#60;/p&#62;
&#60;p&#62;I am not sure if this is exactly your problem, but perhaps some of it makes sense? Can you give some more details?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DaemonMaker on "Reseting to &#34;Factory Defaults&#34;"</title>
			<link>http://forums.leaflabs.com/topic.php?id=178#post-1168</link>
			<pubDate>Sat, 11 Sep 2010 22:59:38 +0000</pubDate>
			<dc:creator>DaemonMaker</dc:creator>
			<guid isPermaLink="false">1168@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello all:&#60;/p&#62;
&#60;p&#62;I am the proud new owner of a Leaf Maple. I've been very impressed by this project. Earlier today I grabbed a copy of the i2c branch of libmaple in hopes to contribute a little. Unfortunately I made a mistake that prevented me from uploading programs! To correct the problem I soldered on a JTAG header and flashed the chip. This left me without the ability to upload from the Maple IDE so I grabbed a copy of maple-bootloader and flashed the chip again. Now when I try to upload a program via the Maple IDE I see the following output:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
error resetting after download: usb_reset(ResetDevice): no connection to an IOService&#60;br /&#62;
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present&#60;br /&#62;
Done!&#60;br /&#62;
Resetting USB to switch back to runtime mode&#60;br /&#62;
Going to build using 'make' (ARM)&#60;br /&#62;
	Compiling core...&#60;br /&#62;
	Compiling any libs...&#60;br /&#62;
	Compiling the sketch...&#60;br /&#62;
	running linker asynchronously...&#60;br /&#62;
	running obj copy asynchronously...&#60;br /&#62;
	running size asynchronously...&#60;/p&#62;
&#60;p&#62;/var/folders/iJ/iJPtq4QNETugjvzFG94Jrk+++TI/-Tmp-/build4734736371581637589.tmp/Blink.cpp.bin  :&#60;br /&#62;
section    size   addr&#60;br /&#62;
.data   12360      0&#60;br /&#62;
Total   12360&#60;/p&#62;
&#60;p&#62;Binary sketch size is reported above. Check it against a 17000 byte maximum.&#60;br /&#62;
Loading via dfu-util&#60;br /&#62;
Resetting to bootloader via DTR pulse&#60;/p&#62;
&#60;p&#62;Reset via USB Serial Failed! Did you select the serial right serial port?&#60;br /&#62;
Assuming the board is in perpetual bootloader mode and continuing to attempt dfu programming...&#60;/p&#62;
&#60;p&#62;Searching for DFU device [1EAF:0003]...&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;The IDE pauses on this last line. If I push reset during the pause then it will find the board and upload the program otherwise it will fail.&#60;/p&#62;
&#60;p&#62;Thus far I've not been able to determine how to correct this issue. Is there documentation that outlines the proper method of returning the board to factory condition firmware-wise?&#60;/p&#62;
&#60;p&#62;TIA,&#60;br /&#62;
Dustin
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
