Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Compile error ESP32+BME688 dev kit

    ArunSharma
    Member

    Compile error ESP32+BME688 dev kit

    Hi , I am integrating Bosch BME688+ESP32 feather board dev kit (8 sensors) on Arduino. I have worked on it for last coupel of days and solved many issues but atlast stuck on few linker errors I believe. I have already updated the platform.txt file with ESP32 specific details. Added the path for -lalgobsec in platform.txt file along with it path.

    "-LD:\\Projects\\BME688_ESP32\\basic_config_state" -lalgobsec

    After all this I am getting the folowing errors w.r.t EEPROM and bme68x functions which are both found inside the directory. 

    Arduino: 1.8.13

    BSEC: BSEC_2.0.6.1_Generic_Release_04302021

    ESP32 library: 2.0.2

    I have kept the libalgobsec.a file in teh path given above. However, I found additional instruction to add lalgobsec into eagle.app.v6.common.ld.h fro ESP8266 but cant find that file or equivalent in the ESP32/tools/sdk/ld folder. Not sure what I am missing. I have attached the platform.txt file here. Thank you.

    Note: Renamed the files to add.zip at the end to be able to upload. Please remove .zip from extn and file would be usable.

    Using built-in specs.
    COLLECT_GCC=C:\Users\aruns\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2/bin/xtensa-esp32-elf-g++
    COLLECT_LTO_WRAPPER=c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/lto-wrapper.exe
    Target: xtensa-esp32-elf
    Configured with: /builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/xtensa-esp32-elf/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=i686-host_w64-mingw32 --target=xtensa-esp32-elf --prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf --with-local-prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf --with-headers=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf/include --with-newlib --enable-threads=no --disable-shared --with-pkgversion='crosstool-NG esp-2021r2' --disable-__cxa_atexit --enable-cxx-flags=-ffunction-sections --disable-libgomp --disable-libmudflap --disable-libmpx --disable-libssp --disable-libquadmath --disable-libquadmath-support --with-gmp=/builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-mpfr=/builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-mpc=/builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-isl=/builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --enable-lto --enable-target-optspace --without-long-double-128 --disable-nls --enable-multiarch --enable-languages=c,c++ --disable-libstdcxx-verbose --enable-threads=posix --enable-gcov-custom-rtio --enable-libstdcxx-time=yes
    Thread model: posix
    gcc version 8.4.0 (crosstool-NG esp-2021r2)
    COMPILER_PATH=c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/;c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../libexec/gcc/;c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/
    LIBRARY_PATH=c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/no-rtti/;c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/no-rtti/;c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/;c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/;c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/
    COLLECT_GCC_OPTIONS='-LC:\Users\aruns\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2/tools/sdk/esp32/lib' '-LC:\Users\aruns\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2/tools/sdk/esp32/ld' '-T' 'esp32.rom.redefined.ld' '-T' 'memory.ld' '-T' 'sections.ld' '-T' 'esp32.rom.ld' '-T' 'esp32.rom.api.ld' '-T' 'esp32.rom.libgcc.ld' '-T' 'esp32.rom.newlib-data.ld' '-T' 'esp32.rom.syscalls.ld' '-T' 'esp32.peripherals.ld' '-mlongcalls' '-Wno-frame-address' '-fno-rtti' '-fno-lto' '-u' 'ld_include_hli_vectors_bt' '-u' '_Z5setupv' '-u' '_Z4loopv' '-u' 'esp_app_desc' '-u' 'pthread_include_pthread_impl' '-u' 'pthread_include_pthread_cond_impl' '-u' 'pthread_include_pthread_local_storage_impl' '-u' 'pthread_include_pthread_rwlock_impl' '-u' 'ld_include_highint_hdl' '-u' 'start_app' '-u' 'start_app_other_cores' '-u' '__ubsan_include' '-u' '__assert_func' '-u' 'vfs_include_syscalls_impl' '-u' 'app_main' '-u' 'newlib_include_heap_impl' '-u' 'newlib_include_syscalls_impl' '-u' 'newlib_include_pthread_impl' '-u' 'newlib_include_assert_impl' '-u' '__cxa_guard_dummy' '-v' '-D' 'ESP32' '-D' 'CORE_DEBUG_LEVEL=0' '-D' 'ARDUINO_USB_CDC_ON_BOOT=0' '-LD:\\Projects\\BME688_ESP32\\basic_config_state' '-o' 'C:\Users\aruns\AppData\Local\Temp\arduino_build_352374/basic_config_state.ino.elf'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/collect2.exe -fno-lto -o C:\Users\aruns\AppData\Local\Temp\arduino_build_352374/basic_config_state.ino.elf -u ld_include_hli_vectors_bt -u _Z5setupv -u _Z4loopv -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u pthread_include_pthread_rwlock_impl -u ld_include_highint_hdl -u start_app -u start_app_other_cores -u __ubsan_include -u __assert_func -u vfs_include_syscalls_impl -u app_main -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -u newlib_include_assert_impl -u __cxa_guard_dummy c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/no-rtti/crt0.o c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/no-rtti/crti.o c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/no-rtti/crtbegin.o -LC:\Users\aruns\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2/tools/sdk/esp32/lib -LC:\Users\aruns\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2/tools/sdk/esp32/ld -LD:\\Projects\\BME688_ESP32\\basic_config_state -Lc:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/no-rtti -Lc:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/no-rtti -Lc:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0 -Lc:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc -Lc:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib --Map=C:\Users\aruns\AppData\Local\Temp\arduino_build_352374/basic_config_state.ino.map --cref --gc-sections --wrap=longjmp --undefined=uxTopUsedPriority --start-group sketch\bsec_serialized_configurations_iaq.c.o sketch\bsec_serialized_configurations_selectivity.c.o sketch\basic_config_state.ino.cpp.o sketch\bsec.cpp.o sketch\commMux.cpp.o libraries\Wire\Wire.cpp.o libraries\SPI\SPI.cpp.o C:\Users\aruns\AppData\Local\Temp\arduino_cache_621254\core\core_55445baf5cdfa86bae1b4ef5cf296536.a -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lasio -lbt -lcbor -lunity -lcmock -lcoap -lnghttp -lesp-tls -lesp_adc_cal -lesp_hid -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lesp_lcd -lprotobuf-c -lprotocomm -lmdns -lesp_local_ctrl -lsdmmc -lesp_serial_slave_link -lesp_websocket_client -lexpat -lwear_levelling -lfatfs -lfreemodbus -ljsmn -ljson -llibsodium -lmqtt -lopenssl -lperfmon -lspiffs -lulp -lwifi_provisioning -lbutton -ljson_parser -ljson_generator -lesp_schedule -lesp_rainmaker -lqrcode -lws2812_led -lesp-dsp -lesp32-camera -lesp_littlefs -lfb_gfx -lasio -lcbor -lcmock -lunity -lcoap -lesp_lcd -lesp_local_ctrl -lesp_websocket_client -lexpat -lfreemodbus -ljsmn -llibsodium -lperfmon -lesp_adc_cal -lesp_hid -lfatfs -lwear_levelling -lopenssl -lspiffs -lesp_rainmaker -lmqtt -lwifi_provisioning -lprotocomm -lbt -lbtdm_app -lprotobuf-c -lmdns -ljson -ljson_parser -ljson_generator -lesp_schedule -lqrcode -lcat_face_detect -lhuman_face_detect -lcolor_detect -lmfn -ldl -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lphy -lrtc -lesp_phy -lphy -lrtc -lesp_phy -lphy -lrtc -lxt_hal -lnewlib -lstdc++ -lpthread -lgcc -lcxx -lapp_trace -lgcov -lapp_trace -lgcov -lalgobsec --end-group -EL -lstdc++ -lm -lc -lgcc -lc -lnosys -lc -lgcc c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/no-rtti/crtend.o c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/no-rtti/crtn.o -T esp32.rom.redefined.ld -T memory.ld -T sections.ld -T esp32.rom.ld -T esp32.rom.api.ld -T esp32.rom.libgcc.ld -T esp32.rom.newlib-data.ld -T esp32.rom.syscalls.ld -T esp32.peripherals.ld
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o:(.literal._Z9loadStateR4Bsec+0x0): undefined reference to `EEPROM'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o:(.literal._Z9loadStateR4Bsec+0xc): undefined reference to `EEPROMClass::read(int)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o:(.literal._Z9loadStateR4Bsec+0x10): undefined reference to `EEPROMClass::write(int, unsigned char)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o:(.literal._Z9loadStateR4Bsec+0x14): undefined reference to `EEPROMClass::commit()'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o:(.literal._Z5setupv+0x3c): undefined reference to `EEPROMClass::begin(unsigned int)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o: in function `loadState(Bsec&)':
    D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:172: undefined reference to `EEPROMClass::read(int)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:174: undefined reference to `EEPROMClass::read(int)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:185: undefined reference to `EEPROMClass::write(int, unsigned char)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:188: undefined reference to `EEPROMClass::commit()'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o: in function `setup()':
    D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:41: undefined reference to `EEPROMClass::begin(unsigned int)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o: in function `saveState(Bsec&)':
    D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:205: undefined reference to `EEPROMClass::write(int, unsigned char)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:204: undefined reference to `EEPROMClass::write(int, unsigned char)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:209: undefined reference to `EEPROMClass::commit()'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o:(.literal._ZN4Bsec18updateSubscriptionEP21bsec_virtual_sensor_thf+0x0): undefined reference to `bme68x_init'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o:(.literal._ZN4Bsec21setBme68xConfigForcedEv+0x0): undefined reference to `bme68x_set_conf'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o:(.literal._ZN4Bsec21setBme68xConfigForcedEv+0x4): undefined reference to `bme68x_set_heatr_conf'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o:(.literal._ZN4Bsec21setBme68xConfigForcedEv+0x8): undefined reference to `bme68x_set_op_mode'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o:(.literal._ZN4Bsec23setBme68xConfigParallelEv+0x4): undefined reference to `bme68x_get_meas_dur'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o:(.literal._ZN4Bsec3runEv+0x0): undefined reference to `bme68x_get_data'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o: in function `Bsec::updateSubscription(bsec_virtual_sensor_t*, unsigned char, float)':
    sketch/bsec.cpp:152: undefined reference to `bme68x_init'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o: in function `Bsec::setBme68xConfigForced()':
    sketch/bsec.cpp:358: undefined reference to `bme68x_set_conf'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch/bsec.cpp:372: undefined reference to `bme68x_set_heatr_conf'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch/bsec.cpp:376: undefined reference to `bme68x_set_op_mode'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o: in function `Bsec::setBme68xConfigSleep()':
    sketch/bsec.cpp:388: undefined reference to `bme68x_set_op_mode'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o: in function `Bsec::setBme68xConfigParallel()':
    sketch/bsec.cpp:408: undefined reference to `bme68x_set_conf'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch/bsec.cpp:414: undefined reference to `bme68x_get_meas_dur'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch/bsec.cpp:422: undefined reference to `bme68x_set_heatr_conf'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch/bsec.cpp:426: undefined reference to `bme68x_set_op_mode'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o: in function `Bsec::run()':
    sketch/bsec.cpp:201: undefined reference to `bme68x_get_data'
    collect2.exe: error: ld returned 1 exit status
    exit status 1
    Error compiling for board Adafruit ESP32 Feather.

    Tags (3)
    15 REPLIES 15
    Minhwan
    Community Moderator

    Re: Compile error ESP32+BME688 dev kit

    Hello Arun, 

     

    Here are two things. 

    1. You need to buy BME688 shuttle board for BSEC 2. 

    2. Need to update esp32 platform.txt 

     

    The BME688 8 array dev kit is for AI studio to gather AI studio data. 

    You can't use it for BSEC 2 test. Please consider below boards. 

    https://create.arduino.cc/projecthub/dragos-iosub/bme688-first-ai-gas-sensor-arduino-how-to-b8a0a6

    https://www.adafruit.com/product/5046?gclid=Cj0KCQiAip-PBhDVARIsAPP2xc24x-jOC5xE9Pw-ilsbp32weChF_RgS...

    However, still your platform.txt is the reason why you got the error. 

    Please check and update the platform.txt below path. 

    C:\Users\<user>\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6

    Thanks, 

    ArunSharma
    Member

    Re: Compile error ESP32+BME688 dev kit

    Thanks Minhwan for the file. I have bought the adafruit BME688 sensor board with me. I have two ESP32 library folders in my PC as below. I am not sure which one the compiler is reading from. I have replaced platform.txt files you shared in both both these locations and got the below errors. Not sure which version of ESP32 library should I remove to make it not-confusing. Looks like its reading platform .txt file from both places.  

    First I replaced here:

    D:\Projects\BME688_ESP32\libraries\esp32\hardware\esp32\1.0.6

    error when compiled:

    Using built-in specs.
    COLLECT_GCC=C:\Users\aruns\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2/bin/xtensa-esp32-elf-g++
    COLLECT_LTO_WRAPPER=c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/lto-wrapper.exe
    Target: xtensa-esp32-elf
    Configured with: /builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/xtensa-esp32-elf/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=i686-host_w64-mingw32 --target=xtensa-esp32-elf --prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf --with-local-prefix=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf --with-headers=/builds/idf/crosstool-NG/builds/xtensa-esp32-elf/xtensa-esp32-elf/include --with-newlib --enable-threads=no --disable-shared --with-pkgversion='crosstool-NG esp-2021r2' --disable-__cxa_atexit --enable-cxx-flags=-ffunction-sections --disable-libgomp --disable-libmudflap --disable-libmpx --disable-libssp --disable-libquadmath --disable-libquadmath-support --with-gmp=/builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-mpfr=/builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-mpc=/builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --with-isl=/builds/idf/crosstool-NG/.build/HOST-i686-w64-mingw32/xtensa-esp32-elf/buildtools/complibs-host --enable-lto --enable-target-optspace --without-long-double-128 --disable-nls --enable-multiarch --enable-languages=c,c++ --disable-libstdcxx-verbose --enable-threads=posix --enable-gcov-custom-rtio --enable-libstdcxx-time=yes
    Thread model: posix
    gcc version 8.4.0 (crosstool-NG esp-2021r2)
    COMPILER_PATH=c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/;c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../libexec/gcc/;c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/
    LIBRARY_PATH=c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/no-rtti/;c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/no-rtti/;c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/;c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/;c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/
    COLLECT_GCC_OPTIONS='-LC:\Users\aruns\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2/tools/sdk/esp32/lib' '-LC:\Users\aruns\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2/tools/sdk/esp32/ld' '-T' 'esp32.rom.redefined.ld' '-T' 'memory.ld' '-T' 'sections.ld' '-T' 'esp32.rom.ld' '-T' 'esp32.rom.api.ld' '-T' 'esp32.rom.libgcc.ld' '-T' 'esp32.rom.newlib-data.ld' '-T' 'esp32.rom.syscalls.ld' '-T' 'esp32.peripherals.ld' '-mlongcalls' '-Wno-frame-address' '-fno-rtti' '-fno-lto' '-u' 'ld_include_hli_vectors_bt' '-u' '_Z5setupv' '-u' '_Z4loopv' '-u' 'esp_app_desc' '-u' 'pthread_include_pthread_impl' '-u' 'pthread_include_pthread_cond_impl' '-u' 'pthread_include_pthread_local_storage_impl' '-u' 'pthread_include_pthread_rwlock_impl' '-u' 'ld_include_highint_hdl' '-u' 'start_app' '-u' 'start_app_other_cores' '-u' '__ubsan_include' '-u' '__assert_func' '-u' 'vfs_include_syscalls_impl' '-u' 'app_main' '-u' 'newlib_include_heap_impl' '-u' 'newlib_include_syscalls_impl' '-u' 'newlib_include_pthread_impl' '-u' 'newlib_include_assert_impl' '-u' '__cxa_guard_dummy' '-v' '-D' 'ESP32' '-D' 'CORE_DEBUG_LEVEL=0' '-D' 'ARDUINO_USB_CDC_ON_BOOT=0' '-LD:\\Projects\\BME688_ESP32\\basic_config_state' '-o' 'C:\Users\aruns\AppData\Local\Temp\arduino_build_236739/basic_config_state.ino.elf'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/collect2.exe -fno-lto -o C:\Users\aruns\AppData\Local\Temp\arduino_build_236739/basic_config_state.ino.elf -u ld_include_hli_vectors_bt -u _Z5setupv -u _Z4loopv -u esp_app_desc -u pthread_include_pthread_impl -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u pthread_include_pthread_rwlock_impl -u ld_include_highint_hdl -u start_app -u start_app_other_cores -u __ubsan_include -u __assert_func -u vfs_include_syscalls_impl -u app_main -u newlib_include_heap_impl -u newlib_include_syscalls_impl -u newlib_include_pthread_impl -u newlib_include_assert_impl -u __cxa_guard_dummy c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/no-rtti/crt0.o c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/no-rtti/crti.o c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/no-rtti/crtbegin.o -LC:\Users\aruns\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2/tools/sdk/esp32/lib -LC:\Users\aruns\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2/tools/sdk/esp32/ld -LD:\\Projects\\BME688_ESP32\\basic_config_state -Lc:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/no-rtti -Lc:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib/no-rtti -Lc:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0 -Lc:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc -Lc:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/lib --Map=C:\Users\aruns\AppData\Local\Temp\arduino_build_236739/basic_config_state.ino.map --cref --gc-sections --wrap=longjmp --undefined=uxTopUsedPriority --start-group sketch\bsec_serialized_configurations_iaq.c.o sketch\bsec_serialized_configurations_selectivity.c.o sketch\basic_config_state.ino.cpp.o sketch\bsec.cpp.o sketch\commMux.cpp.o libraries\Wire\Wire.cpp.o libraries\SPI\SPI.cpp.o core\core.a -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lasio -lbt -lcbor -lunity -lcmock -lcoap -lnghttp -lesp-tls -lesp_adc_cal -lesp_hid -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lesp_lcd -lprotobuf-c -lprotocomm -lmdns -lesp_local_ctrl -lsdmmc -lesp_serial_slave_link -lesp_websocket_client -lexpat -lwear_levelling -lfatfs -lfreemodbus -ljsmn -ljson -llibsodium -lmqtt -lopenssl -lperfmon -lspiffs -lulp -lwifi_provisioning -lbutton -ljson_parser -ljson_generator -lesp_schedule -lesp_rainmaker -lqrcode -lws2812_led -lesp-dsp -lesp32-camera -lesp_littlefs -lfb_gfx -lasio -lcbor -lcmock -lunity -lcoap -lesp_lcd -lesp_local_ctrl -lesp_websocket_client -lexpat -lfreemodbus -ljsmn -llibsodium -lperfmon -lesp_adc_cal -lesp_hid -lfatfs -lwear_levelling -lopenssl -lspiffs -lesp_rainmaker -lmqtt -lwifi_provisioning -lprotocomm -lbt -lbtdm_app -lprotobuf-c -lmdns -ljson -ljson_parser -ljson_generator -lesp_schedule -lqrcode -lcat_face_detect -lhuman_face_detect -lcolor_detect -lmfn -ldl -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lesp_ringbuf -lefuse -lesp_ipc -ldriver -lesp_pm -lmbedtls -lapp_update -lbootloader_support -lspi_flash -lnvs_flash -lpthread -lesp_gdbstub -lespcoredump -lesp_phy -lesp_system -lesp_rom -lhal -lvfs -lesp_eth -ltcpip_adapter -lesp_netif -lesp_event -lwpa_supplicant -lesp_wifi -lconsole -llwip -llog -lheap -lsoc -lesp_hw_support -lxtensa -lesp_common -lesp_timer -lfreertos -lnewlib -lcxx -lapp_trace -lnghttp -lesp-tls -ltcp_transport -lesp_http_client -lesp_http_server -lesp_https_ota -lsdmmc -lesp_serial_slave_link -lulp -lmbedtls -lmbedcrypto -lmbedx509 -lcoexist -lcore -lespnow -lmesh -lnet80211 -lpp -lsmartconfig -lwapi -lphy -lrtc -lesp_phy -lphy -lrtc -lesp_phy -lphy -lrtc -lxt_hal -lnewlib -lstdc++ -lpthread -lgcc -lcxx -lapp_trace -lgcov -lapp_trace -lgcov -lalgobsec --end-group -EL -lstdc++ -lm -lc -lgcc -lc -lnosys -lc -lgcc c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/no-rtti/crtend.o c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/no-rtti/crtn.o -T esp32.rom.redefined.ld -T memory.ld -T sections.ld -T esp32.rom.ld -T esp32.rom.api.ld -T esp32.rom.libgcc.ld -T esp32.rom.newlib-data.ld -T esp32.rom.syscalls.ld -T esp32.peripherals.ld
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o:(.literal._Z9loadStateR4Bsec+0x0): undefined reference to `EEPROM'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o:(.literal._Z9loadStateR4Bsec+0xc): undefined reference to `EEPROMClass::read(int)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o:(.literal._Z9loadStateR4Bsec+0x10): undefined reference to `EEPROMClass::write(int, unsigned char)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o:(.literal._Z9loadStateR4Bsec+0x14): undefined reference to `EEPROMClass::commit()'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o:(.literal._Z5setupv+0x3c): undefined reference to `EEPROMClass::begin(unsigned int)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o: in function `loadState(Bsec&)':
    D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:172: undefined reference to `EEPROMClass::read(int)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:174: undefined reference to `EEPROMClass::read(int)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:185: undefined reference to `EEPROMClass::write(int, unsigned char)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:188: undefined reference to `EEPROMClass::commit()'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o: in function `setup()':
    D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:41: undefined reference to `EEPROMClass::begin(unsigned int)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\basic_config_state.ino.cpp.o: in function `saveState(Bsec&)':
    D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:205: undefined reference to `EEPROMClass::write(int, unsigned char)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:204: undefined reference to `EEPROMClass::write(int, unsigned char)'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: D:\Projects\BME688_ESP32\basic_config_state/basic_config_state.ino:209: undefined reference to `EEPROMClass::commit()'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o:(.literal._ZN4Bsec18updateSubscriptionEP21bsec_virtual_sensor_thf+0x0): undefined reference to `bme68x_init'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o:(.literal._ZN4Bsec21setBme68xConfigForcedEv+0x0): undefined reference to `bme68x_set_conf'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o:(.literal._ZN4Bsec21setBme68xConfigForcedEv+0x4): undefined reference to `bme68x_set_heatr_conf'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o:(.literal._ZN4Bsec21setBme68xConfigForcedEv+0x8): undefined reference to `bme68x_set_op_mode'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o:(.literal._ZN4Bsec23setBme68xConfigParallelEv+0x4): undefined reference to `bme68x_get_meas_dur'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o:(.literal._ZN4Bsec3runEv+0x0): undefined reference to `bme68x_get_data'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o: in function `Bsec::updateSubscription(bsec_virtual_sensor_t*, unsigned char, float)':
    sketch/bsec.cpp:152: undefined reference to `bme68x_init'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o: in function `Bsec::setBme68xConfigForced()':
    sketch/bsec.cpp:358: undefined reference to `bme68x_set_conf'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch/bsec.cpp:372: undefined reference to `bme68x_set_heatr_conf'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch/bsec.cpp:376: undefined reference to `bme68x_set_op_mode'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o: in function `Bsec::setBme68xConfigSleep()':
    sketch/bsec.cpp:388: undefined reference to `bme68x_set_op_mode'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o: in function `Bsec::setBme68xConfigParallel()':
    sketch/bsec.cpp:408: undefined reference to `bme68x_set_conf'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch/bsec.cpp:414: undefined reference to `bme68x_get_meas_dur'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch/bsec.cpp:422: undefined reference to `bme68x_set_heatr_conf'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch/bsec.cpp:426: undefined reference to `bme68x_set_op_mode'
    c:/users/aruns/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: sketch\bsec.cpp.o: in function `Bsec::run()':
    sketch/bsec.cpp:201: undefined reference to `bme68x_get_data'
    collect2.exe: error: ld returned 1 exit status
    exit status 1
    Error compiling for board Adafruit ESP32 Feather.

    Next I replaced the platform.text file here. 

    C:\Users\aruns\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2

    error when compiled:

    In file included from sketch\basic_config_state.ino.cpp:1:
    C:\Users\aruns\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\cores\esp32/Arduino.h:33:10: fatal error: freertos/FreeRTOS.h: No such file or directory
    #include "freertos/FreeRTOS.h"
    ^~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    exit status 1
    Error compiling for board Adafruit ESP32 Feather.

     

    Minhwan
    Community Moderator

    Re: Compile error ESP32+BME688 dev kit

    The path should be as below. 

    C:\Users\<Your name>\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6

    I downloaded and am using it below version. 

    Minhwan_0-1642731590534.png

    Could you test it with version 1.0.6? 

    Thank you. 

     

    ArunSharma
    Member

    Re: Compile error ESP32+BME688 dev kit

    Hi Minhwan, I did as you asked.. I removed both 1.0.6 and 2.0.2 ESP32 libraries from my computer and installed 1.0.6 fresh in the location you suggested under Appdata folder. The I replaced teh platform.txt that you copied here. I am still getting error. Here is teh snapshot. Also, no, I am using the default example code of BSEC2 package given by Bosch (attached here). Any other difference that I should check. Only difference could I am using Arduino 1.8.13, if you are using a different IDE?

    I am planning to try it on another windows PC from scratch. Will keep you upated. Let me know if you think of any other checks for me. 

    sketch\basic_config_state.ino.cpp.o:(.literal._Z5setupv+0x2c): undefined reference to `bsec_get_version'
    sketch\basic_config_state.ino.cpp.o: In function `Bsec::getVersion()':
    sketch/bsec.h:186: undefined reference to `bsec_get_version'
    sketch/bsec.h:186: undefined reference to `bsec_get_version'
    sketch/bsec.h:186: undefined reference to `bsec_get_version'
    sketch/bsec.h:186: undefined reference to `bsec_get_version'
    sketch\bsec.cpp.o:(.literal._ZN4Bsec11beginCommonEv+0x0): undefined reference to `bsec_init'
    sketch\bsec.cpp.o:(.literal._ZN4Bsec18updateSubscriptionEP21bsec_virtual_sensor_thf+0x0): undefined reference to `bsec_update_subscription'
    sketch\bsec.cpp.o:(.literal._ZN4Bsec18updateSubscriptionEP21bsec_virtual_sensor_thf+0x4): undefined reference to `bme68x_init'
    sketch\bsec.cpp.o:(.literal._ZN4Bsec8getStateEPh+0x0): undefined reference to `bsec_get_state'
    sketch\bsec.cpp.o:(.literal._ZN4Bsec8setStateEPh+0x0): undefined reference to `bsec_set_state'
    sketch\bsec.cpp.o:(.literal._ZN4Bsec9setConfigEPKh+0x10): undefined reference to `bsec_set_configuration'
    sketch\bsec.cpp.o:(.literal._ZN4Bsec11processDataExRK11bme68x_data+0x0): undefined reference to `bsec_do_steps'
    sketch\bsec.cpp.o:(.literal._ZN4Bsec21setBme68xConfigForcedEv+0x0): undefined reference to `bme68x_set_conf'
    sketch\bsec.cpp.o:(.literal._ZN4Bsec21setBme68xConfigForcedEv+0x4): undefined reference to `bme68x_set_heatr_conf'
    sketch\bsec.cpp.o:(.literal._ZN4Bsec21setBme68xConfigForcedEv+0x8): undefined reference to `bme68x_set_op_mode'
    sketch\bsec.cpp.o:(.literal._ZN4Bsec23setBme68xConfigParallelEv+0x4): undefined reference to `bme68x_get_meas_dur'
    sketch\bsec.cpp.o:(.literal._ZN4Bsec3runEv+0x0): undefined reference to `bsec_sensor_control'
    sketch\bsec.cpp.o:(.literal._ZN4Bsec3runEv+0x4): undefined reference to `bme68x_get_data'
    sketch\bsec.cpp.o: In function `Bsec::beginCommon()':
    sketch/bsec.cpp:114: undefined reference to `bsec_init'
    sketch/bsec.cpp:114: undefined reference to `bsec_get_version'
    sketch\bsec.cpp.o: In function `Bsec::updateSubscription(bsec_virtual_sensor_t*, unsigned char, float)':
    sketch/bsec.cpp:151: undefined reference to `bsec_update_subscription'
    sketch/bsec.cpp:155: undefined reference to `bme68x_init'
    sketch\bsec.cpp.o: In function `Bsec::getState(unsigned char*)':
    sketch/bsec.cpp:244: undefined reference to `bsec_get_state'
    sketch\bsec.cpp.o: In function `Bsec::setState(unsigned char*)':
    sketch/bsec.cpp:257: undefined reference to `bsec_set_state'
    sketch\bsec.cpp.o: In function `Bsec::setConfig(unsigned char const*)':
    sketch/bsec.cpp:274: undefined reference to `bsec_set_configuration'
    sketch\bsec.cpp.o: In function `Bsec::processData(long long, bme68x_data const&)':
    sketch/bsec.cpp:335: undefined reference to `bsec_do_steps'
    sketch\bsec.cpp.o: In function `Bsec::setBme68xConfigForced()':
    sketch/bsec.cpp:358: undefined reference to `bme68x_set_conf'
    sketch/bsec.cpp:372: undefined reference to `bme68x_set_heatr_conf'
    sketch/bsec.cpp:376: undefined reference to `bme68x_set_op_mode'
    sketch\bsec.cpp.o: In function `Bsec::setBme68xConfigSleep()':
    sketch/bsec.cpp:388: undefined reference to `bme68x_set_op_mode'
    sketch\bsec.cpp.o: In function `Bsec::setBme68xConfigParallel()':
    sketch/bsec.cpp:408: undefined reference to `bme68x_set_conf'
    sketch/bsec.cpp:414: undefined reference to `bme68x_get_meas_dur'
    sketch/bsec.cpp:422: undefined reference to `bme68x_set_heatr_conf'
    sketch/bsec.cpp:426: undefined reference to `bme68x_set_op_mode'
    sketch\bsec.cpp.o: In function `Bsec::run()':
    sketch/bsec.cpp:173: undefined reference to `bsec_sensor_control'
    sketch/bsec.cpp:201: undefined reference to `bme68x_get_data'
    collect2.exe: error: ld returned 1 exit status
    exit status 1
    Error compiling for board Adafruit ESP32 Feather.

    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