Bosch Sensortec Community

    Showing results for 
    Search instead for 
    Did you mean: 

    BME680 with Arduino Nano ESP32 compile error

    BME680 with Arduino Nano ESP32 compile error

    New Poster


    Complete beginner here so please be gentle 😉

    I am a complete newbie to the world of Arduino, so learning as I go.

    I am running into issues getting the "Basic" example sketch from the BSEC software library to compile. It always fails at the same place (while trying to link everything together).

    Some basics on my setup:

    Running Arduino IDE vers. 2.3.2

    BSEC software library vers. 1.8.149

    BME68x sensor library vers.1.1.404

    Board: Genuine Arduino Nano ESP32. (I know this is not officially supported, but I understand that the ESP32S3 is, and that is what the Nano uses so I (perhaps) foolishly asume that it should work 😉

    I know the senor works, since I can read it's outputs (including resistance) via anothe sketch.

    Also, if I set the IDE to another board (that I do not own), that being the Arduino Mega or Mega 2560, the sketch compiles without any issues, so I assume that this means that the libraries are correctly installed.

    I have spent many hours making sure that I followed the Bosch (Github) setup instructions, tried to modify the platform.txt file, but all to no avail.

    I am clearly out of my league at this stage, so any help that could be provided would be greatly appreaciated.

    I am including the verbose output of the compilation in the hopes that someone can help to figure out where the problem might lie.

    Many thanks in advance for any possible help.

    2 REPLIES 2

    Community Moderator
    Community Moderator

    Hi Mr_G,

    See it from the compilation error, it appears that the BSEC library has not been linked.

    You can add the following line in platform.local.txt, also refer to readme file to setup your software environment. And ensure that libalgobsec. a can be found and linked in the IDE.

    Hello BSTRobin and thanks so much for taking the time to reply. I still have a long way to go with this - so a little more help would be really appreciated.

    I tried to modify my platform.txt file but I'm clearly still missing something. I have read the instructions you referenced but still a little confused.

    I am including my platform.txt file. Would it be possible to ask you to modify it so that all of the required changes end up in the right place?

    Also, how do I go about "ensuring that libalgobsec. a can be found and linked in the IDE."? I don't know how to do that. Is it part of the platform.txt file mods, or somthing completely different?

    Like I said, complete newbie here, much appreciate any assistance. 

    Thanks and Best Regards.