I'm developing a **C++** application in the **ESP32-DevKitC** board where I sense acceleration from an accelerometer. The application goal is to store the accelerometer data until storage is full and then send all the data through WiFi and start all again. The micro also goes to deep-sleep mode when is possible.

I'm currently using the ESP32 **NVS library** which is very well documented and pretty easy to use. The **negative side** of this is that the library uses Flash memory, therefore a lot of writings will end up **degrading the drive**.

I know that Espressif also offers some other storage libraries (FAT, SPIFFS, etc.) but, as far as I know (correct me if I'm wrong), they all use Flash drive.

Is there any other possibility of doing what I want to but without using the Flash storage?

**Aclarations**

* Using Flash memory is not the problem itself, but **degrading it**.
* Storage **has** to be **non volatile** or at least **not being erased** when the micro goes to deep-sleep mode.
* I'm not using any Arduino library.