Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example not compiling, size error #2

Open
papillon2k opened this issue Aug 9, 2024 · 2 comments
Open

Example not compiling, size error #2

papillon2k opened this issue Aug 9, 2024 · 2 comments

Comments

@papillon2k
Copy link

Hi,
I am trying to test one of the examples of the library (the simple one), in Arduino IDE 2.3.2, but it fails with this message:

Sketch uses 1655137 bytes (126%) of program storage space. Maximum is 1310720 bytes.
Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.
Global variables use 58124 bytes (17%) of dynamic memory, leaving 269556 bytes for local variables. Maximum is 327680 bytes.
text section exceeds available space in board

Compilation error: text section exceeds available space in board

The board I am using is a ESP32 DEVKIT V4 (in the IDE, i have chosen "ESP32 Dev Module"). I also tried with another board I have here, an D1 Mini ESP32, with same result.

Is this normal?

(By the way, I had to rename the folder that contains the example to have the same name as the .ino file, or it would not show on the File > examples menu)

Thanks in advance

@Bakar002
Copy link

Hello the basic solution for this problem is just but a little setting like go to Arduino IDE SELECT YOUR BOARD IN THE ABOVE YOU HAVE AN OPTION OF TOOLS JUST GO THERE THEN YOU SEE A OPTION LIKE PARTITION SCHEME AND THEN SET IT TO Minimal SPIFFS AND THEN ADD YOUR SKETCH AND TRY TO UPLOAD IT YOU WILL SURE BE ABLE TO UPLOAD IT NICELY

@jimwhitelaw
Copy link
Owner

In my case, I'm using PlatformIO and I specify the partition scheme using this custom_partitions.csv file:

# Name,   Type, SubType, Offset,  Size, Flags
nvs,      data, nvs,     0x9000,  0x5000,
otadata,  data, ota,     0xe000,  0x2000,
app0,     app,  ota_0,   0x10000, 0x1D0000,
app1,     app,  ota_1,   0x1E0000,0x1D0000,
spiffs,   data, spiffs,  0x3B0000,0x40000,
coredump, data, coredump,0x3F0000,0x10000,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants