Bosch Sensortec Community

    Showing results for 
    Search instead for 
    Did you mean: 

    BME680 : IAQ WITH ESP32

    BME680 : IAQ WITH ESP32


    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\

    I can't find the ( 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

    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 '' 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 

    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



    i appreciate your help very much