<?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: flash a sketch without bootloader</title>
		<link>http://forums.leaflabs.com/topic.php?id=10278</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:16:07 +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=10278" rel="self" type="application/rss+xml" />

		<item>
			<title>feurig on "flash a sketch without bootloader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10278#post-22979</link>
			<pubDate>Tue, 19 Mar 2013 14:10:04 +0000</pubDate>
			<dc:creator>feurig</dc:creator>
			<guid isPermaLink="false">22979@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Ventosus, awesome work! Now to look into running it up with the serial loader.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stafil on "flash a sketch without bootloader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10278#post-22976</link>
			<pubDate>Tue, 19 Mar 2013 07:10:37 +0000</pubDate>
			<dc:creator>stafil</dc:creator>
			<guid isPermaLink="false">22976@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;mapleJTAG.upload.maximum_size=128000
&#60;/p&#62;</description>
		</item>
		<item>
			<title>konan on "flash a sketch without bootloader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10278#post-22947</link>
			<pubDate>Fri, 15 Mar 2013 07:33:11 +0000</pubDate>
			<dc:creator>konan</dc:creator>
			<guid isPermaLink="false">22947@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;yes, everything works ok. thanks for help
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stafil on "flash a sketch without bootloader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10278#post-22722</link>
			<pubDate>Wed, 06 Mar 2013 12:41:40 +0000</pubDate>
			<dc:creator>stafil</dc:creator>
			<guid isPermaLink="false">22722@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Yes, work without bootloader. Nice work. thx
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "flash a sketch without bootloader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10278#post-22715</link>
			<pubDate>Wed, 06 Mar 2013 03:38:58 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">22715@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;@stafil, this thread is about building and downloading a sketch directly to the Maple board (and therefore overwriting the DFU bootloader with your sketch). By doing so, there won't be anymore a bootloader on the Maple board and hence the downloading precedure built into the IDE won't work anymore (that's what youre error log is all about).&#60;/p&#62;
&#60;p&#62;Have a look here what the bootloader is all about: &#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>stafil on "flash a sketch without bootloader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10278#post-22713</link>
			<pubDate>Tue, 05 Mar 2013 13:45:22 +0000</pubDate>
			<dc:creator>stafil</dc:creator>
			<guid isPermaLink="false">22713@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;not work,&#60;br /&#62;
Binary sketch size is reported above. Check it against a 20000 byte maximum.&#60;br /&#62;
Loading via dfu-util&#60;br /&#62;
Resetting to bootloader via DTR pulse&#60;/p&#62;
&#60;p&#62;Reset via USB Serial Failed! Did you select the serial right serial port?&#60;br /&#62;
Assuming the board is in perpetual bootloader mode and continuing to attempt dfu programming...&#60;/p&#62;
&#60;p&#62;Searching for DFU device [1EAF:0003]...&#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;Couldn't find the DFU device: [1EAF:0003]&#60;/p&#62;
&#60;p&#62;thx
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "flash a sketch without bootloader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10278#post-22681</link>
			<pubDate>Wed, 27 Feb 2013 09:30:59 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">22681@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Sorry, there were some errors in my code.&#60;/p&#62;
&#60;p&#62;altID should be 1 of course (I think I've accidentally copied the RAM description)&#60;br /&#62;
and I forgot that VECT_TAB_FLASH has to be changed also to VECT_TAB_BASE&#60;br /&#62;
and the sizes are not important for small sketches&#60;/p&#62;
&#60;p&#62;the needed lines to change&#60;/p&#62;
&#60;p&#62;mapleJTAG.upload.altID=1&#60;br /&#62;
mapleJTAG.build.vect=VECT_TAB_BASE&#60;br /&#62;
mapleJTAG.build.linker=maple/jtag.ld&#60;/p&#62;
&#60;p&#62;give it another try, I hope that this does the trick..
&#60;/p&#62;</description>
		</item>
		<item>
			<title>konan on "flash a sketch without bootloader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10278#post-22680</link>
			<pubDate>Wed, 27 Feb 2013 09:03:38 +0000</pubDate>
			<dc:creator>konan</dc:creator>
			<guid isPermaLink="false">22680@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks, but it still don't work. I copied the &#34;Maple to Flash&#34; entry, so maximum_size is 128000 and altID is 1, is it critical? My compiled sketch is about 30k size, and I need to upload it to flash, not RAM.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "flash a sketch without bootloader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10278#post-22597</link>
			<pubDate>Tue, 26 Feb 2013 12:38:08 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">22597@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;You have to compile for the JTAG target, then it works.&#60;/p&#62;
&#60;p&#62;The FLASH target adds an offset at linking time so your binary comes lying after the boot loader and can be jumped to by the latter.&#60;/p&#62;
&#60;p&#62;If you want to upload the sketch directly, you're sketch won't start with this offset. You need to link your binary without the offset, what the JTAG target is for.&#60;/p&#62;
&#60;p&#62;When using the unix toolchain:&#60;br /&#62;
-&#38;gt; BOARD=maple MEMORY_TARGET=jtag make&#60;/p&#62;
&#60;p&#62;When you compile from within the IDE, you only have the FLASH and RAM targets by default, but the jtag linker scripts are included in the IDE, you just have to duplicate the description of your board in &#34;maple-ide-v0.0.12/hardware/leaflabs/boards.txt&#34; and replace the linker script &#34;flash.ld&#34; with &#34;jtag.ld&#34; and adjust the maximum RAM and FLASH sizes accordingly to 20k and 128k and you'll get a new entry in the Board drop down list.&#60;/p&#62;
&#60;p&#62;e.g. like that:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
mapleJTAG.name=LeafLabs Maple Rev 3+ to JTAG&#60;br /&#62;
mapleJTAG.upload.file_type=bin&#60;br /&#62;
mapleJTAG.upload.maximum_size=20000&#60;br /&#62;
mapleJTAG.upload.ram.maximum_size=20000&#60;br /&#62;
mapleJTAG.upload.flash.maximum_size=128000&#60;br /&#62;
mapleJTAG.upload.usbID=1EAF:0003&#60;br /&#62;
mapleJTAG.upload.altID=0&#60;br /&#62;
mapleJTAG.upload.uploader=dfu-util&#60;br /&#62;
mapleJTAG.upload.auto_reset=true&#60;br /&#62;
mapleJTAG.build.board=maple&#60;br /&#62;
mapleJTAG.build.mcu=STM32F103RB&#60;br /&#62;
mapleJTAG.build.family=cortex-m3&#60;br /&#62;
mapleJTAG.build.f_cpu=72000000L&#60;br /&#62;
mapleJTAG.build.core=maple&#60;br /&#62;
mapleJTAG.build.submdl=stm32f103&#60;br /&#62;
mapleJTAG.build.vect=VECT_TAB_FLASH&#60;br /&#62;
mapleJTAG.build.linker=maple/jtag.ld&#60;br /&#62;
mapleJTAG.build.using=armcompiler&#60;br /&#62;
mapleJTAG.build.density=STM32_MEDIUM_DENSITY&#60;br /&#62;
mapleJTAG.build.error_led_port=GPIOA&#60;br /&#62;
mapleJTAG.build.error_led_pin=5&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>konan on "flash a sketch without bootloader"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10278#post-22549</link>
			<pubDate>Tue, 26 Feb 2013 10:05:41 +0000</pubDate>
			<dc:creator>konan</dc:creator>
			<guid isPermaLink="false">22549@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi all! Did anybody try to upload the compiled sketch without the Maple bootloader? I naively thinked, that I can grab the compiled binary from the temporary folder, and flash it via UART1 instead of Maple bootloader, as described in the &#34;bootloader&#34; section of docs. But when I tried, the device didn't work... Any ideas?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
