<?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: Help with custom RET6 board</title>
		<link>http://forums.leaflabs.com/topic.php?id=74271</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:12:01 +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=74271" rel="self" type="application/rss+xml" />

		<item>
			<title>jstamour802 on "Help with custom RET6 board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74271#post-105223</link>
			<pubDate>Sun, 09 Feb 2014 20:48:57 +0000</pubDate>
			<dc:creator>jstamour802</dc:creator>
			<guid isPermaLink="false">105223@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;This all makes sense - thank you for the help.&#60;/p&#62;
&#60;p&#62;I haven't been able to test it out yet, so tomorrow I should be looking good after some tinkering. &#60;/p&#62;
&#60;p&#62;Another thought - the STLINK/V2 Utility allows you to specify a start address before uploading flash, what if I changed the start address to 0x08005000? Would I then need to modify the IDE? &#60;/p&#62;
&#60;p&#62;Just a thought...&#60;/p&#62;
&#60;p&#62;Thx
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Help with custom RET6 board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74271#post-105219</link>
			<pubDate>Sun, 09 Feb 2014 14:39:47 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105219@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;jstamour802 - JTAG and SWD are hardware debugging mechanisms. They have no effect on the program you need to build *&#60;/p&#62;
&#60;p&#62;AFAIK, it happens that &#34;MEMORY_TARGET=JTAG&#34; is a way to make the build system build the program to run without LeafLabs USB bootloader. &#60;/p&#62;
&#60;p&#62;&#34;Maple&#34; programs, built with the IDE, and uploaded by LeafLabs USB bootloader, rely on the bootloader to define the *start* of flash memory, include the system &#34;RESET&#34;, which jumps to the users &#34;Maple&#34; program. When the bootloader isn't in flash, your program must be built to load at the start of flash, or there will be no code for system &#34;RESET&#34;. This is a normal situation in general for microcontrollers, but not for &#34;Maple&#34; programs built by the Maple IDE.&#60;/p&#62;
&#60;p&#62;The flag could just as easily, and possibly more helpfully, have been &#34;MEMORY_TARGET=NO_BOOTLOADER&#34;. The name &#34;JTAG&#34; vs &#34;SWD&#34; has no significance in this context.&#60;/p&#62;
&#60;p&#62;(* It could matter for some development systems which generate debugger-sensitive code, but that is not the case here.)&#60;/p&#62;
&#60;p&#62;(Full disclosure: I am not a member of LeafLabs staff)&#60;/p&#62;
&#60;p&#62;Edit: ventosus, this crossed with your post.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "Help with custom RET6 board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74271#post-105218</link>
			<pubDate>Sun, 09 Feb 2014 14:37:00 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">105218@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The way of uploading should not matter (JTAG, SWD, serial bootloader). There is no SWD build target.&#60;/p&#62;
&#60;p&#62;The JTAG memory target merely tells the compiler and linker to put code at FLASH memory beginning (0x08000000), whereas the standard FLASH memory target tells the compiler and linker to put code at an offset address (0x08005000), e.g. after the boot loader. In this case, the boot loader is at 0x08000000 and the first program to run and then gives over to your sketch.&#60;/p&#62;
&#60;p&#62;So, if you don't have a bootloader on your custom board, code needs to be (compiled/linked for and) put at FLASH beginning for a successful startup sequence.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jstamour802 on "Help with custom RET6 board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74271#post-105217</link>
			<pubDate>Sun, 09 Feb 2014 09:23:23 +0000</pubDate>
			<dc:creator>jstamour802</dc:creator>
			<guid isPermaLink="false">105217@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;One other question, does it matter if I'm using SWD instead of JTAG? Do I need to build it for SWD instead of JTAG?&#60;/p&#62;
&#60;p&#62;Thanks in advance
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jstamour802 on "Help with custom RET6 board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74271#post-105215</link>
			<pubDate>Sat, 08 Feb 2014 23:31:49 +0000</pubDate>
			<dc:creator>jstamour802</dc:creator>
			<guid isPermaLink="false">105215@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;ventosus, thank you for the help. I'll need to wait until Monday to try your solution - it sounds like this is the problem.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "Help with custom RET6 board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74271#post-105213</link>
			<pubDate>Sat, 08 Feb 2014 12:25:50 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">105213@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;If this is related to: &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=74226&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=74226&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Then the solution is: &#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;
&#60;p&#62;If you want to directly run code without bootloader, you MUST compile for the&#60;br /&#62;
MEMORY_TARGET=JTAG, iirc, the IDE does not offer you this build target, so you either have to modify the IDE or even better, use libmaple with the Unix toolchain instead.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jstamour802 on "Help with custom RET6 board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74271#post-105212</link>
			<pubDate>Sat, 08 Feb 2014 09:17:37 +0000</pubDate>
			<dc:creator>jstamour802</dc:creator>
			<guid isPermaLink="false">105212@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I've developed a board based on the olimex maple board, but am using the RET6 chip. I have no USB port in this design, so I can only upload code via my STLINKV2 programmer, and that works fine.&#60;/p&#62;
&#60;p&#62;    The problem is that when I load any basic code (blink, etc..) using the STLINKV2 (using the associated utility), the program doesn't run. Also noted that the crystal does not oscillate. The blink code is generated from the maple IDE (.bin) and I use that to upload with the STLINK. Confirmed that I have the RET6 edition selected in the boards.&#60;/p&#62;
&#60;p&#62;    When I load the USB bootloader(.bin) with the same STLINKV2 programmer, the bootloader runs fine, and the crystal is working. I haven't tried to upload code with USB as I dont have the hardware on this design (I may rig it up on a breadboard and pipe it in to see if code uploads this way).&#60;/p&#62;
&#60;p&#62;    So... what is happening here? Do I need to be setting a crystal mode in the program? I suspect that the bootloader.hex has some code that sets the external crystal properly, and I also suspect that when code is uploaded to the maple via, this is also true. Why when I upload a .bin other than the bootloader does the crystal not oscillate?&#60;/p&#62;
&#60;p&#62;Maybe this is a bug with the RET6 chip and the Maple IDE?&#60;/p&#62;
&#60;p&#62;Thanks in advance
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
