Closed mrusme closed 5 years ago
@carlescufi maybe you could just point me into the right direction in regard of the defines I mentioned above, so that I know what values they should be set to in order for this to work, so I can figure it out on my own and in the best case set a PR to this repo? :)
Thanks a lot!
@mrusme you need to add a BME680 to your Device Tree file I believe. @jhn-nordic, @joakimtoe, @jtguggedal or @MaureenHelm can hopefully help you out here
Thanks for the hint. I checked the documentation but did not see a way to extend the existing device tree for a board with a sensor that was additionally added over I2C (apart from creating a "new" board and including the sensor within the DTS maybe, although this might lead to having to back-merge all changes to the original board every time they occur?).
What is the best approach to take here?
Thanks a lot!
@mrusme if you solve the problem by adding the node to DT, can you close this issue?
@carlescufi I guess this could be closed then, yes. I would re-open another issue, if something with the DT overlay would not work. Nevertheless it maybe should be documented somewhere. Let me fiddle around with it further, if I manage to get it working I'll set a PR with the changes to the docs.
Describe the bug
The sensor sample for BME680 is not building as described here.
I solved this by copying the code into an own project, specifying the following definitions inside the CMakeLists and using cmake/ninja instead of west:
However, when running the build on the Nucleo board I still get this:
I searched the Zephyr code for possible values for these definitions but could not find any. Nor are they documented anywhere (or at least it's not obvious enough so that I could find it).
To Reproduce
Steps to reproduce the behavior:
west build -p -b nucleo_l476rg samples/sensor/bme680
Expected behavior
The sample should build and the build should run.
Screenshots or console output
Environment (please complete the following information):