New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
platformio File System erased when upload hex #1313
Comments
Do you have a link to the project? Using LittleFS too, and flash over the firmware with the Pio function flash. The FS and the content isn't erased or touched. |
#include "debugs_controller.h" // Variables to save values from HTML form // Set your Gateway IP address WifiServerController::WifiServerController() WifiServerController::~WifiServerController()
/
// WiFi.mode(WIFI_STA); if (WiFi.softAP(WIFI_SERVER_SSIS, NULL))
#ifdef WIFI_DEBUG_DEEP
#ifdef WIFI_DEBUG_DEEP
File root = fs.open(dirname); File file = root.openNextFile(); /**
void notFound(AsyncWebServerRequest request)
/ // Route for root index.html // Route for root index.css // Route for root entireframework.min.css // Route for root index.js _wifi_server.serveStatic("/", SPIFFS, "/"); #endif
_wifi_server.onNotFound(notFound); _wifi_server.begin();
// /**
WifiServerController *obj = static_cast<WifiServerController *>(args); while (!obj->initSPIFFS()) for (;;) /**
{ #ifdef WIFI_DEBUG_DEEP
#ifdef WIFI_DEBUG_DEEP
#ifdef WIFI_DEBUG_DEEP
#ifdef SERVER_DEBUG_DEEP #ifdef WIFI_DEBUG_DEEP
#ifdef WIFI_DEBUG_DEEP #endif #endif
#ifdef WIFI_DEBUG_DEEP #ifdef WIFI_DEBUG_DEEP #ifdef WIFI_DEBUG_DEEP #ifdef WIFI_DEBUG_DEEP |
I test both littlefs and spifss. when using littlefs, internal log of littlefs or asyncwebserver library, i dont know for sure, reports not exist from old files who are not any more in data folder and even i not request on AsyncWebserver request anymore in these stage of project, so i dont know why check for exist of this files. Every time i upgrade esp32 with new hex , when i try to open the web site after successful connection, the load of the web stucks in the middle and never occurs, and when i build again file system image and upload the image everything works ok |
Hello. Im developing in platformio for a while right now. My current application is about WiFi server. Everything works great. But… I seems that every time i upload my elf file with upload option, my wifi web page files in spiff partition are also erased. There are some way to configure upload options so platformio dont erases all the flash or at least avoid to erase spiffs partition when upload my program to esp32?
My code is mostly similar to internet examples of AsyncServer wifi server page from internet. That is my platform.ini file
I test both spiffs and littlefs
At some point i test to use a custom partition table with .csv file, due to unrelated issue, but i left because it don’t fulfill my expected targets, i don’t use anymore these csv indication in the ini file, so i don’t believe there are related to these, i just mention to supply all the information possible.
The text was updated successfully, but these errors were encountered: