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

Out of space error when compiling #1

Open
ianmxyz opened this issue May 5, 2021 · 2 comments
Open

Out of space error when compiling #1

ianmxyz opened this issue May 5, 2021 · 2 comments

Comments

@ianmxyz
Copy link

ianmxyz commented May 5, 2021

I'm getting an out of space error when compiling. I'm using ESP Dev Module in the board settings as per the guidance for the TTGO sample sketches (which work for me.) Using 4MB flash size and PSRAM disabled as specified. Result of attempted compilation following:

Arduino: 1.8.13 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

Sketch uses 1591910 bytes (121%) of program storage space. Maximum is 1310720 bytes.text section exceeds available space in board

Global variables use 56536 bytes (17%) of dynamic memory, leaving 271144 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.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@nieldk
Copy link
Owner

nieldk commented May 5, 2021

I'm getting an out of space error when compiling. I'm using ESP Dev Module in the board settings as per the guidance for the TTGO sample sketches (which work for me.) Using 4MB flash size and PSRAM disabled as specified. Result of attempted compilation following:

Arduino: 1.8.13 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Sketch uses 1591910 bytes (121%) of program storage space. Maximum is 1310720 bytes.text section exceeds available space in board
Global variables use 56536 bytes (17%) of dynamic memory, leaving 271144 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.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Change the settings to a APP size large enough to hold the program storage (eg 2MB). You dont need so much SPIFF size. So, your partitioning is simply wrong.

@ianmxyz
Copy link
Author

ianmxyz commented May 6, 2021

Thanks, foolish of me to miss that, I'd just used the defaults from the TTGO examples.

I'm getting an out of space error when compiling. I'm using ESP Dev Module in the board settings as per the guidance for the TTGO sample sketches (which work for me.) Using 4MB flash size and PSRAM disabled as specified. Result of attempted compilation following:

Arduino: 1.8.13 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Sketch uses 1591910 bytes (121%) of program storage space. Maximum is 1310720 bytes.text section exceeds available space in board
Global variables use 56536 bytes (17%) of dynamic memory, leaving 271144 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.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Change the settings to a APP size large enough to hold the program storage (eg 2MB). You dont need so much SPIFF size. So, your partitioning is simply wrong.

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

2 participants