<?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 much RAM and FLASH memory is available for sketches on Maple Rev 3</title>
		<link>http://forums.leaflabs.com/topic.php?id=137</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:22:33 +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=137" rel="self" type="application/rss+xml" />

		<item>
			<title>poslathian on "How much RAM and FLASH memory is available for sketches on Maple Rev 3"</title>
			<link>http://forums.leaflabs.com/topic.php?id=137#post-879</link>
			<pubDate>Sun, 29 Aug 2010 13:38:34 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">879@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I think you may be right. It used to be that the bootloader stayed running in the backround all the time, and provided the interface for the USB handler via callbacks from user code. This is now longer the case, so we can probably return the RAM used by the bootloader back to the user code. Thanks for pointing this out!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>CarlO on "How much RAM and FLASH memory is available for sketches on Maple Rev 3"</title>
			<link>http://forums.leaflabs.com/topic.php?id=137#post-873</link>
			<pubDate>Sat, 28 Aug 2010 16:18:22 +0000</pubDate>
			<dc:creator>CarlO</dc:creator>
			<guid isPermaLink="false">873@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Is there any reason that the sketch can't use all 20K of Ram when using the &#34;FLASH&#34; profile?  It seems like the bootloader and the sketch won't need the ram for stack and heap space at the same time if the code is all stored in flash.  After reset, the bootloader will build it's stack in ram.  Once the bootloader does the jump to the sketch code, the sketch will build it's stack in ram.  &#60;/p&#62;
&#60;p&#62;I have been doing some testing on this and so far have not had any problems.  Anyone see any hidden issues with this approach? &#60;/p&#62;
&#60;p&#62;CarlO
&#60;/p&#62;</description>
		</item>
		<item>
			<title>leaflabsandy on "How much RAM and FLASH memory is available for sketches on Maple Rev 3"</title>
			<link>http://forums.leaflabs.com/topic.php?id=137#post-826</link>
			<pubDate>Wed, 25 Aug 2010 16:14:51 +0000</pubDate>
			<dc:creator>leaflabsandy</dc:creator>
			<guid isPermaLink="false">826@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=107&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=107&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "How much RAM and FLASH memory is available for sketches on Maple Rev 3"</title>
			<link>http://forums.leaflabs.com/topic.php?id=137#post-825</link>
			<pubDate>Wed, 25 Aug 2010 16:14:18 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">825@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The &#34;61000 byte maximum&#34; issue was a mistake and was fixed in this commit (to be included in v0.0.7):&#60;br /&#62;
&#60;a href=&#34;http://github.com/leaflabs/maple-ide/commit/119edd46a245ff544698c2b0166a0361c494ff28&#34; rel=&#34;nofollow&#34;&#62;http://github.com/leaflabs/maple-ide/commit/119edd46a245ff544698c2b0166a0361c494ff28&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;20k and 128k are the full hardware memory sizes. During early development of the maple bootloader we decided to be very conservative and reserve 3k of RAM and 28k of FLASH exclusively for the bootloaded. The bootloader doesn't actually use nearly that much space, but we wanted to make sure that special or customized versions of the bootloader would be compatible with the IDE. 100kb of FLASH also seemed unimaginably huge and plenty for any use. At this point libmaple has become somewhat bloated and even simple blinky programs barely fit in the RAM section, and audio effects lookup tables could make use of some of the 28k of reserved FLASH. For context, bootloaders for other chips are very frequently under a thousand bytes, and our USB code should not add more than a couple KB beyond that. &#60;/p&#62;
&#60;p&#62;Looking forwards it would be nice to &#34;reclaim&#34; this reserved space, but as this will require modifications to the IDE, libmaple, and the bootloader, as well as careful testing to ensure compatibility with older bootloaders, it is not at the top of our development queue. We would probably rewrite the bootloader first to see how small we can make it.&#60;/p&#62;
&#60;p&#62;We are thinking of ways to reduce the base sketch sizes, especially now that almost all functionality has been added and the API is stabilizing.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "How much RAM and FLASH memory is available for sketches on Maple Rev 3"</title>
			<link>http://forums.leaflabs.com/topic.php?id=137#post-823</link>
			<pubDate>Wed, 25 Aug 2010 15:48:35 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">823@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;August 25, 2010&#60;/p&#62;
&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I am using a Maple Rev 3 board with IDE 0.0.6 on a Pentium III Thinkpad (512 meg RAM) with USB 1.1 running Windows XP Professional SP3.&#60;/p&#62;
&#60;p&#62;I am wondering if my unpredictable experience with uploading sketches (yes, I was using the problematic SerialUSB.print() function) is related to the amount of memory reported to be available after I compile a sketch.  My problem is described here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=128&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=128&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The STM32F103RB chip used on the Maple R3 board should have 20KB RAM and 128KB FLASH memory.&#60;/p&#62;
&#60;p&#62;How much of the 20KB RAM and the 128KB FLASH memory is available for sketches?&#60;/p&#62;
&#60;p&#62;I am asking because when I compile the Blink example I am surprised by the amount of &#34;available&#34; memory.&#60;/p&#62;
&#60;p&#62;Here is my data:&#60;/p&#62;
&#60;p&#62;1) Maple R3 set to upload to &#34;LeafLabs R3 Maple RAM&#34;&#60;/p&#62;
&#60;p&#62;Compile reports:&#60;/p&#62;
&#60;p&#62;Total   12296&#60;br /&#62;
Binary sketch size is reported above. Check it against a 17000 byte maximum.&#60;/p&#62;
&#60;p&#62;Question: Where are the missing &#34;3KB&#34;?&#60;/p&#62;
&#60;p&#62;2) Maple R3 set to upload to &#34;LeafLabs Maple R3 FLASH&#34;&#60;/p&#62;
&#60;p&#62;Compile reports:&#60;/p&#62;
&#60;p&#62;Total   12296&#60;br /&#62;
Binary sketch size is reported above. Check it against a 61000 byte maximum.&#60;/p&#62;
&#60;p&#62;Question: Where is the missing &#34;67KB&#34;?&#60;/p&#62;
&#60;p&#62;I am not surprised that the full 20KB and 128KB bytes are not available, but I am surprised that so much is not available (especially when the sketch is compiled to upload to the FLASH memory).&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Stephen from NYC
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
