I’m having some trouble trying to do a filesystem upload for my ESP8266 (nodemcuv2) project that I could use some help with. In particular, I’m seeing that whenever I upload any filesystem image, it is deleting the application firmware. My guess is that that may be somehow related to partitioning, but I’m not quite sure where to look. In addition, attempting to send the filesystem image using OTA always ends up using the serial port anyway. It is almost like it is ignoring the request to use OTA. Again, I’m not quite sure where to look.
Below are my configuration file contents. I can also post the full results of envdump
if that would be helpful. Given the size of that output, I didn’t know if I should drop the whole output in here or not. Instead, I just grabbed the version information from the start of the output.
Thanks!
Craig
I’d appreciate any suggestion.
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
; =================================================
; Set the default environment
; =================================================
[platformio]
default_envs = nodemcuv2_serial
extra_configs = config.ini
; =================================================
; Serial-based non-debug uploads
; =================================================
[env:nodemcuv2_serial]
platform = espressif8266
board = nodemcuv2
framework = arduino
board_build.filesystem = littlefs
extra_scripts =
./scripts/build_webapp.py
./scripts/websocket_serial.py
lib_deps =
densaugeo/base64 @ ^1.4.0 ; https://github.com/Densaugeo/base64_arduino
crankyoldgit/IRremoteESP8266 @ ^2.8.6 ; https://github.com/crankyoldgit/IRremoteESP8266
esphome/AsyncTCP-esphome@^2.1.3 ; https://github.com/esphome/AsyncTCP
; esphome/ESPAsyncWebServer-esphome @ ^3.2.2 ; https://github.com/esphome/ESPAsyncWebServer
me-no-dev/ESP Async WebServer @ ^1.2.4
bblanchon/ArduinoJson @ ^6.19.4 ; https://arduinojson.org/
ESPAsyncWiFiManager ; https://github.com/alanswx/ESPAsyncWiFiManager
WiFi
build_flags =
-DBUILD_TIMESTAMP=$UNIX_TIME
-DSENDER
-DDISABLE_AC_HANDLING
-DLOG_IR_DECODE
-DMDNS_NAME='"${wifi.mdns_name}"'
-DOTA_PASSWORD='"${ota.password}"'
; Set monitor configuration for Serial requests
monitor_speed = 115200
monitor_dtr = 0
monitor_rts = 0
; =================================================
; Serial-based uploads with GDB setup
; =================================================
[env:nodemcuv2_serial_gdb]
extends = env:nodemcuv2_serial
build_type = debug
build_flags =
-DBUILD_TIMESTAMP=$UNIX_TIME
-DGDB_DEBUG
; =================================================
; OTA-based non-debug uploads
; =================================================
[env:nodemcuv2_ota]
extends = env:nodemcuv2_serial
upload_protocol = espota
upload_port = '${ota.port}'
upload_flags = --auth='${ota.password}'
Processing nodemcuv2_ota (platform: espressif8266; board: nodemcuv2; framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 (4.2.1) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
- framework-arduinoespressif8266 @ 3.30102.0 (3.1.2)
- tool-esptool @ 1.413.0 (4.13)
- tool-esptoolpy @ 1.30000.201119 (3.0.0)
- toolchain-xtensa @ 2.100300.220621 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 44 compatible libraries
Scanning dependencies...
Dependency Graph
|-- base64 @ 1.4.0
|-- IRremoteESP8266 @ 2.8.6
|-- ESP Async WebServer @ 1.2.4
|-- ArduinoJson @ 6.21.5
|-- ESPAsyncWiFiManager @ 0.31.0
|-- WiFi @ 1.2.7
|-- ESP8266WiFi @ 1.0
|-- LittleFS @ 0.1.0
|-- ArduinoOTA @ 1.0
|-- ESP8266mDNS @ 1.2
|-- DNSServer @ 1.1.1
|-- ESPAsyncTCP @ 1.2.2