<?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: Programming Non-Maple Boards &#38; Debugging</title>
		<link>http://forums.leaflabs.com/topic.php?id=20</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:10:29 +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=20" rel="self" type="application/rss+xml" />

		<item>
			<title>importer on "Programming Non-Maple Boards &#38; Debugging"</title>
			<link>http://forums.leaflabs.com/topic.php?id=20#post-91</link>
			<pubDate>Sat, 03 Apr 2010 14:58:13 +0000</pubDate>
			<dc:creator>importer</dc:creator>
			<guid isPermaLink="false">91@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;on Wed 16 of Dec., 2009 01:54 EST, by Nic &#60;/p&#62;
&#60;p&#62;&#38;gt; stock stm32 chips do not have the USB DFU bootloader. We wrote that and load it on to every Maple before shipping. However, you can use this bootloader with few (if any) modifications on your own projects if you have a way of getting it into the stm32 flash memory (JTAG, UART Boot mode...).&#60;/p&#62;
&#60;p&#62;Ahh. I thought the chips came with a DFU bootloader, but after reading more it seems that's just the STM32F105 and 107 lines.&#60;/p&#62;
&#60;p&#62;&#38;gt; At LeafLabs, we use OpenOCD along with Olimex JTAG programmers (70$).&#60;/p&#62;
&#60;p&#62;Do you use that to program the stock chips, or just for debugging / development?&#60;/p&#62;
&#60;p&#62;Also, I take it you meant this one:&#60;br /&#62;
&#60;a href=&#34;http://www.sparkfun.com/commerce/product_info.php?products_id=7834&#34; rel=&#34;nofollow&#34;&#62;http://www.sparkfun.com/commerce/product_info.php?products_id=7834&#60;/a&#62;&#60;br /&#62;
but you'd need an adapter to go from the 2x10 pin to the 2x4 on the Leaf. Unless there's an Olimex one I don't know about?&#60;/p&#62;
&#60;p&#62;Anything wrong with this one?:&#60;br /&#62;
&#60;a href=&#34;http://www.olimex.com/dev/arm-usb-tiny-h.html&#34; rel=&#34;nofollow&#34;&#62;http://www.olimex.com/dev/arm-usb-tiny-h.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Will the Maple IDE have the equivalent of the Arduino &#34;Burn Bootloader&#34; command?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>importer on "Programming Non-Maple Boards &#38; Debugging"</title>
			<link>http://forums.leaflabs.com/topic.php?id=20#post-90</link>
			<pubDate>Sat, 03 Apr 2010 14:57:44 +0000</pubDate>
			<dc:creator>importer</dc:creator>
			<guid isPermaLink="false">90@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;on Tue 15 of Dec., 2009 14:05 EST, by poslathian&#60;br /&#62;
&#38;gt; Once the driver is up and going I'd want to design a PCB with FET driver etc. If I stick an STM32 on the PCB with the USB connection, would I be able to program it directly via DFU or do I have to load a bootloader / configure the chip somehow first?&#60;/p&#62;
&#60;p&#62;stock stm32 chips do not have the USB DFU bootloader. We wrote that and load it on to every Maple before shipping. However, you can use this bootloader with few (if any) modifications on your own projects if you have a way of getting it into the stm32 flash memory (JTAG, UART Boot mode...). The bootloader lives at:&#60;br /&#62;
leaflabs.googlecode.com&#60;/p&#62;
&#60;p&#62;&#38;gt;&#60;br /&#62;
&#38;gt; If I want to sell the motor drivers, is there any way to do the equivalent of the memory lock fuses for the ATMega chips so that somebody can't just clone the firmware off the board?&#60;/p&#62;
&#60;p&#62;The STM32 flash memory has non volatile option bits that allows you to configure special settings for certain regions of memory. This includes execute only mode, which means code can be run but not read. I'd recommend looking at the documentation on st.com (about the stm32 series) to see if this feature can really provide the level security youre looking for. By default, Maple sketches are not protected, and use of the option bits are not supported by the Maple IDE, but its not difficult to do.&#60;/p&#62;
&#60;p&#62;&#38;gt; What are my options for debugging (under Mac OS X)?&#60;br /&#62;
Debugging...If youre using the Maple IDE, then debugging resources are limited to the standard hacks and clever tricks, using the serial port, blinking lights, using asserts, etc etc. However, the JTAG pins are broken out on Maple, so if you are equipped with a JTAG dongle, you can use the debugging tools associated with your JTAG hardware. At LeafLabs, we use OpenOCD along with Olimex JTAG programmers (70$). These are great and give full GDB-based debugging.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>importer on "Programming Non-Maple Boards &#38; Debugging"</title>
			<link>http://forums.leaflabs.com/topic.php?id=20#post-88</link>
			<pubDate>Sat, 03 Apr 2010 14:57:15 +0000</pubDate>
			<dc:creator>importer</dc:creator>
			<guid isPermaLink="false">88@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;on Mon 14 of Dec., 2009 18:34 EST, by Nic&#60;/p&#62;
&#60;p&#62;The first project I've got lined up for my Maple Leaf is a prototype for a motor driver (I discovered there's a robot wars group near me and I have all manner of ideas running through my head).&#60;/p&#62;
&#60;p&#62;Once the driver is up and going I'd want to design a PCB with FET driver etc. If I stick an STM32 on the PCB with the USB connection, would I be able to program it directly via DFU or do I have to load a bootloader / configure the chip somehow first?&#60;/p&#62;
&#60;p&#62;If I want to sell the motor drivers, is there any way to do the equivalent of the memory lock fuses for the ATMega chips so that somebody can't just clone the firmware off the board?&#60;/p&#62;
&#60;p&#62;What are my options for debugging (under Mac OS X)?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
