Sketch too big

Muznah9
Posts: 3
Joined: Tue Feb 25, 2020 6:35 pm

Sketch too big

Postby Muznah9 » Wed Feb 26, 2020 5:35 am

Hi all,

I have this error message, how to solve this problem?
In the project, I am using Bluetooth, and WIFI libraries.
text section exceeds available space in board
Sketch uses 1512630 bytes (115%) of program storage space. Maximum is 1310720 bytes.
Global variables use 59332 bytes (18%) of dynamic memory, leaving 268348 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.

dmaxben
Posts: 108
Joined: Thu Nov 16, 2017 6:04 pm

Re: Sketch too big

Postby dmaxben » Thu Feb 27, 2020 1:34 pm

Couple options...

Change the partition table sizes

If you do not need OTA firmware update abilities, switch to a single partition

Remove the SPIFFS partition

Switch to the 16MB (128Mbit) version of the ESP32-WROOM32

Muznah9
Posts: 3
Joined: Tue Feb 25, 2020 6:35 pm

Re: Sketch too big

Postby Muznah9 » Sat Feb 29, 2020 6:27 pm

Thank you.

I tried to change the partition table, but I don't know what is the best partition for the project. I am using Bluetooth and THINGER IoT platform, and several sensors.

I tried to change the partition and now I have a rebooting problem. What should I do?

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
assertion "offset == dataSize" failed: file "/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/nvs_flash/src/nvs_storage.cpp", line 438, function: esp_err_t nvs::Storage::readMultiPageBlob(uint8_t, const char*, void*, size_t)
abort() was called at PC 0x401203e3 on core 0

Backtrace: 0x4008cca8:0x3ffb5620 0x4008ced9:0x3ffb5640 0x401203e3:0x3ffb5660 0x4010111d:0x3ffb5690 0x40101188:0x3ffb5710 0x4010024e:0x3ffb5770 0x40100785:0x3ffb57b0 0x40110257:0x3ffb57d0 0x4011042f:0x3ffb5820 0x4010e472:0x3ffb5840 0x4010b0de:0x3ffb5860 0x4008fdf7:0x3ffb5880 0x400893bd:0x3ffb58c0

Who is online

Users browsing this forum: Bing [Bot] and 59 guests