<?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 port already in use</title>
		<link>http://forums.leaflabs.com/topic.php?id=10412</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:12:11 +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=10412" rel="self" type="application/rss+xml" />

		<item>
			<title>raymadigan on "Serial port already in use"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10412#post-23214</link>
			<pubDate>Sat, 23 Mar 2013 11:58:52 +0000</pubDate>
			<dc:creator>raymadigan</dc:creator>
			<guid isPermaLink="false">23214@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Here is the pin assignments&#60;/p&#62;
&#60;p&#62;0,1 dipSwitch 1-2&#60;br /&#62;
2 empty&#60;br /&#62;
3 card detect Sd board&#60;br /&#62;
4-7 Sd board&#60;br /&#62;
8,9 Serial LCD card&#60;br /&#62;
10-14 dipSwitch 3-7&#60;br /&#62;
15 SSR 1&#60;br /&#62;
16 led 1&#60;br /&#62;
17 DS18B20&#60;br /&#62;
18-20 led 2-4&#60;br /&#62;
21 SSR 2&#60;br /&#62;
22 led 5&#60;br /&#62;
23,24 empty&#60;br /&#62;
25 Tran 1&#60;br /&#62;
26,27 led 6-7&#60;br /&#62;
28 dipSwitch 8&#60;br /&#62;
29 Tran 2&#60;br /&#62;
30-31 dipSwitch 9-10&#60;/p&#62;
&#60;p&#62;The Serial lcd uses the Hardware serial&#60;br /&#62;
The SD Card uses the SdFat library from a leaflabs link&#60;br /&#62;
the DS18B20 use a one wire library that I ported using digitalRead/digitalWrite/pinmode for the macros&#60;/p&#62;
&#60;p&#62;The application has worked normally without the SD Card for a few months using a flat programming model.  This means that I only used libraries to support the external devices and the main part of the application lived in standard IDE created files.&#60;/p&#62;
&#60;p&#62;The application got large and I had a hard time keeping track of it so I went to an object oriented approach making libraries to implement the classes.  I got the application running without the SD card and it seemed to run fine.  It is when I added the libraries for the SD Card that I started to run into trouble.&#60;/p&#62;
&#60;p&#62;The MicroSD card board is:&#60;br /&#62;
&#60;a href=&#34;https://www.adafruit.com/products/254&#34; rel=&#34;nofollow&#34;&#62;https://www.adafruit.com/products/254&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>raymadigan on "Serial port already in use"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10412#post-23207</link>
			<pubDate>Sat, 23 Mar 2013 11:20:09 +0000</pubDate>
			<dc:creator>raymadigan</dc:creator>
			<guid isPermaLink="false">23207@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I am using most of the pins.  Nothing is connected to pin 23 and 24.  It is a large application, I can summarize the pin assignments if that would be useful.&#60;/p&#62;
&#60;p&#62;10 pins go to a couple of dip switches&#60;br /&#62;
a serial lcd display that uses serial 1&#60;br /&#62;
an SD card that uses SPI 1&#60;br /&#62;
7 leds&#60;br /&#62;
1 pin that go to DS18B20 temperature sensors&#60;br /&#62;
2 pins that turn on and off solid state relays via a transister&#60;br /&#62;
2 pins that turn on and off a 12V fan via a transister.&#60;/p&#62;
&#60;p&#62;I will find the pin paper and detail the pin assigneent this afternoon.&#60;/p&#62;
&#60;p&#62;I suspect it is the use of the SPI and the SD card, or size, or a bug :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "Serial port already in use"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10412#post-23084</link>
			<pubDate>Sat, 23 Mar 2013 03:04:47 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">23084@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;What is connected to the Maple Mini? What operating system is it? Do you have anything on pins 23 &#38;amp; 24? What code are you uploading?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>raymadigan on "Serial port already in use"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10412#post-23045</link>
			<pubDate>Fri, 22 Mar 2013 20:53:46 +0000</pubDate>
			<dc:creator>raymadigan</dc:creator>
			<guid isPermaLink="false">23045@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I have been adding the logger capability to my application and I have run into the issue that the IDE seems to think the comm port is already in use.  It happens when I hit the Serial Monitor button on the IDE after I upload my application.  It has only become an issue since I started using the SPI capability of the Mini.&#60;/p&#62;
&#60;p&#62;Another very similar issue is that I can't upload a new version of the application to the device until I go into perpetual upload, or change the running application to the BareMinimum, or maybe any application other then mine.&#60;/p&#62;
&#60;p&#62;[code]Resetting to bootloader via DTR pulse&#60;/p&#62;
&#60;p&#62;Reset via USB Serial Failed! Did you select the serial right serial port?&#60;br /&#62;
Assuming the board is in perpetual bootloader mode and continuing to attempt dfu programming...&#60;/p&#62;
&#60;p&#62;Searching for DFU device [1EAF:0003]...&#60;/p&#62;
&#60;p&#62;Couldn't find the DFU device: [1EAF:0003][/code]&#60;/p&#62;
&#60;p&#62;but if I press the reset and hold the but down and go to perpetual upload mode then it can transfer.&#60;/p&#62;
&#60;p&#62;Has anyone had any experience with this behavior?&#60;/p&#62;
&#60;p&#62;Edit&#60;br /&#62;
I have just verified that when I remove the logger I can then see the serial monitor.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
