<?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: How to use the Maple board with other IDEs</title>
		<link>http://forums.leaflabs.com/topic.php?id=144</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:20:08 +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=144" rel="self" type="application/rss+xml" />

		<item>
			<title>ianmga on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144&amp;page=2#post-3243</link>
			<pubDate>Mon, 27 Dec 2010 21:07:47 +0000</pubDate>
			<dc:creator>ianmga</dc:creator>
			<guid isPermaLink="false">3243@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Now the next question is: How do you build a non-libmaple based binary and still use Maple's bootloader. Is it just a matter of setting up the right starting memory and using dfu-util?&#60;/p&#62;
&#60;p&#62;Hmm. Was this question asked already?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ianmga on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144&amp;page=2#post-3242</link>
			<pubDate>Mon, 27 Dec 2010 21:04:57 +0000</pubDate>
			<dc:creator>ianmga</dc:creator>
			<guid isPermaLink="false">3242@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Yey! I got it to work with Crossworks!&#60;/p&#62;
&#60;p&#62;With Activestate python 2.7 I had to change serialwin32 to serial and .Serial() to .serial_for_url().
&#60;/p&#62;</description>
		</item>
		<item>
			<title>warm38 on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144&amp;page=2#post-2123</link>
			<pubDate>Sat, 30 Oct 2010 13:16:21 +0000</pubDate>
			<dc:creator>warm38</dc:creator>
			<guid isPermaLink="false">2123@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;In bnewbold's first reply in this topic he wrote:&#60;br /&#62;
&#34;you will need extra hardware; see &#60;a href=&#34;http://leaflabs.com/docs/maple/jtag/&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/maple/jtag/&#60;/a&#62;&#34;&#60;/p&#62;
&#60;p&#62;I went there and looked at the .png file (on Window and Linux to see if something was broken on my side) and all I saw was two headers -- 20-pin and 8-pin and no connecting lines.&#60;br /&#62;
Well, if I can't have lines, can I have some text?&#60;br /&#62;
I know TDO &#38;lt;-&#38;gt; TDO, TDI &#38;lt;-&#38;gt; TDI, TMS &#38;lt;-&#38;gt; TMS, TCK &#38;lt;-&#38;gt; TCK, TRST &#38;lt;-&#38;gt; TRST, Vcc &#38;lt;-&#38;gt; Vcc, Gnd &#38;lt;-&#38;gt; Gnd.&#60;br /&#62;
I am guessing that TRST also goes to nRESET.&#60;br /&#62;
When I went from 20-pin to 10-pin I had to add in a handful of pull up/down resistors.&#60;/p&#62;
&#60;p&#62;20-pin ...................... 10-pin&#60;br /&#62;
use .pin .................... pin use&#60;/p&#62;
&#60;p&#62;3.3V 1 ---+-------------------  1 3.3V&#60;br /&#62;
..........&#124;&#60;br /&#62;
VREF 2 ---+&#60;br /&#62;
TRST 3------------------------ 10 TRST&#60;br /&#62;
GND 4,6,8,10,12,14,16,18,20 --- 2 GND&#60;br /&#62;
TDI 5 ------------------------- 3 TDI&#60;br /&#62;
TMS 7 ------------------------- 6 TMS&#60;br /&#62;
TCK 9 ------------------------- 7 TCK&#60;br /&#62;
RTCK 11 ----------------------- 4 RTCK&#60;br /&#62;
TDO 13 ------------------------ 5 TDO&#60;br /&#62;
RESET 15 ---------------------- 9 RESET&#60;br /&#62;
DBGRQ 17 N/C 8 N/C&#60;br /&#62;
DBGACK 19 N/C&#60;/p&#62;
&#60;p&#62;20-pin 1 connects through 10K resistors (4) back to pin 3,5,7,13 (pull up)&#60;br /&#62;
20-pin 4 connects through 10K resistors (2) back to pin 9,11 (pull down)&#60;/p&#62;
&#60;p&#62;I *think* I can just make up a 8-pin &#38;lt;-&#38;gt; 10-pin adapter:&#60;/p&#62;
&#60;p&#62;10-pin ..... 8-pin&#60;br /&#62;
pin use ... pin use&#60;/p&#62;
&#60;p&#62; 1 3.3V ----- 7 Vcc&#60;br /&#62;
 2 GND ------ 2 Gnd&#60;br /&#62;
 3 TDI ------ 5 TDI&#60;br /&#62;
 4 RTCK ----- ?????&#60;br /&#62;
 5 TDO  ----- 4 TDO&#60;br /&#62;
 6 TMS ------ 6 TMS&#60;br /&#62;
 7 TCK ------ 3 TCK&#60;br /&#62;
 8 key&#60;br /&#62;
 9 RESET ---- ?????&#60;br /&#62;
