Heltec Wireless Stick

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

hi,

could you try enter the bootloader mode?

press the UESR key -> get power to USB -> release the USER key.

Hi JasonXu,

I was able to upload the sketch and update sketch data to SPIFFS with Arduino IDE 1.8.14

But with platform Io, I spent more than 8 hours trying to upload the sketch and sketch data with no lock, I can upload the sketch but is not running , and I wisent able to upload the data to SPIFFS

I am using ENV: heltec_wireless_stick

I am receiving the following 2 logs

rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac
ets Jun 8 2016 00:22:57
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…

Changing baud rate to 460800

*** [uploadfs] Error 2

Changed.

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.

======================================= [FAILED] Took 3.85 seconds =======================================

The terminal process “C:\Users\Wesam.platformio\penv\Scripts\platformio.exe ‘run’, ‘–target’, ‘uploadfs’, ‘–environment’, ‘heltec_wireless_stick’” terminated with exit code: 1.

In Platform IO there in no wireless stick light in board list so I used wireless stick, !!

i am rceiving this error

any recomandation

hi,

greeting from heltec!

We have not yet made PIO support for ESP32.

What you use is developed by our customer.

Hi Jason,

what do you recommand me to use, in projects insted of Ardurino IDE, what Heltec team use?

We did arduino IDE adaptation work for ESP3

Hi Jason,

I used Heltec Wireless Stick Instead of Heltec Wireless Stick Light and it works with Platform IO

I was able to upload the sketch and upload the sketch data to SPIFFS

But with Wireless Stick Light, I was able to get the sketch upload but not the sketch data, and upload filesystem image OTA

Is there anything I can do to clear this error,

I created a platform IO .ini file attached for Heltec Wireless Stick Light, however I still have issue to upload the filesystem image to SPIFFs

This is the 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.

[env:heltec_wireless_stick]
platform = espressif32
board = heltec_wireless_stick
framework = arduino
board_build.mcu = esp32
board_build.tool = esptool
board_build.upload.maximum_size = 1310720
board_build.upload.maximum_data_size = 327680
board_build.upload.wait_for_upload_port = true
board_build.serial.disablerts = true
board_build.build.mcu = esp32
board_build.build.core = esp32
board_build.build.variant = wireless_stick_lite
board_build.build.board = WIRELESS_STICK_LITE
board_build.build.f_cpu = 240000000L
board_build.build.flash_size = 4MB
board_build.build.flash_freq = 80m
board_build.build.flash_mode = dio
board_build.build.boot = dio
board_build.build.partitions = default
;board_build.build.defines =
board_build.menu.psram.enabled.build.defines = -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue
board_build.cpufreq.240.build.f_cpu = 240000000L
board_build.uploadspeed.115200.upload.speed=115200
board_build.lorawan_region.3.build.band = REGION_US915
board_build.lorawandebuglevel.0.build.lorawandebuglevel = 0
lib_deps =
me-no-dev/AsyncTCP@^1.1.1
me-no-dev/ESP Async WebServer@^1.2.3
monitor_speed = 115200