New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BME680 Sensor is not building #21607
Comments
Not familiar with this device, but try making it
Doing a |
Added the following to sam_e70_xplained.overlay
I get the following error:
|
The node has to be a child of an I2C controller. E.g.:
|
It worked... |
I believe the issue is that you need to add a bme680 instance in your device tree file. |
Try something like this:
|
Show how the element size was calculated in the error message when a 'reg', 'ranges', or 'interrupts' property has the wrong size. This should help with debugging. Also mention that #*-cells properties come from the parent node, which can be subtle. Came up in zephyrproject-rtos#21607 (though it seems the comment disappeared). Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
Show how the element size was calculated in the error message when a 'reg', 'ranges', or 'interrupts' property has the wrong size. This should help with debugging. Also mention that #*-cells properties come from the parent node, which can be subtle. Came up in #21607 (though it seems the comment disappeared). Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
seems to be answered, closing. |
Describe the bug
A clear and concise description of what the bug is.
What have you tried to diagnose or workaround this issue?
To Reproduce
Steps to reproduce the behavior:
$ west build -b sam_e70_xplained samples/sensor/bme680
Expected behavior
Build failed. From one of the issues, it says to update device tree . Can you please provide an sample device tree for bme680
Adding this, didn't work
bme680@77 {
compatible = "bosch,bme680";
reg = <0x77>;
};
Screenshots or console output
/home/abc/zephyrproject/zephyr/samples/sensor/bme680/src/main.c:14:42: error: 'DT_INST_0_BOSCH_BME680_LABEL' undeclared (first use in this function); did you mean 'DT_INST_0_SOC_NV_FLASH_LABEL'?
struct device *dev = device_get_binding(DT_INST_0_BOSCH_BME680_LABEL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
DT_INST_0_SOC_NV_FLASH_LABEL
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: