Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BME680 and ESP32 2.01

    BME680 and ESP32 2.01

    jedimaster64
    Member

    Recently, the ESP32 Arduino 2.01 has been released. I used to use the BSEC library successfully in Arduino with ESP32 Arduino 1.06. But the update seems to have broken things. When compiling I get pages full of errors, like:

    /private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec11beginCommonEv+0x4): undefined reference to `bsec_init'
    /private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec11beginCommonEv+0x8): undefined reference to `bsec_get_version'
    /private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec18updateSubscriptionEP21bsec_virtual_sensor_thf+0x0): undefined reference to `bsec_update_subscription'
    /private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec8getStateEPh+0x0): undefined reference to `bsec_get_state'
    /private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec8setStateEPh+0x10): undefined reference to `bsec_set_state'
    /private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec9setConfigEPKh+0x0): undefined reference to `bsec_set_configuration'
    /private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec15readProcessDataEx19bsec_bme_settings_t+0xc): undefined reference to `bsec_do_steps'
    /private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o):(.literal._ZN4Bsec3runEx+0x0): undefined reference to `bsec_sensor_control'
    /private/var/folders/dh/fhbf_d_j3_v9w2f6np0lz70h0000gn/T/arduino-sketch-A40600CE8733E404BAA5081A88D3D31E/libraries/BSEC_Software_Library/BSEC_Software_Library.a(bsec.cpp.o): In function `Bsec::beginCommon()':

    Is this a known problem and/or how can I fix this?

     

     

    10 REPLIES 10

    Hello jedimaster64,

    I mean you could refer the existing Arduino project under BSEC 2.x package.

    BSEC 2.x project.png

    I'm actually still using the BSEC 1.4.8 library (https://github.com/BoschSensortec/BSEC-Arduino-library). Is this maybe the problem and I should move to BSEC 2.0 (https://github.com/BoschSensortec/Bosch-BSEC2-Library)? This folder on GitHub seems to be empty.... 

    But as mentioned, my code runs fine under ESP32 1.04,1.05, 1.06. It's just when I moved to ESP32 2.0 that the problems started.

     

    No one being able to help me out here? I have been browsing through the forum and my problem sounds a lot like what persons have observed in going from ESP32 1.04 -> 1.05 -> 1.06. Somehow the linking with the compiler seems to become faulty. The suggestion is to modify the platform.txt but this has changed dramatically in format since 2.0. 

    Hello jedimaster64,

    As you used BSEC 1.4.8, you could refer BSEC arduino code in github for your platform. This code based on BSEC1.
    https://github.com/BoschSensortec/BSEC-Arduino-library

    Thanks… But I don’t fully understand the suggestion. Maybe I didn’t explain my problem properly.
    - I had a fully working system with BSEC 1.x and esp32 1.06. I could compile without problems. BSEC library nicely included etc. Have this running for years already.
    - When I upgraded to esp32 2.01 (some weeks ago released), I no longer could compile. It seems it’s missing some changes in platforms.txt. At least, the errors are similar to when not the appropriate changes are made.
    - I cannot implement the changes suggested as platforms.txt is entirely different in esp32 2.0. So no clue what to change.

    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