Hallo,
trying to compile firmware for the 8x dev kit as described in:
but running in the compilation issue:
Sketch uses 1375781 bytes (104%) of program storage space. Maximum is 1310720 bytes.
Global variables use 62800 bytes (19%) of dynamic memory, leaving 264880 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 Adafruit ESP32 Feather.
Obviously, we are running out of the available HW resources.
Any suggestions?
Hi fritz,
Did you try to use our recommend version of library, not latest library.
Latest libraries have more size, and it causes out of size issue.
Thank you.
Hello Minhwan,
yes, I've used the recomended versions of the libraries as mentioned on the projects GIT readme page:
ArduinoJson (tested for 6.19.4 by Benoit Blanchon)
RTClib (tested for 2.0.3 by Adafruit)
SdFat (tested for 2.1.2 by Bill Greiman)
and ended up with 104% of program storage space.
Sketch uses 1375781 bytes (104%) of program storage space.
There is only one newer version of mentioned libs available: RTClib verson 2.1.1.
Using this doesn't contribute to the overall program size significantly: +112 bytes
Sketch uses 1375893 bytes (104%) of program storage space.
BR's,
-fritz
Hi Fritz,
Then, it should work.
Could you check which board did you set?
It should be "Adafruit ESP32 Feather" in ESP32 Arduino.
Thank you.
Hello,
yes, "Adafruit ESP32 Feather" board is selected as a target platform.
Please see the detailed error message. You can see used libs and the target board:
"C:\\Users\\xxx\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esptool_py\\4.2.1/esptool.exe" --chip esp32 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB -o "C:\\Users\\xxx\\AppData\\Local\\Temp\\arduino_build_715919/bme68x_demo_sample.ino.bin" "C:\\Users\\xxx\\AppData\\Local\\Temp\\arduino_build_715919/bme68x_demo_sample.ino.elf"
esptool.py v4.2.1
Creating esp32 image...
Merged 25 ELF sections
Successfully created esp32 image.
"C:\\Users\\xxx\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.5/tools/gen_esp32part.exe" -q "C:\\Users\\xxx\\AppData\\Local\\Temp\\arduino_build_715919/partitions.csv" "C:\\Users\\xxx\\AppData\\Local\\Temp\\arduino_build_715919/bme68x_demo_sample.ino.partitions.bin"
Using library SdFat at version 2.1.2 in folder: C:\Users\xxx\Documents\Arduino\libraries\arduino_54829
Using library SPI at version 2.0.0 in folder: C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\SPI
Using library RTClib at version 2.1.1 in folder: C:\Users\xxx\Documents\Arduino\libraries\RTClib
Using library Adafruit_BusIO at version 1.14.1 in folder: C:\Users\xxx\Documents\Arduino\libraries\Adafruit_BusIO
Using library Wire at version 2.0.0 in folder: C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\Wire
Using library Bosch-BSEC2-Library-master at version 1.1.2200 in folder: C:\Users\xxx\Documents\Arduino\libraries\Bosch-BSEC2-Library-master
Using library Bosch-BME68x-Library-master at version 1.1.40407 in folder: C:\Users\xxx\Documents\Arduino\libraries\Bosch-BME68x-Library-master
Using library ArduinoJson at version 6.19.4 in folder: C:\Users\xxx\Documents\Arduino\libraries\ArduinoJson
Using library BLE at version 2.0.0 in folder: C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\BLE
"C:\\Users\\xxx\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\xtensa-esp32-elf-gcc\\gcc8_4_0-esp-2021r2-patch3/bin/xtensa-esp32-elf-size" -A "C:\\Users\\xxx\\AppData\\Local\\Temp\\arduino_build_715919/bme68x_demo_sample.ino.elf"
Sketch uses 1376125 bytes (104%) of program storage space. Maximum is 1310720 bytes.
Global variables use 62824 bytes (19%) of dynamic memory, leaving 264856 bytes for local variables. Maximum is 327680 bytes.
text section exceeds available space in board
Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.
Error compiling for board Adafruit ESP32 Feather.
BR's
- fritz