I’m trying to upload my Data files to the flash memory but I’m getting the following error:
A fatal error occurred: File .pio\build\heltec_wireless_stick\spiffs.bin (length 1638400) at offset 6750208 will not fit in 4194304 bytes of flash. Use --flash-size argument, or change flashing address.
Processing heltec_wireless_stick (platform: espressif32; board: heltec_wireless_stick; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/heltec_wireless_stick.html
PLATFORM: Espressif 32 (2.0.0) > Heltec Wireless Stick
HARDWARE: ESP32 240MHz, 320KB RAM, 8MB Flash
DEBUG: Current (esp-prog) 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-arduinoespressif32 3.10004.200129 (1.0.4)
- tool-esptoolpy 1.20600.0 (2.6.0)
- tool-mkspiffs 2.230.0 (2.30)
- toolchain-xtensa32 2.50200.80 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 46 compatible libraries
Scanning dependencies…
Dependency Graph
|-- 1.1.1
|-- 1.2.3
| |-- 1.1.1
| |-- 1.0
| |-- 1.0
|-- 1.0
|-- 1.0
| |-- 1.0
|-- 1.0
Building in release mode
Building SPIFFS image from ‘data’ directory to .pio\build\heltec_wireless_stick\spiffs.bin
/index.html
/index.js
Looking for upload port…
Auto-detected: COM3
Uploading .pio\build\heltec_wireless_stick\spiffs.bin
esptool.py v2.6
Serial port COM3
Connecting…
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
MAC: 50:02:91:82:f9:10
Uploading stub…
Running stub…
Stub running…
Configuring flash size…
Auto-detected Flash size: 4MB
A fatal error occurred: File .pio\build\heltec_wireless_stick\spiffs.bin (length 1638400) at offset 6750208 will not fit in 4194304 bytes of flash. Use --flash-size argument, or change flashing address.
*** [uploadfs] Error 2