<?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>nRF Connect SDK Tutorial - Part 3 | NCS v1.3.0 --&amp;gt; 1.2 Walkthrough for BME280 - gives compilation error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66212/nrf-connect-sdk-tutorial---part-3-ncs-v1-3-0----1-2-walkthrough-for-bme280---gives-compilation-error</link><description>I am trying to repeat the example in the tutorial: using board: nrf9160dk_nrf9160. 
 nRF Connect SDK Tutorial - Part 3 | NCS v1.3.0 --&amp;gt; 1.2 Walkthrough for BME280 - but gives compilation error 
 2&amp;gt; ../src/main.c:17:2: error: #error Your devicetree has</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Sep 2020 08:10:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66212/nrf-connect-sdk-tutorial---part-3-ncs-v1-3-0----1-2-walkthrough-for-bme280---gives-compilation-error" /><item><title>RE: nRF Connect SDK Tutorial - Part 3 | NCS v1.3.0 --&gt; 1.2 Walkthrough for BME280 - gives compilation error</title><link>https://devzone.nordicsemi.com/thread/271688?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 08:10:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fa9fdfd-7755-4d6d-a605-f217cca92256</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;My apologies for the late reply.&lt;/p&gt;
[quote user="ChandraSR K"]&amp;amp;uart1 {status = &amp;quot;disabled&amp;quot;;}; -- &amp;gt; adding in nrf9160dk_nrf9160ns.overlay[/quote]
&lt;p&gt;This will disable UART1, but keep UART0 (default used for printing) still enabled. You should not disable CONFIG_SERIAL, as this will disable the uart debug prints as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regaerds,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK Tutorial - Part 3 | NCS v1.3.0 --&gt; 1.2 Walkthrough for BME280 - gives compilation error</title><link>https://devzone.nordicsemi.com/thread/271624?ContentTypeID=1</link><pubDate>Sat, 26 Sep 2020 03:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ad4dfe3-ffe7-43ae-b645-477cee1062a5</guid><dc:creator>ChandraSR K</dc:creator><description>&lt;p&gt;Hi Can you suggest here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK Tutorial - Part 3 | NCS v1.3.0 --&gt; 1.2 Walkthrough for BME280 - gives compilation error</title><link>https://devzone.nordicsemi.com/thread/270890?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 14:22:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18a592a8-b94c-4afe-8a78-b670c9c3c1c4</guid><dc:creator>ChandraSR K</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;either one of the below address the issue,&lt;/p&gt;
&lt;p&gt;&amp;amp;uart1 {status = &amp;quot;disabled&amp;quot;;}; -- &amp;gt; adding in nrf9160dk_nrf9160ns.overlay&lt;/p&gt;
&lt;p&gt;OR&lt;/p&gt;
&lt;p&gt;CONFIG_SERIAL=n&amp;nbsp;&amp;nbsp; --&amp;gt; addign in prj.conf&lt;/p&gt;
&lt;p&gt;But I would be needing serial port as well for printing info. above statements doesn&amp;#39;t allow me to print debug messages.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK Tutorial - Part 3 | NCS v1.3.0 --&gt; 1.2 Walkthrough for BME280 - gives compilation error</title><link>https://devzone.nordicsemi.com/thread/270875?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 13:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d197c3c2-816d-470f-a5f0-cde8cd2eb100</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;It seems that you have found an issue in our blog! my apologies, I&amp;#39;ll report this to the owner of the post.&lt;/p&gt;
&lt;p&gt;The issue can be resolved by disabling uart1 in your overlay:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart1 {status = &amp;quot;disabled&amp;quot;;};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try adding this and see if it compiles properly now (remember to re-import your project!) ?&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><item><title>RE: nRF Connect SDK Tutorial - Part 3 | NCS v1.3.0 --&gt; 1.2 Walkthrough for BME280 - gives compilation error</title><link>https://devzone.nordicsemi.com/thread/270856?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 13:00:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5081997a-077e-4f6a-9468-2e717e9c7abb</guid><dc:creator>ChandraSR K</dc:creator><description>&lt;p&gt;Thanks i could select nrf9160dk_nrf9160ns.&lt;/p&gt;
&lt;p&gt;nrf9160dk_nrf9160ns.overlay:&amp;nbsp; content&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c1 {
    compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
    sda-pin = &amp;lt; 30 &amp;gt;;
    scl-pin = &amp;lt; 31 &amp;gt;;
    clock-frequency = &amp;lt;I2C_BITRATE_STANDARD&amp;gt;;  
    
    /* The I2C address could be one of two, here 0x76 is assumed */
    bme280@76 {
        compatible = &amp;quot;bosch,bme280&amp;quot;;
        reg = &amp;lt;0x76&amp;gt;;
        label = &amp;quot;BME280&amp;quot;;
    };
};&lt;/pre&gt;&lt;br /&gt;&lt;/em&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But I am getting following assertion, at&amp;nbsp; the end of compilation:&lt;/p&gt;
&lt;p&gt;static assertion failed: &amp;quot;Only one of the following peripherals can be enabled: SPI1, SPIM1, SPIS1, TWI1, TWIM1, TWIS1, UARTE1. Check nodes with status \&amp;quot;okay\&amp;quot; in zephyr.dts.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;below is the content of&amp;nbsp; zephyr.dts specific to i2c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;            i2c1: i2c@9000 {
                #address-cells = &amp;lt; 0x1 &amp;gt;;
                #size-cells = &amp;lt; 0x0 &amp;gt;;
                reg = &amp;lt; 0x9000 0x1000 &amp;gt;;
                clock-frequency = &amp;lt; 0x186a0 &amp;gt;;
                interrupts = &amp;lt; 0x9 0x1 &amp;gt;;
                status = &amp;quot;okay&amp;quot;;
                label = &amp;quot;I2C_1&amp;quot;;
                compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
                sda-pin = &amp;lt; 0x1e &amp;gt;;
                scl-pin = &amp;lt; 0x1f &amp;gt;;
                bme280@76 {
                    compatible = &amp;quot;bosch,bme280&amp;quot;;
                    reg = &amp;lt; 0x76 &amp;gt;;
                    label = &amp;quot;BME280&amp;quot;;
                };
            };&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK Tutorial - Part 3 | NCS v1.3.0 --&gt; 1.2 Walkthrough for BME280 - gives compilation error</title><link>https://devzone.nordicsemi.com/thread/270834?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 12:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:253d35ae-b9f6-4b1f-ab91-2dd748110bba</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;You select the board &amp;quot;nrf9160dk_nrf9160&amp;quot; in zephyr/boards/arm, then it should give you a choice on variant under &amp;quot;Board name&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5686fd48b4c74780b69e3543c86411ba/Screenshot-from-2020_2D00_09_2D00_22-14_2D00_08_2D00_36.png" alt=" " /&gt;&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><item><title>RE: nRF Connect SDK Tutorial - Part 3 | NCS v1.3.0 --&gt; 1.2 Walkthrough for BME280 - gives compilation error</title><link>https://devzone.nordicsemi.com/thread/270829?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 11:58:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8eb2e2e-0ce4-4e20-aab7-510cdba616d6</guid><dc:creator>ChandraSR K</dc:creator><description>&lt;p&gt;While choosing nRF Connect options --&amp;gt; Board Directory , I couldn&amp;#39;t find find&amp;nbsp; nrf9160dk_nrf9160ns in&amp;nbsp; &amp;lt;SourcePath&amp;gt;/ncs/v1.3.0/zephyr/boards/arm. I could see only nrf9160dk_nrf9160.&lt;/p&gt;
&lt;p&gt;Can you help on how to choose nrf9160dk_nrf9160ns.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Chandra&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK Tutorial - Part 3 | NCS v1.3.0 --&gt; 1.2 Walkthrough for BME280 - gives compilation error</title><link>https://devzone.nordicsemi.com/thread/270797?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 10:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aefcfc77-02ec-4f15-9f11-04bc74bc9c8a</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;&amp;nbsp;&lt;/p&gt;
[quote user=""]nrf9160dk_nrf9160.[/quote]
&lt;p&gt;&amp;nbsp;When configuring the project, did you select the board that corresponds to your overlay file?&lt;/p&gt;
&lt;p&gt;If the board is &amp;quot;nrf9160dk_nrf9160&amp;quot; then the overlay should be samples/my-app/nrf9160dk_nrf9160.overlay and contain the corresponding overlay settings for the sensor you&amp;#39;re using.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please share your overlay file and which board you&amp;#39;re configuring the project for, if it still doesn&amp;#39;t work?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note: its normal to use the board nrf9160dk_nrf9160ns, as the modem can only communicate with an application in the non-secure region.&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>