<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>case about driver BMA280</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81728/case-about-driver-bma280</link><description>Hi， 
 1. Please provide me with an example of BMA280 
 2. The SDK: replication v1.7.1 
 3.IC:nRF9160 
 4. I tried to change the BME280 driver to BMA280 driver, but the following error was reported: 
 &amp;#39;DT_N_INST_0_bosch_bma280_REG_IDX_0_VAL_ADDRESS&amp;#39; undeclared</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Nov 2021 09:58:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81728/case-about-driver-bma280" /><item><title>RE: case about driver BMA280</title><link>https://devzone.nordicsemi.com/thread/338967?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 09:58:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fc09502-fd52-44cc-80d9-bf8817e3821a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You need to apply the .overlay file, which also seems to lack the &amp;quot;int1-gpio&amp;quot; definition. I just choose one gpio (P0.27 in this case), which you can freely change to one you have available.&lt;/p&gt;
&lt;p&gt;If using &amp;quot;nrf9160dk_nrf9160&amp;quot; as the board, you should name this file &amp;quot;nrf9160dk_nrf9160.overlay&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2020, Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/*
 * Example configuration of a BME280 device on an Arduino I2C bus.
 *
 * Device address 0x77 is assumed. Your device may have a different
 * address; check your device documentation if unsure.
 */
&amp;amp;arduino_i2c {
	status = &amp;quot;okay&amp;quot;;
	bma280@77 {
		compatible = &amp;quot;bosch,bma280&amp;quot;;
		reg = &amp;lt;0x77&amp;gt;;
		int1-gpios = &amp;lt;&amp;amp;gpio0 27 0&amp;gt;;
		label = &amp;quot;BMA280_I2C&amp;quot;;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then the build file will pick up on the sensor and should compile your project without any errors.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>