Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Compile error ESP32+BME688 dev kit

    Compile error ESP32+BME688 dev kit

    ArunSharma
    Member

    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.

    15 REPLIES 15

    I am using BSEC_2.0.6.1_Generic_Release_04302021. 

    I dont see a file BSEC2 .cpp file here in the dwonloaded package. I see only BSEC.cpp its version 1.5.0 dated 23 April 2021. 

    I downloaded the package from : https://www.bosch-sensortec.com/software-tools/software/bme688-software/

    ArunSharma_0-1642797229022.png

     

     

     

    I am using the platform text that you provided in the previous messages. However, I am attaching the platform.txt file I got as part of the 1.0.6 library when I installed it. 

    Minhwan
    Community Moderator
    Community Moderator

    Please use this one in 

    C:\Users\omi1syv\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6

    I'm using same one. 

    Please let me know and post your error if you have. 

    Thanks, 

    Hi 

    I tried the platform.txt file you shared now and still see same errors.  I am running on Arduino 1.8.13 IDE. Any impact and should I upgrade it?


    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.

    Minhwan
    Community Moderator
    Community Moderator

    I tested 1.8.15, but I think 1.8.13 should be okay. It's more like library registration problem. 

    Please follow my steps. 

    1) Make zip file bsec2.zip as below folder

    \bsec_2-0-6-1_generic_release_04302021\BSEC_2.0.6.1_Generic_Release_04302021\examples\bsec2

    2) Sketch -> Include Library -> Add .Zip library (Choose the zip file) 

    Minhwan_0-1642816458413.png

    3) Build example code 

    \bsec2\examples\basic_config_state\basic_config_state.ino

    Thank you. 

     

     

    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