Search found 9 matches

by ESPfri2
Fri May 17, 2019 7:59 am
Forum: ESP32 Arduino
Topic: open and Files information do not comply with Posix specifications
Replies: 5
Views: 925

Re: open and Files information do not complying with Posix specifications

New results : Initializing ... Initializing SD card Initializing SPIFF Initializations done ---- Running tests with a non existing file on : SD card : r a w r+ a+ w+ SPIFFS : r a w r+ a+ w+ Running tests with a existing empty file on : SD card : r a w r+ a+ w+ SPIFFS : r a w r+ a+ w+ Running tests w...
by ESPfri2
Mon May 13, 2019 1:55 pm
Forum: ESP32 Arduino
Topic: open and Files information do not comply with Posix specifications
Replies: 5
Views: 925

Re: Incorrect File object informations after file creation on a SD card and on SPIFFS

summary Initializing SPIFF Initializing SD card Initializations done Support Mode Open Size Position Available Size Position Available SD card r OK SD card a OK NOK OK NOK OK OK OK SD card w OK NOK OK NOK OK OK OK SPIFFS r NOK SPIFFS a OK NOK OK NOK NOK OK NOK SPIFFS w OK NOK OK NOK NOK OK NOK Resul...
by ESPfri2
Mon May 13, 2019 8:00 am
Forum: ESP32 Arduino
Topic: File.available() v.s. File.size() at position zero in File
Replies: 0
Views: 302

File.available() v.s. File.size() at position zero in File

Hi, can somebody explain me the reasons for such different types when manipulating Files and not only one : size_t below, we have : size_t (unsigned int), uint32_t , int :?: FS.h extract size_t write(uint8_t) override; size_t write(const uint8_t *buf, size_t size) override; int available() override;...
by ESPfri2
Fri May 10, 2019 12:30 pm
Forum: ESP32 Arduino
Topic: open and Files information do not comply with Posix specifications
Replies: 5
Views: 925

Re: Incorrect File object informations after file creation on a SD card and on SPIFFS

I extended the previous program to also tests SPIFFS and various file modes, the results are badly impressive ... :o :shock: To me there are clearly bugs, for example on SPIFFS, opening a non existing file in read mode will return a File object, when it clearly should not ! If a specialist of this c...
by ESPfri2
Wed May 08, 2019 1:59 pm
Forum: ESP32 Arduino
Topic: open and Files information do not comply with Posix specifications
Replies: 5
Views: 925

open and Files information do not comply with Posix specifications

Hello, this is the rework of my previous post "Incorrect File object information after file creation on a SD card and on SPIFFS" I extended the investigation and modified the test program that lead me to conclude that the implementation of the Arduino ESP32 file manipulation do not comply with Posix...
by ESPfri2
Tue May 07, 2019 4:51 pm
Forum: General Discussion
Topic: SD card and file seek problem
Replies: 3
Views: 639

Re: SD card and file seek problem

thanks @ESp_iggr

I switched to from FILE_WRITE to "a+" , and no more error ...
by ESPfri2
Tue May 07, 2019 4:37 pm
Forum: General Discussion
Topic: SD card and file seek problem
Replies: 3
Views: 639

Re: SD card and file seek problem

in the file <FS.h> the only possible options for open are : namespace fs { #define FILE_READ "r" #define FILE_WRITE "w" #define FILE_APPEND "a" class File; Here is the output of the above program : initialization done Openning file : /f1.txt Writing to file : /f1.txt Current Position : 32 New Positi...
by ESPfri2
Tue May 07, 2019 3:59 pm
Forum: General Discussion
Topic: SD card and file seek problem
Replies: 3
Views: 639

SD card and file seek problem

Hello the following code end up with a read returning -1 I don't see what I am missing here ... :( if you have ideas, thanks much ! #include <Arduino.h> #include <SPI.h> #include <SD.h> #include <errno.h> #include <WiFi.h> #include <time.h> #include <sys/time.h> #include <Wire.h> #include <EEPROM.h>...

Go to advanced search