Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME688 development kit firmware compilation issue

    BME688 development kit firmware compilation issue

    fritz
    Member

    Hallo,

    trying to compile firmware for the 8x dev kit as described in:

    https://github.com/BoschSensortec/Bosch-BSEC2-Library/blob/master/examples/bme68x_demo_sample/Quick_...

    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?

    11 REPLIES 11

    Minhwan
    Community Moderator
    Community Moderator

    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

    Minhwan
    Community Moderator
    Community Moderator

    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

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist