How to change the i2c address of an overlay?

I just attached a bme680 sensor to i2c bus 2 and it is found – on address 0x77. The bme680 overlay expects the sensor on address 0x76, however. Is there a way to configure the overlay within uEnv.txt with the correct address, or do i have to create a new one?

(I know, that on raspberry pis overlays can be configured, and there is a README explaining this in detail.)

1 Like

That’s odd. A quick search shows it on address 0x76, like seen here.

I don’t know which overlay you’re using currently,
but it really is as easy as changing line 26 and 29 to match your address.

it seems i didn’t express myself clear enough.

The address of the sensor is 0x77. (It is on a breakout board with this address.)
I can see it there e. g. with i2cdetect and can configure it the old fashioned way (echo bme680 0x77 > /sys/…), but of course i would like to configure it with an overlay. As seen in the dtso, the existing overlay does not expect it there.

I am not too familiar with overlays and u-boot, so i just wondered, if it were possible to use some kind of parameter to override the pre-configured address instead of creating a new dtso/dtbo.

Not that I know of. Just adjust your current overlay and recompile. Done!