Thingy53: how to enable bmi270 on board correctly?

Hi community,

ncs-2.6.0 I'm using.

I'm trying to enable bmi270 as I enabled adxl362(is already working), both are connected with SPI.

CONFIG_ADXL362=y
CONFIG_BMI270=y

but it shows me this kind of infomation:

CONFIG_BMI270 was assigned the value y, but got the value n. Missing dependencies:
DT_HAS_BOSCH_BMI270_ENABLED

BMI270 Inertial measurement unit

Type: bool

Value: n

Enable driver for BMI270 I2C-based imu sensor

after check the Kconfig file of BMI270 I find this:

it´s  a little complex for me as a newbie, so how to enable the bmi270 on board of thingy53?


Best regards,

Danny

Parents
  • Thanks

    Did you do a prestine build after changes your prj.conf and overlay?

    I tried with NCS 2.6.1. Which version are you using?

    Build target thingy53_nrf5340_cpuapp_ns

    prj.conf 

    # nothing here
    CONFIG_GPIO=y
    CONFIG_SPI=y
    CONFIG_SENSOR=y
    CONFIG_BMI270=y
    
    

    Overlay

    &spi3{
    	bmi270: spi-dev-bmi270@1 {
    		status = "okay";
    	};
    };

    main

    #include <zephyr/kernel.h>
    
    int main(void)
    {
    	const struct device *sensor = DEVICE_DT_GET_ANY(bmi270);
    
    	if (!device_is_ready(sensor)) 
    	{
    		printk("Sensor device not ready\n");
    		return;
    	}
    	printk("Hello World! %s\n", CONFIG_BOARD);
    	return 0;
    }
    

    And I was not able to replicate your warning 

    Regards

    Runar

  • Hi Runar,

    thanks for your reply!

    after restarting my laptop, everything works fine.

    Best regards

    Danny

Reply Children
No Data
Related