<?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: Serial Communication (USART)</title>
		<link>http://forums.leaflabs.com/topic.php?id=3551</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:24:55 +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=3551" rel="self" type="application/rss+xml" />

		<item>
			<title>drinkdhmo on "Serial Communication (USART)"</title>
			<link>http://forums.leaflabs.com/topic.php?id=3551#post-14569</link>
			<pubDate>Mon, 17 Sep 2012 21:51:18 +0000</pubDate>
			<dc:creator>drinkdhmo</dc:creator>
			<guid isPermaLink="false">14569@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Check your Makefile. In my project I ended up just hard coding the target board so that it couldn't get confused. My makefile reads as follows:&#60;/p&#62;
&#60;p&#62;.&#60;br /&#62;
.&#60;br /&#62;
.&#60;br /&#62;
# Try &#34;make help&#34; for more information on BOARD and MEMORY_TARGET;&#60;br /&#62;
# these default to a Maple Flash build.&#60;br /&#62;
BOARD ?= maple_mini&#60;br /&#62;
MEMORY_TARGET ?= flash&#60;br /&#62;
.&#60;br /&#62;
.&#60;br /&#62;
.&#60;/p&#62;
&#60;p&#62;Just for curiosity's sake, before you modify your Makefile try &#34;echo $BOARD&#34; after compiling to see if your Makefile overwrites the environment variable.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Serial Communication (USART)"</title>
			<link>http://forums.leaflabs.com/topic.php?id=3551#post-14560</link>
			<pubDate>Mon, 17 Sep 2012 20:43:42 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">14560@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Nope Serial3.begin(baud) were done. &#60;/p&#62;
&#60;p&#62;Righto I got it working but only after I tried this debug in the setup() function:&#60;/p&#62;
&#60;p&#62;	SerialUSB.print(&#34;RX pin is: &#34;); SerialUSB.println(Serial3.rxPin());&#60;br /&#62;
	SerialUSB.print(&#34;TX pin is: &#34;); SerialUSB.println(Serial3.txPin());&#60;br /&#62;
The numbers it printed corresponded to the pin numbers from the Maple board - not the maple-mini. I then went into the board.h file for both the Maple and Maple-mini. Both header files had the correct #defines in there for there respective board. However, inspite of the fact that I used the following commands during compile:&#60;/p&#62;
&#60;p&#62;cp &#38;lt;filename&#38;gt;.cpp main.cpp&#60;br /&#62;
export BOARD=maple_mini&#60;br /&#62;
BOARD=maple_mini make&#60;br /&#62;
BOARD=maple_mini make install&#60;/p&#62;
&#60;p&#62;It still for some reason, referenced the maple board.h file instead of the maple-mini. So I deliberately went in and changed the constants in the maple board.h file to be the same as maple-mini and it all worked! While the fix is fine, I am still uneasy about having to do this fudging of numbers. Why did the compiler not automatically use the maple-mini board.h file?&#60;/p&#62;
&#60;p&#62;Any thoughts?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>drinkdhmo on "Serial Communication (USART)"</title>
			<link>http://forums.leaflabs.com/topic.php?id=3551#post-14556</link>
			<pubDate>Mon, 17 Sep 2012 20:25:32 +0000</pubDate>
			<dc:creator>drinkdhmo</dc:creator>
			<guid isPermaLink="false">14556@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Without anymore specifics, I would suggest checking the basics:&#60;/p&#62;
&#60;p&#62;Make sure you call Serial3.begin([baud rate]);&#60;/p&#62;
&#60;p&#62;Make sure you don't reassign the respective pins later with a call to pinMode();&#60;/p&#62;
&#60;p&#62;You could also look to see if there is a Timer conflict (I don't remember if the serial ports consume one of the internal timers).&#60;/p&#62;
&#60;p&#62;Maybe post your code somewhere and we can look closer.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Serial Communication (USART)"</title>
			<link>http://forums.leaflabs.com/topic.php?id=3551#post-14359</link>
			<pubDate>Mon, 17 Sep 2012 00:22:36 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">14359@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi all,&#60;/p&#62;
&#60;p&#62;Very weird problem! Trying to connect OpenLog with Maple-Mini to record some accelerometer data. The accelerometer is connected via I2C1 and works beautifully (BMA180). OpenLog has been a bit of an issue. I am able to receive incoming bytes (eg the powerup '12&#38;lt;') from the OpenLog to the RX pin but not able to write to it via the TX pin. &#60;/p&#62;
&#60;p&#62;To try and debug, I isolated the TX line (from Serial3) to see if anything was going out. Connecting to an oscilloscope showed that Serial3.print or Serial3.write was not producing any output on the TX line. Connecting it to the RX pin on Serial1 confirmed that nothing was coming out of the TX lines. Since I know that the RX pin is not damaged (I have used it before) and the Serial3 RX and TX pins are not damaged (as I have used them for I2C2 before), why is Serial3 not sending anything? Can someone please help???!!&#60;/p&#62;
&#60;p&#62;Kind regards,&#60;br /&#62;
Sumeet
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
