Open Dr-Gandalf opened 20 hours ago
I am having problems to compile the example /examples/bme68x_demo_sample
I followed the instructions from adafruit to compile for the recommended MCU board (Adafruit HUZZAH32)
the following is the result I am getting using PlatformIO Arduino
Processing adafruit_feather_esp32 (platform: espressif32; board: featheresp32; framework: arduino) -------------------------------------------------------------------------------------------------------------- Verbose mode can be enabled via `-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/featheresp32.html PLATFORM: Espressif 32 (6.9.0) > Adafruit ESP32 Feather HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES: - framework-arduinoespressif32 @ 3.20017.0 (2.0.17) - tool-esptoolpy @ 1.40501.0 (4.5.1) - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5 LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 39 compatible libraries Scanning dependencies... Dependency Graph |-- ArduinoJson @ 6.19.3 |-- RTClib @ 2.1.4 |-- SdFat @ 2.1.2 |-- bsec2 @ 1.8.2610 |-- BME68x Sensor library @ 1.2.40408 |-- ESP32 BLE Arduino @ 2.0.0 |-- SPI @ 2.0.0 |-- Wire @ 2.0.0 Building in release mode Compiling .pio\build\adafruit_feather_esp32\src\ble_controller.cpp.o Compiling .pio\build\adafruit_feather_esp32\src\bme68x_datalogger.cpp.o Compiling .pio\build\adafruit_feather_esp32\src\bsec_datalogger.cpp.o Compiling .pio\build\adafruit_feather_esp32\src\label_provider.cpp.o Compiling .pio\build\adafruit_feather_esp32\src\led_controller.cpp.o Compiling .pio\build\adafruit_feather_esp32\src\main.cpp.o Compiling .pio\build\adafruit_feather_esp32\src\sensor_manager.cpp.o Compiling .pio\build\adafruit_feather_esp32\src\utils.cpp.o Building .pio\build\adafruit_feather_esp32\bootloader.bin Generating partitions .pio\build\adafruit_feather_esp32\partitions.bin src/utils.cpp:42: warning: "_GNU_SOURCE" redefined #define _GNU_SOURCE <command-line>: note: this is the location of the previous definition Compiling .pio\build\adafruit_feather_esp32\lib40c\Wire\Wire.cpp.o esptool.py v4.5.1 Creating esp32 image... Merged 1 ELF section Successfully created esp32 image. Compiling .pio\build\adafruit_feather_esp32\libd0f\SPI\SPI.cpp.o Compiling .pio\build\adafruit_feather_esp32\libe30\Adafruit BusIO\Adafruit_BusIO_Register.cpp.o Compiling .pio\build\adafruit_feather_esp32\libe30\Adafruit BusIO\Adafruit_I2CDevice.cpp.o Compiling .pio\build\adafruit_feather_esp32\libe30\Adafruit BusIO\Adafruit_SPIDevice.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib1f1\RTClib\RTC_DS1307.cpp.o Archiving .pio\build\adafruit_feather_esp32\lib40c\libWire.a Compiling .pio\build\adafruit_feather_esp32\lib1f1\RTClib\RTC_DS3231.cpp.o Archiving .pio\build\adafruit_feather_esp32\libd0f\libSPI.a Compiling .pio\build\adafruit_feather_esp32\lib1f1\RTClib\RTC_Micros.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib1f1\RTClib\RTC_Millis.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib1f1\RTClib\RTC_PCF8523.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib1f1\RTClib\RTC_PCF8563.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib1f1\RTClib\RTClib.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\ExFatLib\ExFatDbg.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\ExFatLib\ExFatFile.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\ExFatLib\ExFatFilePrint.cpp.o Archiving .pio\build\adafruit_feather_esp32\libe30\libAdafruit BusIO.a Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\ExFatLib\ExFatFileWrite.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\ExFatLib\ExFatFormatter.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\ExFatLib\ExFatName.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\ExFatLib\ExFatPartition.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\ExFatLib\ExFatVolume.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\FatLib\FatDbg.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\FatLib\FatFile.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\FatLib\FatFileLFN.cpp.o Archiving .pio\build\adafruit_feather_esp32\lib1f1\libRTClib.a Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\FatLib\FatFilePrint.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\FatLib\FatFileSFN.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\FatLib\FatFormatter.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\FatLib\FatName.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\FatLib\FatPartition.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\FatLib\FatVolume.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\FreeStack.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\FsLib\FsFile.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\FsLib\FsNew.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\FsLib\FsVolume.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\MinimumSerial.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\SdCard\SdCardInfo.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\SdCard\SdSpiCard.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\SdCard\SdioTeensy.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\SpiDriver\SdSpiArtemis.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\SpiDriver\SdSpiChipSelect.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\SpiDriver\SdSpiDue.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\SpiDriver\SdSpiESP.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\SpiDriver\SdSpiParticle.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\SpiDriver\SdSpiSTM32.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\SpiDriver\SdSpiSTM32Core.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\SpiDriver\SdSpiTeensy3.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\common\FmtNumber.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\common\FsCache.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\common\FsDateTime.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\common\FsName.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\common\FsStructs.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\common\FsUtf.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\common\PrintBasic.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\common\upcase.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\iostream\StdioStream.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\iostream\StreamBaseClass.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\iostream\istream.cpp.o Compiling .pio\build\adafruit_feather_esp32\libcd9\SdFat\iostream\ostream.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib55d\BME68x Sensor library\bme68xLibrary.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib55d\BME68x Sensor library\bme68x\bme68x.c.o Compiling .pio\build\adafruit_feather_esp32\libe0c\bsec2\bsec2.cpp.o Compiling .pio\build\adafruit_feather_esp32\libe0c\bsec2\commMux\commMux.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLE2902.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLE2904.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEAddress.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEAdvertisedDevice.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEAdvertising.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEBeacon.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLECharacteristic.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLECharacteristicMap.cpp.o Archiving .pio\build\adafruit_feather_esp32\libcd9\libSdFat.a Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEClient.cpp.o Archiving .pio\build\adafruit_feather_esp32\lib55d\libBME68x Sensor library.a Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEDescriptor.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEDescriptorMap.cpp.o Archiving .pio\build\adafruit_feather_esp32\libe0c\libbsec2.a Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEDevice.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEEddystoneTLM.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEEddystoneURL.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEExceptions.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEHIDDevice.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLERemoteCharacteristic.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLERemoteDescriptor.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLERemoteService.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEScan.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLESecurity.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEServer.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEService.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEServiceMap.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEUUID.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEUtils.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\BLEValue.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\FreeRTOS.cpp.o Compiling .pio\build\adafruit_feather_esp32\lib6da\BLE\GeneralUtils.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\Esp.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\FirmwareMSC.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\FunctionalInterrupt.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\HWCDC.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\HardwareSerial.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\IPAddress.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\IPv6Address.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\MD5Builder.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\Print.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\Stream.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\StreamString.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\Tone.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\USB.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\USBCDC.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\USBMSC.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\WMath.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\WString.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\base64.cpp.o Archiving .pio\build\adafruit_feather_esp32\lib6da\libBLE.a Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\cbuf.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-adc.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-bt.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-cpu.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-dac.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-gpio.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-i2c-slave.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-i2c.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-ledc.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-matrix.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-misc.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-psram.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-rgb-led.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-rmt.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-sigmadelta.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-spi.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-time.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-timer.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-tinyusb.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-touch.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\esp32-hal-uart.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\firmware_msc_fat.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\libb64\cdecode.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\libb64\cencode.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\main.cpp.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\stdlib_noniso.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\wiring_pulse.c.o Compiling .pio\build\adafruit_feather_esp32\FrameworkArduino\wiring_shift.c.o Archiving .pio\build\adafruit_feather_esp32\libFrameworkArduino.a Linking .pio\build\adafruit_feather_esp32\firmware.elf c:/users/jorge/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\adafruit_feather_esp32\firmware.elf section `.dram0.bss' will not fit in region `dram0_0_seg' c:/users/jorge/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: DRAM segment data does not fit. c:/users/jorge/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: DRAM segment data does not fit. c:/users/jorge/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: region `dram0_0_seg' overflowed by 10696 bytes collect2.exe: error: ld returned 1 exit status *** [.pio\build\adafruit_feather_esp32\firmware.elf] Error 1
The same happened when I used the Arduino IDE!!
I am having problems to compile the example /examples/bme68x_demo_sample
I followed the instructions from adafruit to compile for the recommended MCU board (Adafruit HUZZAH32)
the following is the result I am getting using PlatformIO Arduino