Fix For "sketch Is Too Big" On ESP32 Boards That Are New / Poorly ...

Skip to content Dismiss alert {{ message }} / Bluetooth-BLE-on-Arduino-IDE Public
  • Notifications You must be signed in to change notification settings
  • Fork 66
  • Star 164
  • Code
  • Issues
  • Pull requests
  • Actions
  • Projects
  • Security

    Uh oh!

    There was an error while loading. Please reload this page.

  • Insights
Additional navigation options Fix for "sketch is too big" on ESP32 boards that are new / poorly supported in ESP32 Arduino IDE #3New issueNew issueClosedClosedFix for "sketch is too big" on ESP32 boards that are new / poorly supported in ESP32 Arduino IDE#3@frownbreaker

Description

@frownbreakerfrownbreakeropened on Mar 17, 2018

Hi

I've installed the ESP32 support in my Arduino IDE and can compile and run the blink and BLE_Scan examples from the IDE. Both work fine. When I try and compile this project I get an error saying the sketch is too big?

Archiving built core (caching) in: C:\Users[USER]\AppData\Local\Temp\arduino_cache_768145\core\core_espressif_esp32_WeMosBat_FlashFreq_80,UploadSpeed_921600_89e97c72e9bd6fa98e6bdd6fae23ba9b.a Sketch uses 1395266 bytes (106%) of program storage space. Maximum is 1310720 bytes.

Global variables use 93296 bytes (31%) of dynamic memory, leaving 201616 bytes for local variables. Maximum is 294912 bytes. Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it. Error compiling for board "WeMos" WiFi&Bluetooth Battery.

https://www.aliexpress.com/item/WEMOS-ESP32-ESP-32S-Wireless-WiFi-Bluetooth-Development-Board-With-18650-Battery-Holder-ESP8266-ESP-WROOM/32841683088.html

For me the fix was for the board: It seems that the default.csv is wrong for some boards

# Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x5000, otadata, data, ota, 0xe000, 0x2000, app0, app, ota_0, 0x10000, 0x340000, eeprom, data, 0x99, 0x350000, 0x1000, spiffs, data, spiffs, 0x351000, 0xAF000,

and boards.txt to have modified values of .upload.maximum_size=3407872 you have to edit the line that is specific to your board.

👍React with 👍8

Metadata

Metadata

Assignees

No one assigned

Labels

No labelsNo labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You can’t perform that action at this time.

Tag » Arduino Esp32 Text Section Exceeds Available Space In Board