Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Compile error ESP32+BME688 dev kit

    ArunSharma
    Member

    Re: Compile error ESP32+BME688 dev kit

    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

     

     

     

    ArunSharma
    Member

    Re: Compile error ESP32+BME688 dev kit

    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

    Re: Compile error ESP32+BME688 dev kit

    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, 

    ArunSharma
    Member

    Re: Compile error ESP32+BME688 dev kit

    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

    Re: Compile error ESP32+BME688 dev kit

    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