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

		<item>
			<title>dugggg on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-11182</link>
			<pubDate>Fri, 08 Jun 2012 22:21:32 +0000</pubDate>
			<dc:creator>dugggg</dc:creator>
			<guid isPermaLink="false">11182@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Feurig, thanks.  I noticed that even after hardcoding pin 25 in Sd2Card.cpp, that pin 31 on my Olimexino was still being used by the SPI.   So I did those nssPin() changes you suggested.   I was then sorely tempted to lazily modify wirish/boards/maple.h and change 31 to 25 there---after all, my Olimexino has behaved EXACTLY like a true maple up until now---but then decided to make a brand new board type called &#34;olimexino&#34; (which involved updating numerous other make-related files).  But now it's done right.  Kinda cool seeing that olimexino.elf file!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>feurig on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-11169</link>
			<pubDate>Fri, 08 Jun 2012 14:49:33 +0000</pubDate>
			<dc:creator>feurig</dc:creator>
			<guid isPermaLink="false">11169@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://code.google.com/p/maple-sdfat/issues/detail?id=2&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/maple-sdfat/issues/detail?id=2&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dugggg on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-11166</link>
			<pubDate>Fri, 08 Jun 2012 12:48:23 +0000</pubDate>
			<dc:creator>dugggg</dc:creator>
			<guid isPermaLink="false">11166@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;In addition to the two changes to digitalWrite, you also have to change the pinMode(10) line to pinMode(25) in Sd2Card.cpp for the Olimexino.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bubulindo on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-10214</link>
			<pubDate>Sun, 15 Apr 2012 21:40:36 +0000</pubDate>
			<dc:creator>bubulindo</dc:creator>
			<guid isPermaLink="false">10214@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I had a look before and I don't think the library has it. However, it's still a work in progress. I think that whoever was developing it in the beginning just left it at the bare minimum. &#60;/p&#62;
&#60;p&#62;There's no interrupt controlled SPI, but then again with the DMA possibility I'm not too sure one would want to have interrupt controlled transmission and it was left for future implementation.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>feurig on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-10213</link>
			<pubDate>Sun, 15 Apr 2012 19:44:18 +0000</pubDate>
			<dc:creator>feurig</dc:creator>
			<guid isPermaLink="false">10213@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;bubulindo,&#60;/p&#62;
&#60;p&#62;Is 25 also what the spi nss pin is for your maple derivative? If so it makes more sense to use SPIn-&#38;gt;nssPin(), Either way the library should probably have a way to set the select pin on init instead of hardcoding the pin in the chip select in the chipSelect routines.&#60;br /&#62;
This is legacy bad coding from the original arduino library and should be fixed. &#60;a href=&#34;http://code.google.com/p/maple-sdfat/issues/detail?id=2&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/maple-sdfat/issues/detail?id=2&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Does anyone know how to get the bugs fixed in the library github since there are at least 4 threads now regarding issues with it?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bubulindo on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-10204</link>
			<pubDate>Fri, 13 Apr 2012 17:59:50 +0000</pubDate>
			<dc:creator>bubulindo</dc:creator>
			<guid isPermaLink="false">10204@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I'm in Southeast Asia now and just got in my office (7 AM). I have all my Maple stuff in my computer at the hotel, the best I can do is to put that through to you when I arrive there in about 10 hours or so. :\ &#60;/p&#62;
&#60;p&#62;Also, I ran these examples outside the IDE. I installed the libmaple and compiled from there. Maybe this has something to do with it?&#60;br /&#62;
Either way, I can forward both folders to you. &#60;/p&#62;
&#60;p&#62;Good enough?&#60;br /&#62;
My gmail address is the same as my username here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>robarino on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-10200</link>
			<pubDate>Fri, 13 Apr 2012 17:05:59 +0000</pubDate>
			<dc:creator>robarino</dc:creator>
			<guid isPermaLink="false">10200@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;What are the chances you could zip your maple folder and throw it in a dropbox so I could download it. I am doing something wrong and I know how days can disappear with these little problems... I am pretty desperate!  This needs to work in the next 24 hours....
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bubulindo on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-10198</link>
			<pubDate>Fri, 13 Apr 2012 16:53:32 +0000</pubDate>
			<dc:creator>bubulindo</dc:creator>
			<guid isPermaLink="false">10198@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Are the cards formatted for FAT16? &#60;/p&#62;
&#60;p&#62;From the top of my head that's all I can think of.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>robarino on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-10195</link>
			<pubDate>Fri, 13 Apr 2012 13:51:23 +0000</pubDate>
			<dc:creator>robarino</dc:creator>
			<guid isPermaLink="false">10195@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hej Bubulindo!&#60;/p&#62;
