03-02-2024 06:41 PM
Hello,
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.
03-06-2024 10:33 AM
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 https://github.com/boschsensortec/BSEC-Arduino-library/blob/master/README.md readme file to setup your software environment. And ensure that libalgobsec. a can be found and linked in the IDE.
compiler.libraries.ldflags=-libalgobsec
03-09-2024 09:01 PM
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.