ESP32 build fails with memory issues after upgrading to PlatformIO 3.6.0a1

Hi there!

I was working last day and this morning with PlatformIO and had no issues at all.
I just upgraded to PlatformIO 3.6.0a1and since I’m not able to compile my ESP32 sketch anymore. It will fail with memory issues.

[Fri Jun 8 07:41:13 2018] Processing esp32doit-devkit-v1 (platform: espressif32; board: esp32doit-devkit-v1; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
PLATFORM: Espressif 32 > DOIT ESP32 DEVKIT V1
SYSTEM: ESP32 240MHz 288KB RAM (1.25MB Flash)
Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
LDF MODES: FINDER(chain) COMPATIBILITY(soft)

Collected 38 compatible libraries
Scanning dependencies…
Dependency Graph
|-- v1.0
|-- v2.0.0
| |-- <ESP8266_SSD1306> v4.0.0
| | |-- v1.0
|-- v1.1.0
|--
|-- v1.2.0
|-- v0.4.7
|-- v1.0
|-- <ESP8266_SSD1306> v4.0.0
| |-- v1.0
|-- v1.0
Linking .pioenvs/esp32doit-devkit-v1/firmware.elf
Checking size .pioenvs/esp32doit-devkit-v1/firmware.elf
Building .pioenvs/esp32doit-devkit-v1/firmware.bin
Memory Usage → Redirecting...
DATA: [==========] 133.9% (used 394884 bytes from 294912 bytes)
PROGRAM: [==========] 97.0% (used 1271270 bytes from 1310720 bytes)
Error: The data size (394884 bytes) is greater than maximum allowed (294912 bytes)
*** [checkprogsize] Explicit exit, status 1
esptool.py v2.1
========================== [ERROR] Took 12.37 seconds ==========================

Any help is appreciated!

Thanks!

by downgrading to v3.5.3 compilation works.

Linking .pioenvs/esp32doit-devkit-v1/firmware.elf
Calculating size .pioenvs/esp32doit-devkit-v1/firmware.elf
Building .pioenvs/esp32doit-devkit-v1/firmware.bin
text data bss dec hex filename
936338 335000 59888 1331226 14501a .pioenvs/esp32doit-devkit-v1/firmware.elf
esptool.py v2.1
========================= [SUCCESS] Took 78.44 seconds =========================

Does firmware works with PIO Core 3.5.3? I see that DATA size excesses maximum allowed. We can disable this checking. You can check full memory details with PIO Core 3.6 via pio run -v.

See

Yes, it’s working on 3.5.3.

I’ve just temporary disabled checking for max data size

Please open PIO IDE Terminal and type pio upgrade --dev.

It is OK now.
Thanks!