Sketch Using Both BLE And WiFi Exceeds Available Space #4668

Hardware:

Board: ESP32 Dev Module Core Installation version: 1.0.4 IDE name: Arduino IDE Flash Frequency: 80MHz PSRAM enabled: no Upload Speed: 921600 Computer OS: macOS Mojave 10.14.6

Description:

I'm trying to build a thing to forward BLE announcements to an HTTP endpoint in WiFi network. However, just combining minimal BLE and WiFi code already exceeds available space. Compiling fails with error:

Sketch uses 1311266 bytes (100%) of program storage space. Maximum is 1310720 bytes. text section exceeds available space in board Global variables use 57716 bytes (17%) of dynamic memory, leaving 269964 bytes for local variables. Maximum is 327680 bytes. Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it. Error compiling for board ESP32 Dev Module.

(My first attempt in firmware / arduino, not too familiar how restrictive the environment really is but this is feeling like hitting the limits much too quickly.)

Sketch:

#include <BLEAdvertisedDevice.h> #include <BLEDevice.h> #include <BLEScan.h> #include <BLEUtils.h> #include <WiFi.h> void setup() { Serial.begin(115200); WiFi.begin("", ""); BLEDevice::init(""); auto scan = BLEDevice::getScan(); auto result = scan->start(0); } void loop() { }

Tag » Arduino Esp32 Text Section Exceeds Available Space In Board