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

		<item>
			<title>importer on "How-To Unbrick Your Maple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=19#post-87</link>
			<pubDate>Sat, 03 Apr 2010 14:57:05 +0000</pubDate>
			<dc:creator>importer</dc:creator>
			<guid isPermaLink="false">87@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;[on Thu 07 of Jan., 2010 19:36 EST, by poslathian]&#60;/p&#62;
&#60;p&#62;It was suggested that we make the bootloader timeout a bit longer to avoid this sort of issue. To be fair, bricking your maple this way is rare, and its not really bricked 'permanently'. Also, the library issue that caused your maple to become bricked has since been fixed ;)&#60;/p&#62;
&#60;p&#62;svn update!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>importer on "How-To Unbrick Your Maple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=19#post-85</link>
			<pubDate>Sat, 03 Apr 2010 14:55:50 +0000</pubDate>
			<dc:creator>importer</dc:creator>
			<guid isPermaLink="false">85@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;[on Thu 07 of Jan., 2010 02:38 EST, by zhanx]&#60;/p&#62;
&#60;p&#62;If your like me you forget things. and once in a while its not go to forget them. It may result in a few issues.&#60;/p&#62;
&#60;p&#62;Like you uploaded something to the Flash and now it don't work right.&#60;/p&#62;
&#60;p&#62;This is done on ubuntu using the lastest svn (95)&#60;/p&#62;
&#60;p&#62;Navigate to here:&#60;/p&#62;
&#60;p&#62;*/leaflabs-read-only/trunk/library/src&#60;/p&#62;
&#60;p&#62;edit your main.cpp&#60;/p&#62;
&#60;p&#62;here is the default setup for the file&#60;/p&#62;
&#60;p&#62;int ledPin = 13;&#60;/p&#62;
&#60;p&#62;int toggle=0;&#60;/p&#62;
&#60;p&#62;void setup() {&#60;/p&#62;
&#60;p&#62;pinMode(ledPin,OUTPUT);&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;void loop() {&#60;/p&#62;
&#60;p&#62;digitalWrite(ledPin,HIGH);&#60;/p&#62;
&#60;p&#62;delay(200);&#60;/p&#62;
&#60;p&#62;digitalWrite(ledPin,LOW);&#60;/p&#62;
&#60;p&#62;delay(200);&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;int main(void) {&#60;/p&#62;
&#60;p&#62;init();&#60;/p&#62;
&#60;p&#62;setup();&#60;/p&#62;
&#60;p&#62;while (1) {&#60;/p&#62;
&#60;p&#62;loop();&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;return 0;&#60;/p&#62;
&#60;p&#62;}&#60;/p&#62;
&#60;p&#62;Which is the blinky program. I included it so you can undo any changes that you may have made.&#60;/p&#62;
&#60;p&#62;the rest needs to be ran in the terminal.&#60;/p&#62;
&#60;p&#62;make sure your path is :&#60;/p&#62;
&#60;p&#62;~/leaflabs-read-only/trunk/library$&#60;/p&#62;
&#60;p&#62;$make clean&#60;/p&#62;
&#60;p&#62;$make LINKER=lanchon-stm32-user-rom.ld DEFFLAGS=VECT_TAB_ROM&#60;/p&#62;
&#60;p&#62;The next command get ready but dont hit enter yet:&#60;br /&#62;
$sudo make programFlash&#60;/p&#62;
&#60;p&#62;unplug your board plug it in. Notice the series of flashes?&#60;/p&#62;
&#60;p&#62;5 fast, 3 slow. On the second slow blink hit enter.&#60;/p&#62;
&#60;p&#62;This is what you should see:&#60;br /&#62;
~/leaflabs-read-only/trunk/library$ sudo make programFlash&#60;br /&#62;
dfu-util -a1 -d 0110:1001 -D build/main.bin -R&#60;br /&#62;
dfu-util - (C) 2007-2008 by OpenMoko Inc.&#60;br /&#62;
This program is Free Software and has ABSOLUTELY NO WARRANTY&#60;/p&#62;
&#60;p&#62;Opening USB Device 0x0110:0x1001...&#60;br /&#62;
Claiming USB DFU Runtime Interface...&#60;br /&#62;
Determining device status: state = appIDLE, status = 0&#60;br /&#62;
Device really in Runtime Mode, send DFU detach request...&#60;br /&#62;
Resetting USB...&#60;br /&#62;
Opening USB Device...&#60;br /&#62;
Found Runtime: 0x0110:0x1001 devnum=12, cfg=0, intf=0, alt=1, name=&#34;UNDEFINED&#34;&#60;br /&#62;
Claiming USB DFU Interface...&#60;br /&#62;
Setting Alternate Setting ...&#60;br /&#62;
Determining device status: state = dfuIDLE, status = 0&#60;br /&#62;
dfuIDLE, continuing&#60;br /&#62;
Transfer Size = 0x0400&#60;br /&#62;
bytes_per_hash=115&#60;br /&#62;
Starting download: ################################################## finished!&#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;/p&#62;
&#60;p&#62;This is what you might get:&#60;/p&#62;
&#60;p&#62;~/leaflabs-read-only/trunk/library$ sudo make programFlash&#60;br /&#62;
dfu-util -a1 -d 0110:1001 -D build/main.bin -R&#60;br /&#62;
dfu-util - (C) 2007-2008 by OpenMoko Inc.&#60;br /&#62;
This program is Free Software and has ABSOLUTELY NO WARRANTY&#60;/p&#62;
&#60;p&#62;No DFU capable USB device found&#60;br /&#62;
make: *** programFlash Error 1&#60;/p&#62;
&#60;p&#62;You missed the window keep trying. it will take a couple of tries to get it. I kept hammering at it. Took a couple of tries but i got it.&#60;/p&#62;
&#60;p&#62;After you see the Done! You should be all set. You can continue back with the IDE and your normally scheduled day.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
