Git Product home page Git Product logo

arduino-filelogger's People

Stargazers

 avatar

arduino-filelogger's Issues

Problem compiling ._Spi.cpp:1:

Hello,

I'm using filelogger.V0.6 and the sd card shield produced by seedstudio
(http://www.seeedstudio.com/depot/sd-card-shield-for-arduino-v21-p-492.html) on
a linux machine and Arduino Duemilanove board.

When trying to compile the filelogger example it gives me the list of
errors listed below. They all refer to ._Spi.cpp:1

Any ideas on how to solve this???

Many thanks!


ERRORS:


/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\5’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\26’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\7’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\2’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\2’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\16’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\260’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\2’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\16’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\342’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\1’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\36’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\232’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\311’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\377’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\16’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\342’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\230’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\1’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\230’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\25’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1:158: error: invalid
suffix "b8be6a2" on integer constant

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\1’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\1’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\36’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\1’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\1’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\36’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\34’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\36’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\377’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: stray ‘\377’ in
program

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: ‘Mac’ does not
name a type

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: expected
constructor, destructor, or type conversion before ‘.’ token

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: expected
unqualified-id before numeric constant

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: expected
constructor, destructor, or type conversion before ‘;’ token

/usr/share/arduino/libraries/FileLogger/._Spi.cpp:1: error: expected
unqualified-id before ‘|’ token

Original issue reported on code.google.com by [email protected] on 8 Mar 2010 at 1:06

Problem with SPI in Arduino Mega

Hello, in arduino Mega the pins for SPI are different.
This is what I did to spi.h to address the change:
#if defined(__AVR_ATmega1280__)

// arduino mega 
#define SS_PIN    53 
#define MOSI_PIN  51
#define MISO_PIN  50 
#define SCK_PIN   52 

#else

#define SCK_PIN   13
#define MISO_PIN  12
#define MOSI_PIN  11
#define SS_PIN    10

#endif

I'm in windows now, so I can't make a diff path right now. I send you my
own spi.h.
Thank you very much.
Ivan Lalaguna
Inycom

Original issue reported on code.google.com by [email protected] on 9 Jun 2009 at 9:39

Attachments:

Writing past end of an array.

The function "locateFileStart" is writing beyond the end of the array
"cookedName".  In both "for loops" the test should be "i < 11" instead of
"i < 12".

See below:

    char cookedName[11];
    for(int i = 0; i < 12; ++i) {
      cookedName[i] = 0x20;
    }
    for (int i = 0, j = 0; i < 12 && filename[i]; ++i) {
      if (filename[i] != '.') {
        cookedName[j] = filename[i] >= 96 ? filename[i] - 32 : filename[i];
        ++j;
      } else {
        j = 8;
      }
    }

Original issue reported on code.google.com by [email protected] on 20 Jul 2009 at 4:23

not logging? plz help

#include "FileLogger.h"

void setup(void)
{
  byte buffer[] = "Hello World!";
  FileLogger::append("data.txt", buffer, 12);
}
void loop(void) {}


Trying to run this piece of code, Cant see any appended data in data.txt file. 
which is not empty? what could be the issue?

Original issue reported on code.google.com by [email protected] on 23 Jul 2012 at 5:06

Problem allocating new Clusters makes some data could be lost

Writting to the file may fail when crossing the cluster boundary (16Kb, as
each cluster is composed of 32 sectors, 512 bytes per sector), so some data
may be lost.

Will be fixed ASAP, in the meantime don't trust this library to save
important data.

Original issue reported on code.google.com by [email protected] on 18 Apr 2009 at 9:31

Dump function

I would like to have a dump function that dumps all the contents of the
file to the Serial port. Also, if there is a function that read the
contents of the file without clearing the contents. 

Thanks

Original issue reported on code.google.com by [email protected] on 3 May 2009 at 6:41

Initialisation failure - K.O. result

What steps will reproduce the problem?

1. Use Seeed Studio Stalker board
http://www.seeedstudio.com/depot/seeeduino-stalker-atmega-328-p-600.html
With ATmega328P and microSD card holder.

2. Use SanDisk µSD 2GB card

3. Use FileLogger library April 2009 and try to append data to an existing 
top-level file that is 1 byte long.

All I ever get is initialisation failure when calling FileLogger::append().
The CPU runs on 3.3V, the card is within a few cm of the CPU, so I don't see a 
problem with long cables or some such.
It's a common card too, can't get anything smaller than that.
As far as I can tell, the card is formatted with FAT16. I used mkdosfs -n msdos 
-v -F 16 /dev/sde1

Tested with the FileLoggerDemo.
No good. :(

Works fine with SdFat, so I doubt it's a hardware problem.

Original issue reported on code.google.com by [email protected] on 9 Oct 2010 at 8:44

general questions

Here are my questions:

1. Which filesystem is your lib supporting?
2. There are examples how to use this lib with the append mode. Is it
possible to use read - and write mode and seek the position?
3. Is it possible to create/remove files and folders and reading objects of
the current working path?

thanks

Original issue reported on code.google.com by [email protected] on 19 Aug 2009 at 7:38

File appender fails if the file has zero bytes

The "append" function will fail if the file "data.log" is empty (zero bytes
length).
There's a work around by now, just write one single character to it, that's
it. Of course, if you put a line of characters (like a comment) it will
work too.
The pseudo-code to fix this bug is included in the nanofat.cpp, as soon as
I have some spare time I'll fix it.

Original issue reported on code.google.com by [email protected] on 19 Apr 2009 at 10:41

include <WProgram.h>

Line 51 in mmc.h
Line 25 in Spi.h
Line 24 in FileLogger.h

change

#include <WProgram.h>

to

#include <Arduino.h>

It is very important to remember this! note that if you are using Arduino 1.0 
IDE, change "WProgram.h" to "Arduino.h"

Original issue reported on code.google.com by [email protected] on 21 May 2012 at 9:00

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.