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

		<item>
			<title>aliosha on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185&amp;page=2#post-12167</link>
			<pubDate>Fri, 03 Aug 2012 02:58:44 +0000</pubDate>
			<dc:creator>aliosha</dc:creator>
			<guid isPermaLink="false">12167@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I made a diff over both directories. the only changes that were shown were in binary files... :-(&#60;/p&#62;
&#60;p&#62;When I upload the windows compiled binary with linux it works. so it is not the upload...&#60;/p&#62;
&#60;p&#62;I'll send you the zip this evening...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185&amp;page=2#post-12132</link>
			<pubDate>Tue, 31 Jul 2012 16:09:58 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">12132@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Might as well get everything. If you can just bundle up the entire Linux build directory into a .tar.gz and send it our way (either by posting a link or sending to &#60;a href=&#34;mailto:info@leaflabs.com&#34;&#62;info@leaflabs.com&#60;/a&#62;), I'll try to reproduce the bad behavior here.&#60;/p&#62;
&#60;p&#62;Please use a small program! Blinky will do just fine.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aliosha on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185&amp;page=2#post-12093</link>
			<pubDate>Sat, 28 Jul 2012 13:05:54 +0000</pubDate>
			<dc:creator>aliosha</dc:creator>
			<guid isPermaLink="false">12093@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Yes. The double reset is independent of the machine it is plugged in. it also occurs when I have the mini in an USB power supply. &#60;/p&#62;
&#60;p&#62;I could send you all temporary files and the bin of both IDEs (WinXP and Ubuntu) and you cold try to find the difference, if you like...&#60;/p&#62;
&#60;p&#62;What would you need?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185&amp;page=2#post-12072</link>
			<pubDate>Fri, 27 Jul 2012 16:42:14 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">12072@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;If you upload the Ubuntu binary, then connect the board to the Windows machine, do you still need the double reset?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aliosha on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185&amp;page=2#post-12060</link>
			<pubDate>Fri, 27 Jul 2012 14:26:31 +0000</pubDate>
			<dc:creator>aliosha</dc:creator>
			<guid isPermaLink="false">12060@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The bin files are not the same. See:&#60;/p&#62;
&#60;p&#62;alexis@milla:~/Dropbox/Firmware$ md5sum Blink.cpp_Ubuntu.bin&#60;br /&#62;
2d28d5d0a5d857a89fe41f0b403ab964  Blink.cpp_Ubuntu.bin&#60;br /&#62;
alexis@milla:~/Dropbox/Firmware$ md5sum Blink_XP.cpp.bin&#60;br /&#62;
2b218c2ea1bc873f5d5ec5fc84aedbab  Blink_XP.cpp.bin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185&amp;page=2#post-12058</link>
			<pubDate>Fri, 27 Jul 2012 13:40:00 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">12058@http://forums.leaflabs.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
any sugestions how to fix the ubuntu bug?
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;No idea, I'm afraid. I've never had this problem on Ubuntu (we've tested with 10.04 and 12.04).&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
A test I'd like to try is: compile and upload using command-line toolchain. how do I do this with a sketch made in the IDE?
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;The quick and dirty approach is to compile using the IDE, then go to the build folder (which you'll be able to find by setting build.verbose to true in your preferences file) and invoke dfu-util yourself on the resulting .bin.&#60;/p&#62;
&#60;p&#62;If you want to use the full command line toolchain, you'll need to make your code valid C++. Typically this just means adding prototypes, some includes, as well as a call to init() and the standard main() (see the libmaple main.cpp.example file for how to do the init() and main() parts).&#60;/p&#62;
&#60;p&#62;I can't see why it would make a difference, though.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aliosha on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185&amp;page=2#post-12055</link>
			<pubDate>Fri, 27 Jul 2012 11:04:49 +0000</pubDate>
			<dc:creator>aliosha</dc:creator>
			<guid isPermaLink="false">12055@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I have a workaround: use XP. when I upload the blink sketch using XP (I don't like and use only rarely) everything is fine. mini comes up after every reset...&#60;/p&#62;
&#60;p&#62;any sugestions how to fix the ubuntu bug? &#60;/p&#62;
&#60;p&#62;A test I'd like to try is: compile and upload using command-line toolchain. how do I do this with a sketch made in the IDE?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aliosha on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185&amp;page=2#post-12054</link>
			<pubDate>Fri, 27 Jul 2012 10:38:39 +0000</pubDate>
			<dc:creator>aliosha</dc:creator>
			<guid isPermaLink="false">12054@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The new minis arrived from seed. Test are no good. When I take a &#34;virgin&#34; mini plug it in ad reset it (using button or reset.py) it comes up again. after I upload the blink sketch I have again the misterious &#34;2-reset&#34; behaviour.&#60;/p&#62;
&#60;p&#62;So it definitely is a software problem, but where???
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185#post-11999</link>
			<pubDate>Wed, 25 Jul 2012 13:24:57 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">11999@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;ok. if it turns out busted, please contact us at &#60;a href=&#34;mailto:info@leaflabs.com&#34;&#62;info@leaflabs.com&#60;/a&#62; for a replacement.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aliosha on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185#post-11971</link>
			<pubDate>Tue, 24 Jul 2012 16:12:43 +0000</pubDate>
			<dc:creator>aliosha</dc:creator>
			<guid isPermaLink="false">11971@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I'll know tomorrow. ordered 3 more minis from seeedstudios and they left hong kong on sunday. I'll tell you how they behave...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185#post-11970</link>
			<pubDate>Tue, 24 Jul 2012 13:06:04 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">11970@http://forums.leaflabs.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
connected on a usb power supply I have the same behaviour. I still need 2 resets.
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;That's a good test, and a mysterious result. It does rule out USB problems. We've never had reports of this behavior before, and I have no idea what's causing it. It sounds like the board is defective.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aliosha on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185#post-11969</link>
			<pubDate>Tue, 24 Jul 2012 11:08:29 +0000</pubDate>
			<dc:creator>aliosha</dc:creator>
			<guid isPermaLink="false">11969@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;just made another test that may be helpful: connected on a usb power supply I have the same behaviour. I still need 2 resets. so the USB connection is probably not the cause of my troubles.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aliosha on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185#post-11954</link>
			<pubDate>Tue, 24 Jul 2012 00:26:02 +0000</pubDate>
			<dc:creator>aliosha</dc:creator>
			<guid isPermaLink="false">11954@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Nope, no change visible. board blinks every 2nd reset as before. but thanks for the try!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185#post-11946</link>
			<pubDate>Mon, 23 Jul 2012 17:23:07 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">11946@http://forums.leaflabs.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
but if init() is crashing, why every 2nd time?&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;Yes, that's an interesting question, and one I'm curious to know the answer to.&#60;/p&#62;
&#60;p&#62;The reason I believe init() is freezing up is because you say the board doesn't blink when the reset fails to bring up a /dev/ttyACM. Since the blinky program is known to work, that means control never gets to your setup()/loop(). So something before went wrong, and the likely suspect is init(), since the rest of the libmaple startup code is very simple and unlikely to be causing the bug.&#60;/p&#62;
&#60;p&#62;Not having the right board selected for a single upload is almost definitely &#60;strong&#62;not&#60;/strong&#62; the cause of the problem, as you've overwritten the bad first upload every single time you've uploaded another program.&#60;/p&#62;
&#60;p&#62;Let's try a simple test to see whether or not the USB code in init() is to blame.&#60;/p&#62;
&#60;p&#62;In the Maple IDE v0.0.12 directory, the source code for init() is in the file hardware/leaflabs/cores/maple/boards.cpp. Open it up; init() is the first function in the file. It looks like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;void init(void) {
    setupFlash();
    setupClocks();
    setupNVIC();
    systick_init(SYSTICK_RELOAD_VAL);
    gpio_init_all();
    afio_init();
    setupADC();
    setupTimers();
    setupUSB();
    boardInit();
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Here are the steps to follow to test things out:&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;Close Maple IDE if you have it open.&#60;/li&#62;
&#60;li&#62;In init(), comment out the line that says &#60;code&#62;setupUSB();&#60;/code&#62; and save boards.cpp. (It's the second-to-last line in the function.) &#60;/li&#62;
&#60;li&#62;Reopen Maple IDE, and recompile/upload the blinky sketch to the Maple Mini.
&#60;/li&#62;
&#60;li&#62;Reset the board a few times.
&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;If there is something wrong with the way USB enumeration is working, then the board should blink every time you reset. Does that happen?&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;IMPORTANT: though the board should blink, the /dev/ttyACM will not come up, since you commented out setupUSB(). Make sure to uncomment setupUSB() after you're done with the test, so things work normally afterwards.&#60;/strong&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>aliosha on "Maple mini not available after boot"</title>
			<link>http://forums.leaflabs.com/topic.php?id=2185#post-11945</link>
			<pubDate>Mon, 23 Jul 2012 16:13:59 +0000</pubDate>
			<dc:creator>aliosha</dc:creator>
			<guid isPermaLink="false">11945@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;i'm using maple ide 0.0.12 on ubuntu 32 bit and the libmaple that came with it. &#60;/p&#62;
&#60;p&#62;so the blink sketch is the example provided with the ide. nothing changed...&#60;/p&#62;
&#60;p&#62;but if init() is crashing, why every 2nd time? because on every second reset it works well, I have developed a lot of code on it. see: &#60;a href=&#34;https://github.com/everycook/EveryCook_Firmware&#34; rel=&#34;nofollow&#34;&#62;https://github.com/everycook/EveryCook_Firmware&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;but now the firmware is ready and for the integration in my machine the reset problem is really annoying :-(&#60;/p&#62;
&#60;p&#62;I remember that at my very first upload I had the wrong board selected. may that be a reason? see: &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=1215&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=1215&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I can't remember how the board worked before that...
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
