Git Product home page Git Product logo

petitfs's People

Contributors

greiman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

petitfs's Issues

exFAT support

Do you think it's possible to add exFAT support? I'm interested in using PetitFS, but I need exFAT compatibility.

Is it hard to add the exFAT code from FatFS?

LGT8F328P

Hello, I'm trying to use PetitFS in my project. On original Arduino Nano working fine but when I switch to LGT8F328P there is initialization problem even when I switch to 16MHz. Could anyone help me with that?

Problem on writing to a file

Hi,
I'm trying to write a string to an empty file in the root of SD but the file is empty and all function return FR_OK
here is a simple example

#include "PetitFS.h"
#include "PetitSerial.h"

PetitSerial PS;
#define Serial PS

// The SD chip select pin is currently defined as 10
// in pffArduino.h.  Edit pffArduino.h to change the CS pin.

FATFS fs;

void setup()
{
    Serial.begin(9600);
    char* buf = "Hello World!\r\n";
    pf_mount(&fs);
    pf_open("TEST.TXT");
    UINT n;

Serial.print("Buff:");
Serial.println(buf);
pf_write(buf,strlen(buf),&n);
pf_write(0,0,&n);
Serial.println("Done");
}
void loop() {}

I think I am missing some steps in the manual.
EDIT:
I fixed it with just putting a large dummy text file. but my problem is how can I append to end of file is there any workaround for that?
Thanks.

Arduino Compile Error

Hi, I faced the following issue using the zipped version. Arduino simply cannot compile it :((

image

PetitFS:8:1: error: 'PetitSerial' does not name a type; did you mean 'PetitSerial_h'?

 PetitSerial PS;

 ^~~~~~~~~~~

 PetitSerial_h

C:\Users\Jamesong7822\Documents\Arduino\libraries\PetitFS-master\examples\PetitFS\PetitFS.ino: In function 'void errorHalt(char*)':

PetitFS:10:16: error: 'PS' was not declared in this scope

 #define Serial PS

                ^

C:\Users\Jamesong7822\Documents\Arduino\libraries\PetitFS-master\examples\PetitFS\PetitFS.ino:18:3: note: in expansion of macro 'Serial'

   Serial.print("Error: ");

   ^~~~~~

C:\Users\Jamesong7822\Documents\Arduino\libraries\PetitFS-master\examples\PetitFS\PetitFS.ino:10:16: note: suggested alternative: 'PI'

 #define Serial PS

                ^

C:\Users\Jamesong7822\Documents\Arduino\libraries\PetitFS-master\examples\PetitFS\PetitFS.ino:18:3: note: in expansion of macro 'Serial'

   Serial.print("Error: ");

   ^~~~~~

C:\Users\Jamesong7822\Documents\Arduino\libraries\PetitFS-master\examples\PetitFS\PetitFS.ino: In function 'void test()':

PetitFS:10:16: error: 'PS' was not declared in this scope

 #define Serial PS

                ^

C:\Users\Jamesong7822\Documents\Arduino\libraries\PetitFS-master\examples\PetitFS\PetitFS.ino:37:5: note: in expansion of macro 'Serial'

     Serial.write(buf, nr);

     ^~~~~~

C:\Users\Jamesong7822\Documents\Arduino\libraries\PetitFS-master\examples\PetitFS\PetitFS.ino:10:16: note: suggested alternative: 'PI'

 #define Serial PS

                ^

C:\Users\Jamesong7822\Documents\Arduino\libraries\PetitFS-master\examples\PetitFS\PetitFS.ino:37:5: note: in expansion of macro 'Serial'

     Serial.write(buf, nr);

     ^~~~~~

C:\Users\Jamesong7822\Documents\Arduino\libraries\PetitFS-master\examples\PetitFS\PetitFS.ino: In function 'void setup()':

PetitFS:10:16: error: 'PS' was not declared in this scope

 #define Serial PS

                ^

C:\Users\Jamesong7822\Documents\Arduino\libraries\PetitFS-master\examples\PetitFS\PetitFS.ino:42:3: note: in expansion of macro 'Serial'

   Serial.begin(9600);

   ^~~~~~

C:\Users\Jamesong7822\Documents\Arduino\libraries\PetitFS-master\examples\PetitFS\PetitFS.ino:10:16: note: suggested alternative: 'PI'

 #define Serial PS

                ^

C:\Users\Jamesong7822\Documents\Arduino\libraries\PetitFS-master\examples\PetitFS\PetitFS.ino:42:3: note: in expansion of macro 'Serial'

   Serial.begin(9600);

   ^~~~~~

exit status 1
'PetitSerial' does not name a type; did you mean 'PetitSerial_h'?

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.