device_get_binding() returns NULL #i2c #sensor

straton.florin.c@...
 

Hi,

I am trying to connect a BME280 sensor to NXP MiMX RT1020 and run samples/sensor/bme280 application but the output is always 

[00:00:00.000,000] <dbg> BME280.bme280_init: initializing BME280
[00:00:00.000,000] <dbg> BME280.bme280_chip_init: ID read failed: -5
[00:00:00.000,000] <dbg> BME280.bme280_init: BME280 failed
*** Booting Zephyr OS build v2.3.0-rc1-384-g8b5b7fcf8d84  ***
No device "BME280" found; did initialization fail?


the board overlay that i created is 

&lpi2c4 {
	bme280@76 {
		compatible = "bosch,bme280";
		reg = <0x76>;
		label = "BME280";
	};
};
i don't have any idea what could be wrong

clearly i'm a newbie not only with zephyr

 

Join users@lists.zephyrproject.org to automatically receive all group messages.