Giter Site home page Giter Site logo

esp32_redflash's People

Contributors

lllucius avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

esp32_redflash's Issues

[QUESTION] How to assure file persistence with this ESP32 port?

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?

[QUESTION] Error when compiling | "Field '...' could not be resolved"

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.

  • esp-idf v3.2.2
  • Eclipse IDE

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.