Skip to content

Sketch too big, but identical sources are compiling and flashing under esp-idf environment #339

@croisez

Description

@croisez

I am writing a program which uses following capabilities of the ESP32: Blufi protocol, reception of BLE advertisings, HTTPS post (WiFiClientSecure), and WiFi.

I have written such program using Eclipse/esp-idf and it is compiling/flashing fine.
I wanted to try the Arduino way, and I am stuck with size of sketch too big error.

Multiple libraries were found for "WiFi.h"
 Used: /Users/lmc/Dropbox/arduino/hardware/espressif/esp32/libraries/WiFi
 Not used: /Applications/Arduino.app/Contents/Java/libraries/WiFi
Using library Blufi at version 1.0 in folder: /Users/lmc/Dropbox/arduino/hardware/espressif/esp32/libraries/Blufi 
Using library WiFiClientSecure at version 1.0 in folder: /Users/lmc/Dropbox/arduino/hardware/espressif/esp32/libraries/WiFiClientSecure 
Using library WiFi at version 1.0 in folder: /Users/lmc/Dropbox/arduino/hardware/espressif/esp32/libraries/WiFi 

Sketch uses 1,095,399 bytes (104%) of program storage space. Maximum is 1,044,464 bytes.
Global variables use 70,684 bytes (23%) of dynamic memory, leaving 224,228 bytes for local variables. Maximum is 294,912 bytes.
processing.app.debug.RunnerException: Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.

The functionalities are very identical, I don't include unused #includes.
As concern Blufi, I have written a lib for ESP32-Arduino from the Blufi example found in esp-idf.

How could I workaround this error and make my sketch flashable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: SolvedThe issue has been resolved and requires no further action.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions