Re: device_get_binding() returns NULL #i2c #sensor

Jeremy Herbert

Have you tried to connect a logic analyser to your I2C pins to see if there are any transactions occurring?


On Sat, 27 Jun 2020 at 12:12, <straton.florin.c@...> wrote:


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 to automatically receive all group messages.