I have created a basic Hello World project in platformio to upload to an ESP32 Wrover Kit. I’m also using a custom partitions.csv with a SPIFFS partition. Building the app and flashing/monitoring the board works fine, and I’ve verified that the SPIFFS partition is created on the board, but uploadfs
always fails. Even when I run it in verbose mode with pio run -v -t uploadfs
there is no useful output other than “FAILED.”
Flashing the SPIFFS partition with the ESP-IDF tools works fine.
Does anyone have any ideas that might help me get uploadfs working?
Here’s my configuration:
SPIFFS directory in project:
<project_root>/data/hello_world.txt // echo "hello world" > hello_world.txt
platformio.ini:
[env:esp-wrover-kit]
platform = espressif32
board = esp-wrover-kit
board_build.partitions = partitions.csv
framework = espidf
monitor_port = /dev/cu.usbserial-14301
monitor_speed = 115200
upload_port = /dev/cu.usbserial-14301
partitions.csv:
# Name, Type, SubType, Offset, Size, Flags
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
nvs, data, nvs, , 0x4000,
otadata, data, ota, , 0x2000,
phy_init, data, phy, , 0x1000,
ota_0, app, ota_0, , 0x100000,
ota_1, app, ota_1, , 0x100000,
storage, data, 0x82, , 0x1f0000
Output of uploadfs command:
$ pio run -v -t uploadfs
Processing esp-wrover-kit (platform: espressif32; board: esp-wrover-kit; board_build.partitions: partitions.csv; framework: espidf; monitor_port: /dev/cu.usbserial-14301; monitor_speed: 115200; upload_port: /dev/cu.usbserial-14301)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp-wrover-kit.html
PLATFORM: Espressif 32 1.12.2 > Espressif ESP-WROVER-KIT
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (ftdi) On-board (ftdi) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-espidf 3.40001.200521 (4.0.1)
- tool-cmake 3.16.4
- tool-esptoolpy 1.20600.0 (2.6.0)
- tool-mkspiffs 2.230.0 (2.30)
- tool-ninja 1.9.0
- toolchain-esp32ulp 1.22851.190618 (2.28.51)
- toolchain-xtensa32 2.80200.200226 (8.2.0)
Reading CMake configuration...
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
== [FAILED] Took 1.42 seconds ==
Thank you!