Magic! Thank you very much, Marcus.
What I did:
- Set ESP to flash mode + burn the firmware.
- Reboot the ESP into flash mode again and run 'pio run -t uploadfs' from root folder of the project when the .ino file is open.
- Reboot the ESP normally. Indeed, no configs needed and SPIFFS is ok now.
Guys, I got new computer, so started with old problems :)
The problem above was solved with old computer (gone).
In the new computer
pio run -t buildfs completed with:
Building in release mode Warning! '-Wl,-T' option for specifying linker scripts is deprecated. Please use 'board_build.ldscript' option in your 'platformio.ini' file. Building file system image from 'Data' directory to .pio\build\esp12e\spiffs.bin *** [.pio\build\esp12e\spiffs.bin] Error 148
Searching didn't help. The only mention is for different ESP module type. My platformio.ini:
[env:esp12e] platform = espressif8266 board = esp12e framework = arduino build_flags = -Wl,-Teagle.flash.4m.ld
build_flags = -Wl,-Teagle.flash.4m.ldwith
board_build.ldscript = eagle.flash.4m1m.ld