Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By brutzler
#25575 OK,

offset accepted :mrgreen:

How do you get theese information out of the ESP?
Code: Select allSPIFFSImpl: allocating 512+180+1400=2092 bytes
SPIFFSImpl: mounting fs @6b000, size=4000, block=1000, page=100
SPIFFSImpl: mount rc=0


BTW: Did I erase important informations, because of writing in the wifi-reserved bytes?
User avatar
By martinayotte
#25577 For the debug trace, since I didn't wish to have trace for the whole spiffs including low layer, I've only added the following #undef and #define in the specific file spiffs_api.cpp, just to debug what I had as suspicious : mount failed and reformat.

Code: Select all#undef DEBUGV
#define DEBUGV(...) Serial.printf(__VA_ARGS__)


What you erased in flash ? nothing very important : it is the list of known AP you have already accessed in the past with their SSID/Password in case you wish to use the automatic reconnect. If all you sketches force connection to specific AP, this list will simply be re-stuffed.
(BTW, for your knowledge, this list needs some time to be erased anyway by uploading blank.bin at 0x7c000 and 0x7e000, especially when there is big changes in the list structure between two version of SDKs, example from 0.95 to 1.20, otherwise the ESP simply crash during auto-reconnect)
User avatar
By brutzler
#25630 Hi,

tried to compile a mkspiffs.exe with the new information from martinayotte.
Code: Select all#define SPIFFS_USE_MAGIC                (1)

Made a download of the installer from MinGW.
Installed the following packages
- mingw-developer-toolkit
- mingw32-base
- mingw32-gcc-obj
- msys-base

Then I copied the "mkspiffs-master" from github, and modified "spiffs_config.h"

After this i changed into the mkspiffs-master-directory and run:

Code: Select allC:\MinGW\mkspiffs-master>mingw32-make
process_begin: CreateProcess(NULL, git describe --always, ...) failed.
g++ main.o spiffs/spiffs_cache.o spiffs/spiffs_check.o spiffs/spiffs_gc.o spiffs
/spiffs_hydrogen.o spiffs/spiffs_nucleus.o -o mkspiffs.exe -Wl,-static -static-l
ibgcc
strip mkspiffs.exe

The result was a mkspiffs.exe.

But I do not know, if all my steps are right. (was my first time doing something like this)
+: result is an exe like expected
-: there was a failed in the feedback
-: "mkspiffs --version" returns empty