<?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: Bootloader independent MapleIDE generated binary</title>
		<link>http://forums.leaflabs.com/topic.php?id=13364</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:17:47 +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=13364" rel="self" type="application/rss+xml" />

		<item>
			<title>ventosus on "Bootloader independent MapleIDE generated binary"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13364#post-28405</link>
			<pubDate>Tue, 13 Aug 2013 04:13:04 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">28405@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;It's not enough to change the target addresses. You want to compile for the JTAG target, this will take care of everything for you. If you want to add support for JTAG targets to the IDE, you'll hopefully find the following thread useful.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=10278&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=10278&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Abo on "Bootloader independent MapleIDE generated binary"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13364#post-28399</link>
			<pubDate>Mon, 12 Aug 2013 16:34:35 +0000</pubDate>
			<dc:creator>Abo</dc:creator>
			<guid isPermaLink="false">28399@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I wonder if anyone had tried this? I changed the linker script flash.ld to &#60;/p&#62;
&#60;p&#62;  ram (rwx) : ORIGIN = 0x20000000, LENGTH = 61K&#60;br /&#62;
  rom (rx)  : ORIGIN = 0x08000000, LENGTH = 492K&#60;/p&#62;
&#60;p&#62;(I copy these setting from bootloader). I uploaded the &#34;Blink&#34; binary complied by Maple-IDE using ST-LINK V2 Jtag and... it wouldn't run!&#60;/p&#62;
&#60;p&#62;I look into the init() function from boards.cpp (which contains a lot of initialize function) and compare it with the bootloader main(), which contains 4 setup functions&#60;/p&#62;
&#60;p&#62;systemReset();    &#38;lt;--- missing?&#60;br /&#62;
setupCLK();       &#38;lt;--- setupClocks() perhaps?&#60;br /&#62;
setupLED();       &#38;lt;--- gpio_init_all() take cares all&#60;br /&#62;
setupUSB();       &#38;lt;--- setupUSB almost the same as bootloader&#60;/p&#62;
&#60;p&#62;Q1: Has anyone try modifying board.cpp init() so that the IDE-generated binary can run without bootloader? Is setupClocks() and systemReset() the issue why the binary can't run independently?&#60;/p&#62;
&#60;p&#62;Q2: I can understand the user code starts at 0x8005000, with bootloader at 0x8000000. Why does user RAM starts at 0x20000C00? Between 0 to 0xC00 are used by bootloader only?Is the user code using the same stack as the bootloader?&#60;/p&#62;
&#60;p&#62;many thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
