lllucius / esp32_redflash Goto Github PK
View Code? Open in Web Editor NEWReliance Edge filesystem for the ESP32
License: Apache License 2.0
Reliance Edge filesystem for the ESP32
License: Apache License 2.0
Hi,
I'm trying to write a simple .txt file and then read it again after a power reset, but it seems that the files are not persisting in the SD card.
I'm using your example functions to do so, and apparently inside the method RedFlash::init()
I can't mount the card unless if I format it first, according to the code below:
err = red_mount(cfg.volume_label);
#if (REDCONF_READ_ONLY == 0) && (REDCONF_API_POSIX_FORMAT == 1)
if (err == -1 && red_errno == RED_EIO)
{
if (red_errno == RED_EIO && !cfg.auto_format)
{
return ESP_FAIL;
}
err = red_format(cfg.volume_label);
if (err == -1)
{
return ESP_FAIL;
}
err = red_mount(cfg.volume_label);
}
#endif // (REDCONF_READ_ONLY == 0) && (REDCONF_API_POSIX_FORMAT == 1)
if (err == -1)
{
return ESP_FAIL;
}
As you can see there are two red_mount()
calls, but the only one working is the one after red_format()
call. Is there any other way I can just make use of your esp32_redflash port to create a simple application that can write, persist and then read files?
Hey @lllucius , I'm trying to add your project in my work, more specifically for managing a SD card file system, replacing the FATFS existing one.
I cloned your repository and tried to compile it, but it seems that I have some issues with my compiler configurations, or something related. I'd like to know more details about the compilation process of your project, assuming it is already functional, if possible.
I found out that g++ compiler is not compatible with your code, is there a way I can still use g++ and change only a few lines of code? The following error is appearing:
sorry, unimplemented: non-trivial designated initializers not supported
I'd probably need some more detailed instructions, since I'm still a beginner working with ESP32.
The error mentioned appears to be related with the /components/extflash/components/extflash.cpp
file, but my guess is that even if I correct this file, this error will appear for similar ones, such as redflash.cpp
.
Hopefully you can enlighten me. Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.