Driver for Bosch BMI160 not compiling with SPI #65993
-
I've been trying to add the bmi160 driver to my project for some times now, an I can not get it to compile when using SPI. // main.c
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
int main(void)
{
const struct device *const dev = DEVICE_DT_GET_ONE(bosch_bmi160);
return 0;
}
When compiling, I get the following error:
Using the same driver with I2C compiles fine, and using this exact same example and changing the bmi160 by the bme270 (with SPI) also works fine. This lead me to think that the issue does come from the bmi160 drivers. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It appears you are either missing the interrupt connection in your SPI version or it's being turned on in your SPI version and not in your I2C version. Can you share the overlay being used for the I2C? Also, see if |
Beta Was this translation helpful? Give feedback.
It appears you are either missing the interrupt connection in your SPI version or it's being turned on in your SPI version and not in your I2C version. Can you share the overlay being used for the I2C? Also, see if
CONFIG_BMI160_TRIGGER
is set in the I2C application.