<?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: Painfully slow uploads on Linux?</title>
		<link>http://forums.leaflabs.com/topic.php?id=1269</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:16:35 +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=1269" rel="self" type="application/rss+xml" />

		<item>
			<title>ventosus on "Painfully slow uploads on Linux?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1269#post-11622</link>
			<pubDate>Sat, 07 Jul 2012 13:55:55 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">11622@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;@tormod, I've checked the versions and you're right, I've accidentally installed an old package (v0.1) from the repos. v0.6 on 32bit is as slow as on 64bit ;-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tormod on "Painfully slow uploads on Linux?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1269#post-11619</link>
			<pubDate>Sat, 07 Jul 2012 05:03:24 +0000</pubDate>
			<dc:creator>tormod</dc:creator>
			<guid isPermaLink="false">11619@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Since I don't have a maple, I ported(*) and installed the maple bootloader to a development board to verify this issue. Both on 32-bit and 64-bit it takes a little more than 8 seconds to flash 16384 bytes on a medium-density STM32 (128KB of flash). This can be expected since the maple bootloader tells dfu-util to wait 511 ms after each page has been flashed. So if you get something faster it must be because you use an old dfu-util version which does not honour the time given by the bootloader. &#60;/p&#62;
&#60;p&#62;This is the &#34;offending&#34; code in the bootloader:&#60;code&#62;&#60;br /&#62;
          dfuAppStatus.bwPollTimeout0 = 0xFF; /* is this enough? */&#60;br /&#62;
          dfuAppStatus.bwPollTimeout1 = 0x01; /* is this enough? */&#60;/code&#62;&#60;br /&#62;
I would answer the question in the code comment with: Yes, more than enough :) For comparison, the example boot loader from ST uses 32 ms. The ST document AN2594 hints to 20 ms for a page erase and 20 us per word write which should add up to 25 ms, so 32 ms sounds reasonable. Note that for larger flash size with larger page sizes there is not necessarily one page write per DFU transfer block.&#60;/p&#62;
&#60;p&#62;This ought to be corrected in the maple bootloader, but meanwhile we can consider adding a quirk in dfu-util to overrule the bwPollTimeout returned from the maple.&#60;/p&#62;
&#60;p&#62;Tormod&#60;/p&#62;
&#60;p&#62;*) It was painful to hunt down the hardcoded port numbers in the bootloader code, and I forgot to remap the disconnect pin for a while. I believe this is improved in Necromant's patches.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "Painfully slow uploads on Linux?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1269#post-11549</link>
			<pubDate>Wed, 04 Jul 2012 16:27:55 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">11549@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I also have a slow upload rate (~10 seconds) on a 64-bit Archlinux for a maple mini. But I thought this is normal as I had no reference until today when I've uploaded some code from my notebook (32-bit, running Archlinux, too, same dfu-util 0.6) and it was 10x faster.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rosendo on "Painfully slow uploads on Linux?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1269#post-7607</link>
			<pubDate>Thu, 12 Jan 2012 20:32:31 +0000</pubDate>
			<dc:creator>rosendo</dc:creator>
			<guid isPermaLink="false">7607@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I don't know if it is of any help, but I am using windows 7 64 bit and the upload is also very slow! I also noticed that the more I upload the longer it gets! However, if I restart the computer it goes back to the original slowness, which would be around 10 seconds to flash &#34;Blink&#34;, and I get the same on both Maple Native or Maple Mini.&#60;/p&#62;
&#60;p&#62;After a day flashing many different stuff, flashing to Native was so slow that I decided to flash &#34;Blink&#34; for a test, and took more than 30 seconds!&#60;/p&#62;
&#60;p&#62;I would like to add that the slowest part (the one in which the screen spends 95% of the time) is at:&#60;/p&#62;
&#60;p&#62;Going to build using 'armcompiler' (ARM)&#60;br /&#62;
Compiling core.....&#60;/p&#62;
&#60;p&#62;When this one is finished, the verbose goes really fast. I kind of feel like the system is waiting for something, and then looks like it reaches a timeout, where he just proceeds.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>maniacbug on "Painfully slow uploads on Linux?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1269#post-7582</link>
			<pubDate>Thu, 12 Jan 2012 00:10:56 +0000</pubDate>
			<dc:creator>maniacbug</dc:creator>
			<guid isPermaLink="false">7582@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi, has anyone else seen uploads from Linux being extremely slow compared to other platforms?  I've been working on Mac so far, and uploads happen super fast.  Just brought up an environment on Linux, and it takes 1:15 to upload 180k.  Using dfu-util 0.3 on Ubuntu 11.10 x64.  &#60;/p&#62;
&#60;p&#62;Wonder if it has anything to do with this line, &#34;You appear to be using 64-bit Linux. Let us know if this works.&#34;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