&#60;p&#62;Getting close...THANKS!  I still get the error:&#60;/p&#62;
&#60;p&#62;card.init passed&#60;br /&#62;
Error: SdVolume::init() Invalid partition&#60;br /&#62;
p-&#38;gt;boot 104&#60;br /&#62;
p-&#38;gt;totalSectors 1936278538&#60;br /&#62;
p-&#38;gt;firstSector 234827361&#60;br /&#62;
Error: SdVolume::init() invalid FAT volume&#60;br /&#62;
volume.init failed&#60;br /&#62;
openRoot failed&#60;br /&#62;
file.open failed&#60;/p&#62;
&#60;p&#62; I wonder what is wrong with the card...I have tried three...all get the same error...any ideas...&#60;/p&#62;
&#60;p&#62;By the way I owe you a beer!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bubulindo on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-10191</link>
			<pubDate>Fri, 13 Apr 2012 06:54:23 +0000</pubDate>
			<dc:creator>bubulindo</dc:creator>
			<guid isPermaLink="false">10191@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Not sure on the max. I bought the cheapest I found at the time (running the risk it wouldn't work). I looked at it now and it's 8Gb. The 1 and 2 Gb cards are way to expensive these days. &#60;/p&#62;
&#60;p&#62;Come to think of it, I think I had to change the CS pin.&#60;br /&#62;
In file Sd2Card.cpp my pin is 25. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//------------------------------------------------------------------------------
void Sd2Card::chipSelectHigh(void)
{
  digitalWrite(25, HIGH);
}

//------------------------------------------------------------------------------
void Sd2Card::chipSelectLow(void)
{
  digitalWrite(25, LOW);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is that what you have in your library?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>robarino on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-10188</link>
			<pubDate>Fri, 13 Apr 2012 02:27:15 +0000</pubDate>
			<dc:creator>robarino</dc:creator>
			<guid isPermaLink="false">10188@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hej Bubulindo!&#60;/p&#62;
&#60;p&#62;Did you change anything else other than this code? I saw some people changed the Maple.h file. It does not work for me though. What is the max size of the SD card you can use?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bubulindo on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-10181</link>
			<pubDate>Thu, 12 Apr 2012 16:20:27 +0000</pubDate>
			<dc:creator>bubulindo</dc:creator>
			<guid isPermaLink="false">10181@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello, &#60;/p&#62;
&#60;p&#62;This works for me:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#include &#38;quot;wirish.h&#38;quot;
#include &#38;lt;SdFAT/SdFat.h&#38;gt;
#include &#38;lt;HardwareSPI.h&#38;gt;
#include &#38;lt;stdint.h&#38;gt;

HardwareSPI spi(2);
Sd2Card card;
SdVolume volume;
SdFile root;
SdFile file;

void setup() {
  SerialUSB.begin();
  spi.begin(SPI_281_250KHZ, MSBFIRST, 0);
  SerialUSB.println(&#38;quot;type any char to start&#38;quot;);
  while (!SerialUSB.available());
  SerialUSB.println();

  if (!card.init(&#38;amp;spi))
    SerialUSB.println(&#38;quot;card.init failed&#38;quot;);
  else
    SerialUSB.println(&#38;quot;card.init passed&#38;quot;);
//  spi.end();

//  spi.begin(SPI_1_125MHZ, MSBFIRST, 0);

  delay(100);

  // initialize a FAT volume
  if (!volume.init(&#38;amp;card))
    SerialUSB.println(&#38;quot;volume.init failed&#38;quot;);
  else
    SerialUSB.println(&#38;quot;volume.init passed&#38;quot;);

  // open the root directory
  if (!root.openRoot(&#38;amp;volume))
    SerialUSB.println(&#38;quot;openRoot failed&#38;quot;);
  else
    SerialUSB.println(&#38;quot;openRoot passed&#38;quot;);

  // open a file
  if (file.open(&#38;amp;root, &#38;quot;output2.csv&#38;quot;, O_READ))
  {
    SerialUSB.println(&#38;quot;Opened PRINT00.TXT&#38;quot;);
  }
  else if (file.open(&#38;amp;root, &#38;quot;WRITE00.TXT&#38;quot;, O_READ))
  {
    SerialUSB.println(&#38;quot;Opened WRITE00.TXT&#38;quot;);
  }
  else
  {
    SerialUSB.println(&#38;quot;file.open failed&#38;quot;);
  }
  SerialUSB.println();  

  int16_t n;
  uint8_t buf[7];// nothing special about 7, just a lucky number.
  while ((n = file.read(buf, sizeof(buf))) &#38;gt; 0)
  {
    for (uint8_t i = 0; i &#38;lt; n; i++)
      SerialUSB.print((char)buf[i]);
  }
  /* easier way
  int16_t c;
  while ((c = file.read()) &#38;gt; 0) Serial.print((char)c);
  */
  SerialUSB.println(&#38;quot;\nDone&#38;quot;);
  spi.end();

}

void loop() {

}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>robarino on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-10179</link>
			<pubDate>Thu, 12 Apr 2012 13:42:55 +0000</pubDate>
			<dc:creator>robarino</dc:creator>
			<guid isPermaLink="false">10179@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hej Thanks. I have seen the thread but was wondering about some Olimexino specific changes needed to be made and I was wondering if anyone had some experience with this. I am a bit fo a noob with the maple and I would love to be able to use an SD card with this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-10178</link>
			<pubDate>Thu, 12 Apr 2012 13:28:56 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">10178@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The discussion of SDFAT library is on &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=112&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=112&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Instructions on downloading the IDE is at &#60;a href=&#34;http://leaflabs.com/docs/maple-ide-install.html&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/maple-ide-install.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The library sources are at &#60;a href=&#34;https://github.com/leaflabs/libmaple&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/libmaple&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;(Full disclosure: I am not a member of LeafLabs of Olimex staff)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>robarino on "SDFAT Help with MAPLE CLONE"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1549#post-10177</link>
			<pubDate>Thu, 12 Apr 2012 12:54:12 +0000</pubDate>
			<dc:creator>robarino</dc:creator>
			<guid isPermaLink="false">10177@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hej!&#60;/p&#62;
&#60;p&#62;I hope I am not stepping on anyones toes asking about the Olimexino and SDFAT library. I have tries to install the library (there are two...which one is it?). I have tried both of the libraries there and I have had no luck running and saving. The &#34;sys&#34; éxample compiles and I get a blank screen on the  serial I was wondering if anyone has it working on the Olimexino? If so maybe you could zip your maple IDE and throw it in a dropbox for me? Or let me know how you got it working. I will give you a big Tack så mycket if you can help me out!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
