<?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: Keep flash pages while reflashing bootloader only</title>
		<link>http://forums.leaflabs.com/topic.php?id=1059</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:22:56 +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=1059" rel="self" type="application/rss+xml" />

		<item>
			<title>mbolivar on "Keep flash pages while reflashing bootloader only"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1059#post-6737</link>
			<pubDate>Mon, 03 Oct 2011 16:22:39 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">6737@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi samtal,&#60;/p&#62;
&#60;p&#62;Unfortunately, based on your description, it seems that currently, your best bet is to modify the bootloader. This will require knowledge of C. More information on the bootloader is available here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://leaflabs.com/docs/bootloader.html&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/bootloader.html&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>samtal on "Keep flash pages while reflashing bootloader only"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1059#post-6735</link>
			<pubDate>Mon, 03 Oct 2011 04:25:12 +0000</pubDate>
			<dc:creator>samtal</dc:creator>
			<guid isPermaLink="false">6735@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Can anyone answer the question or advice on how to avoid erasure of the entire flash when re-flashing?&#60;br /&#62;
This is most annoying phenomenon when combined with the USB port instability, that necessitates frequent reflash (occasionally this is the only way out...).&#60;br /&#62;
samtal
&#60;/p&#62;</description>
		</item>
		<item>
			<title>samtal on "Keep flash pages while reflashing bootloader only"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1059#post-6607</link>
			<pubDate>Mon, 26 Sep 2011 05:03:26 +0000</pubDate>
			<dc:creator>samtal</dc:creator>
			<guid isPermaLink="false">6607@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;A reminder:&#60;br /&#62;
I made a flash read/write/erase demo that can be used to easily test the flash.&#60;br /&#62;
It's on &#60;a href=&#34;http://pastebin.com/h0CxGRQ7&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/h0CxGRQ7&#60;/a&#62;.  (revised 25 sept.)&#60;br /&#62;
samtal.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>samtal on "Keep flash pages while reflashing bootloader only"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1059#post-6593</link>
			<pubDate>Sun, 25 Sep 2011 15:14:37 +0000</pubDate>
			<dc:creator>samtal</dc:creator>
			<guid isPermaLink="false">6593@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
Thanks poslathian and mbolivar,&#60;br /&#62;
As mbolivar wrote, I use the Maple IDE and reflash using the Python.&#60;br /&#62;
Following your post, I rechecked using the easy flash program I wrote, and unfortunately I reassured that when reflashing, the entire flash is cleared.&#60;br /&#62;
I wrote data into page 126 which is the next to last, and after reflashing (and reloading my program for the test) although the bootloader only loads pages 0 through 16, I found out that page 126 was also clear.&#60;br /&#62;
My assumption is that the reflash uses the global erase command.&#60;br /&#62;
I use the two last pages for my permanent data (calibration data) that must be reloaded each time I reflash.&#60;br /&#62;
The reflash in itself is a burden - it is mainly the result of USB problems, for which reason I use now mainly one of the Serial ports rather than the USB.&#60;br /&#62;
Will there be a cure to the unstable Maple USB??
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Keep flash pages while reflashing bootloader only"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1059#post-6526</link>
			<pubDate>Thu, 22 Sep 2011 13:34:26 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">6526@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;poslathian -- I believe samtal is using the IDE, so that would be the usual flash upload.&#60;/p&#62;
&#60;p&#62;samtal, the bootloader should only be overwriting the pages that it needs. Therefore, if your code doesn't occupy all of flash, the pages at the end of available flash should not be overwritten. Try using the last couple of pages of flash as your stable memory, perhaps?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "Keep flash pages while reflashing bootloader only"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1059#post-6523</link>
			<pubDate>Thu, 22 Sep 2011 10:34:14 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">6523@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Are you using JTAG or the serialbootloader?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>samtal on "Keep flash pages while reflashing bootloader only"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1059#post-6474</link>
			<pubDate>Wed, 21 Sep 2011 03:45:29 +0000</pubDate>
			<dc:creator>samtal</dc:creator>
			<guid isPermaLink="false">6474@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I have noticed that each time I re-flash my Maple r5, the entire flash (128 pages) are erased, (probably using the STM32 Mass Erase command), although the boot loader only uses 15,616 KB which is 16 pages (out of 128 available).&#60;br /&#62;
Is there a way to re-flash only the boot-loader section or any other defined part of the flash, keeping intact the rest (my saved data)?&#60;br /&#62;
Thanks&#60;br /&#62;
samtal
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
