Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    BME680 : IAQ WITH ESP32

    BME680 : IAQ WITH ESP32

    zakabg
    Member

    Hello everyone,

    I'm working to get the IAQ values from BME680 using ESP32, I've read the (BTS-BME680-Integration-Guide-AN008-47) and I followed the (BSEC Step-by-step Example) page 11

    In page 15 it mentioned that the linker should be modified at (hardware\esp8266\2.3.0\tools\sdk\ld\eagle.app.v6.common.ld)

    I can't find the (eagle.app.v6.common.ld) sense I'm using ESP32 and not ESP8266.

    Is there a solution to get the IAQ form BM3680 using the ESP32 board?

    Thanks for your replay

    5 REPLIES 5

    handytech
    Community Moderator
    Community Moderator

    The current latest version of the BSEC Arduino Library wrapper can be found in its own GitHub repository now.

    Instructions to edit the 'eagle.app.v6.common.ld' file is only needed for the ESP8266 core, no need to do that for the ESP32.

    On the other hand, modifying the platform.txt file to introduce the compiler.libraries.ldflags flag  is still mandatory for the latest Arduino ESP32 core package (careful, this flag has changed named in newer Arduino releases!). The latest release of the Arduino ESP32 core package I could find is v1.0.4, and for reference I have attached my already modified platform.txt file for this version, found under "C:\Users\user\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4" by default.

    Thanks for your replay

    I did what you said and replace the platform.txt file, i tried to run the (basic) code and i have this problem in the image 

    Can you help, please 

    handytech
    Community Moderator
    Community Moderator

    Unfortunately we would need more information to help out, for example the version of each tool (IDE, ESP32 Boards package, BSEC Arduino library), or especially the full console log with verbose enabled (you can enable it from File->Preferences->Show verbose output during: and check 'compilation').

    On my setup I have Arduino v1.8.13, ESP32 Boards v1.0.4 (with the platform.txt file attached above), and BSEC Software Library v1.5.1474 (located at "C:\Users\user\Documents\Arduino\libraries\BSEC_Software_Library").

    Since the default board you have selected, "ESP32 Dev Module", misses a LED_BUILTIN definition, adding "#define LED_BUILTIN 2" on line 2 makes the basic example compile successfully in my setup.

    In the zip attached you can find the console result

    i added #define LED_BUILTIN 2

    On my setup I have Arduino v1.8.12

    ESP32 Boards : AZDelivery NodeMCU32     ESP-WROOM-32

    BSEC_Software_Library-1.5.1474

     

    i appreciate your help very much

    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