10 TRST ----- 1 TRST&#60;/p&#62;
&#60;p&#62;2 questions remain:&#60;/p&#62;
&#60;p&#62;1 hook up RESET to TRST&#60;br /&#62;
2 RTCK is No Connection or TCK?&#60;/p&#62;
&#60;p&#62;Any directions available?&#60;/p&#62;
&#60;p&#62;wade
&#60;/p&#62;</description>
		</item>
		<item>
			<title>x893 on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144&amp;page=2#post-1041</link>
			<pubDate>Mon, 06 Sep 2010 13:55:37 +0000</pubDate>
			<dc:creator>x893</dc:creator>
			<guid isPermaLink="false">1041@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Of course - you need change COM1 to your port.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144#post-1039</link>
			<pubDate>Mon, 06 Sep 2010 13:50:14 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">1039@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;be careful with the &#34;COM1&#34; being set statically, there is no gaurantee that it will come up as COM1!&#60;br /&#62;
on linux we use a udev rule to statically reassign whatever COM port that comes up as maple to /dev/maple   Im not sure of an equivalent trick for windows.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>x893 on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144#post-1004</link>
			<pubDate>Sat, 04 Sep 2010 20:31:54 +0000</pubDate>
			<dc:creator>x893</dc:creator>
			<guid isPermaLink="false">1004@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Correct reset.py&#60;/p&#62;
&#60;p&#62;import win32ui&#60;br /&#62;
import win32con&#60;br /&#62;
import serialwin32&#60;/p&#62;
&#60;p&#62;port = None&#60;br /&#62;
retry = 1&#60;br /&#62;
while retry &#38;gt; 0:&#60;br /&#62;
    try:&#60;br /&#62;
        retry = 0&#60;br /&#62;
        port = serialwin32.Serial('COM1', 115200, timeout=10, rtscts=0)&#60;br /&#62;
    except:&#60;br /&#62;
        ans = win32ui.MessageBox(&#34;The COM port is Busy! Please Verify that it's not used by another application and retry \r\nRetry?&#34;, &#34;WARNING!&#34;, win32con.MB_YESNO)&#60;br /&#62;
        if ans == win32con.IDYES:&#60;br /&#62;
            retry = 1&#60;/p&#62;
&#60;p&#62;if (port is not None):&#60;br /&#62;
	port.setRTS(0)&#60;br /&#62;
	port.setDTR(0)&#60;br /&#62;
	port.setDTR(1)&#60;br /&#62;
	port.setDTR(0)&#60;br /&#62;
	port.setRTS(1)&#60;br /&#62;
	port.setDTR(1)&#60;br /&#62;
	port.setDTR(0)&#60;br /&#62;
	port.send(&#34;1EAF&#34;, 2)&#60;br /&#62;
	port.close()
&#60;/p&#62;</description>
		</item>
		<item>
			<title>x893 on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144#post-1003</link>
			<pubDate>Sat, 04 Sep 2010 20:28:25 +0000</pubDate>
			<dc:creator>x893</dc:creator>
			<guid isPermaLink="false">1003@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;For use libmaple i change&#60;br /&#62;
1. build.bat (add python path)&#60;br /&#62;
@SET PATH=D:\Tools\CodeSourcery\bin;D:\Tools\WinAVR\utils\bin;%PATH%&#60;br /&#62;
@SET PYTHON=D:/Program Files/Python/python.exe&#60;br /&#62;
@%*&#60;/p&#62;
&#60;p&#62;2. reset.py (change COM1 to your port or use parameter)&#60;/p&#62;
&#60;p&#62;import win32ui&#60;br /&#62;
import win32con&#60;br /&#62;
import serialwin32&#60;/p&#62;
&#60;p&#62;retry = 1&#60;br /&#62;
while retry &#38;gt; 0:&#60;br /&#62;
    try:&#60;br /&#62;
        retry = 0&#60;br /&#62;
        port = serialwin32.Serial('COM1', 115200, timeout=10, rtscts=0)&#60;br /&#62;
    except:&#60;br /&#62;
        ans = win32ui.MessageBox(&#34;The COM port is Busy! Please Verify that it's not used by another application and retry \r\nRetry?&#34;, &#34;WARNING!&#34;, win32con.MB_YESNO)&#60;br /&#62;
        if ans == win32con.IDYES:&#60;br /&#62;
            retry = 1&#60;br /&#62;
    else:&#60;br /&#62;
        raise StandardError, 'ERROR opening the COM port.!'&#60;/p&#62;
&#60;p&#62;if (port is not None):&#60;br /&#62;
	port.setRTS(0)&#60;br /&#62;
	port.setDTR(0)&#60;br /&#62;
	port.setDTR(1)&#60;br /&#62;
	port.setDTR(0)&#60;br /&#62;
	port.setRTS(1)&#60;br /&#62;
	port.setDTR(1)&#60;br /&#62;
	port.setDTR(0)&#60;br /&#62;
	port.send(&#34;1EAF&#34;, 2)&#60;br /&#62;
	port.close()&#60;/p&#62;
&#60;p&#62;2. change in Makefile for install section&#60;/p&#62;
&#60;p&#62;# Target upload commands&#60;br /&#62;
UPLOAD_ram   := $(SUPPORT_PATH)/scripts/reset.py&#60;br /&#62;
DFU_ram      := $(DFU) -a0 -d $(VENDOR_ID):$(PRODUCT_ID) -D $(BUILD_PATH)/$(BOARD).bin -R&#60;br /&#62;
UPLOAD_flash := $(PYTHON) $(SUPPORT_PATH)/scripts/reset.py&#60;br /&#62;
DFU_flash    := $(DFU) -a1 -d $(VENDOR_ID):$(PRODUCT_ID) -D $(BUILD_PATH)/$(BOARD).bin -R&#60;br /&#62;
UPLOAD_jtag  := $(OPENOCD) -f support/openocd/flash.cfg&#60;br /&#62;
DFU_jtag     :=&#60;/p&#62;
&#60;p&#62;# conditionally upload to whatever the last build was&#60;br /&#62;
install: INSTALL_TARGET = $(shell cat $(BUILD_PATH)/build-type 2&#38;gt;/dev/null)&#60;br /&#62;
install: $(BUILD_PATH)/$(BOARD).bin&#60;br /&#62;
	@echo Install target: $(INSTALL_TARGET)&#60;br /&#62;
	$(UPLOAD_$(INSTALL_TARGET))&#60;br /&#62;
	sleep 2&#60;br /&#62;
	$(DFU_$(INSTALL_TARGET))&#60;/p&#62;
&#60;p&#62;after this changes&#60;br /&#62;
build.bat make install
&#60;/p&#62;</description>
		</item>
		<item>
			<title>x893 on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144#post-968</link>
			<pubDate>Thu, 02 Sep 2010 22:54:25 +0000</pubDate>
			<dc:creator>x893</dc:creator>
			<guid isPermaLink="false">968@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I use this for make bootloader&#60;br /&#62;
1. Install CodeSourcery (D:\Tools\CodeSourcery)&#60;br /&#62;
2. Install WinAVR (D:\Tools\WinAVR)&#60;br /&#62;
place batch file arm.bat to bootloader folder:&#60;/p&#62;
&#60;p&#62;@SET PATH=D:\Tools\CodeSourcery\bin;D:\Tools\WinAVR\utils\bin;%PATH%&#60;br /&#62;
@%*&#60;/p&#62;
&#60;p&#62;to compile&#60;br /&#62;
arm.bat make&#60;br /&#62;
or clean&#60;br /&#62;
arm.bat make clean
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ianmga on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144#post-964</link>
			<pubDate>Thu, 02 Sep 2010 21:27:02 +0000</pubDate>
			<dc:creator>ianmga</dc:creator>
			<guid isPermaLink="false">964@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;@x893 Hahaha, no, what do you get VS to compile and run the Maple? What's in the batch files? Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>x893 on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144#post-913</link>
			<pubDate>Mon, 30 Aug 2010 21:32:38 +0000</pubDate>
			<dc:creator>x893</dc:creator>
			<guid isPermaLink="false">913@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;What ? Board or text in forum ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ianmga on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144#post-912</link>
			<pubDate>Mon, 30 Aug 2010 20:38:53 +0000</pubDate>
			<dc:creator>ianmga</dc:creator>
			<guid isPermaLink="false">912@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;@x893, whoa! How do you do that?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ianmga on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144#post-911</link>
			<pubDate>Mon, 30 Aug 2010 20:36:24 +0000</pubDate>
			<dc:creator>ianmga</dc:creator>
			<guid isPermaLink="false">911@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;@bnewbold, to be fair for some reason I thought that the test program was not going to run well on the Maple and it ran just fine, so my apparent need has now decreased a lot.&#60;/p&#62;
&#60;p&#62;But to answer the question: Part of it because I have seen other IDEs out there that are reeeally nice. Another reason is for interactive debugging.  Also other IDEs have simulators which help with debugging as well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>x893 on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144#post-907</link>
			<pubDate>Mon, 30 Aug 2010 17:50:40 +0000</pubDate>
			<dc:creator>x893</dc:creator>
			<guid isPermaLink="false">907@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;It's base on maple with some changes for me.&#60;br /&#62;
Add 32 kHz (optional), boot0, boot1 with jumpers, change LDO/Bat.Charger to presents here.&#60;br /&#62;
&#60;a href=&#34;http://akb77.com/g/gps/new-modules/stm32.png&#34; rel=&#34;nofollow&#34;&#62;http://akb77.com/g/gps/new-modules/stm32.png&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144#post-902</link>
			<pubDate>Mon, 30 Aug 2010 16:19:40 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">902@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;awesome. What sort of stm32 board is that? some interesting changes there.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>x893 on "How to use the Maple board with other IDEs"</title>
			<link>http://forums.leaflabs.com/topic.php?id=144#post-901</link>
			<pubDate>Mon, 30 Aug 2010 15:11:54 +0000</pubDate>
			<dc:creator>x893</dc:creator>
			<guid isPermaLink="false">901@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;IAR perfect - i use SWO for printf debug message w/o additional interfaces.&#60;br /&#62;
i adapt J-Link for maple JTAG connector so both JTAG/SWD available.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://akb77.com/g/files/media/j-link.jpg&#34; rel=&#34;nofollow&#34;&#62;http://akb77.com/g/files/media/j-link.jpg&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://akb77.com/g/files/media/iar.jpg&#34; rel=&#34;nofollow&#34;&#62;http://akb77.com/g/files/media/iar.jpg&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
