<?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>static assertion failed: &amp;quot;Only one of the following peripherals can be enabled: SPI2, SPIM2, SPIS2, TWI2, TWIM2, TWIS2, UARTE2.  kernel build bug</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73572/static-assertion-failed-only-one-of-the-following-peripherals-can-be-enabled-spi2-spim2-spis2-twi2-twim2-twis2-uarte2-kernel-build-bug</link><description>in nrf9160dk_nrf9160ns.overlay setting / { chosen { zephyr,console = &amp;amp;uart0; zephyr,shell-uart = &amp;amp;uart0; zephyr,uart-mcumgr = &amp;amp;uart0; zephyr,bt-mon-uart = &amp;amp;uart0; }; }; &amp;amp;uart0 { current-speed = &amp;lt;115200&amp;gt;; status = &amp;quot;okay&amp;quot;; tx-pin = &amp;lt;1&amp;gt;; rx-pin = &amp;lt;0&amp;gt;; rts</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Apr 2021 07:31:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73572/static-assertion-failed-only-one-of-the-following-peripherals-can-be-enabled-spi2-spim2-spis2-twi2-twim2-twis2-uarte2-kernel-build-bug" /><item><title>RE: static assertion failed: "Only one of the following peripherals can be enabled: SPI2, SPIM2, SPIS2, TWI2, TWIM2, TWIS2, UARTE2.  kernel build bug</title><link>https://devzone.nordicsemi.com/thread/303018?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 07:31:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d000b27a-110b-4dc6-b839-703620552629</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;Some peripherals have a shared ID, as explained here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/peripheral_interface.html?cp=2_0_0_2_2_1#concept_shared_id"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf9160/peripheral_interface.html?cp=2_0_0_2_2_1#concept_shared_id&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/memory.html?cp=2_0_0_3_1_1#topic"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf9160/memory.html?cp=2_0_0_3_1_1#topic&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This means that bus devices that share base address, like SPI*0, TWI*0, and UARTE0 on the nRF9160; only one of these can be enabled at the same time.&lt;/p&gt;
&lt;p&gt;You cannot have i2c2 and uart2 enabled simultaneously for the nRF9160 device. As you mention, try moving one of these, like using i2c3 instead.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In case you have SPI enabled:&lt;/p&gt;
&lt;p&gt;Note that you should disable spi3, as this is default enabled for the nrf9160dk_nrf9160 board:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi3 {
	status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkoin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: static assertion failed: "Only one of the following peripherals can be enabled: SPI2, SPIM2, SPIS2, TWI2, TWIM2, TWIS2, UARTE2.  kernel build bug</title><link>https://devzone.nordicsemi.com/thread/302959?ContentTypeID=1</link><pubDate>Mon, 05 Apr 2021 06:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c686e7c4-98a5-4938-a785-de0a4d362d9b</guid><dc:creator>fatalfeel</dc:creator><description>&lt;p&gt;it check by ~/ncs/zephyr/soc/arm/nordic_nrf/validate_enabled_instances.c&lt;br /&gt;&lt;br /&gt;#define CHECK(idx) \&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;!(I2C_ENABLED(idx) &amp;amp;&amp;amp; SPI_ENABLED(idx)) &amp;amp;&amp;amp; \&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;!(I2C_ENABLED(idx) &amp;amp;&amp;amp; UART_ENABLED(idx)) &amp;amp;&amp;amp; \&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;!(SPI_ENABLED(idx) &amp;amp;&amp;amp; UART_ENABLED(idx))&lt;br /&gt;&lt;br /&gt;#define MSG(idx) \&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;quot;Only one of the following peripherals can be enabled: &amp;quot; \&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;quot;SPI&amp;quot;#idx&amp;quot;, SPIM&amp;quot;#idx&amp;quot;, SPIS&amp;quot;#idx&amp;quot;, TWI&amp;quot;#idx&amp;quot;, TWIM&amp;quot;#idx&amp;quot;, TWIS&amp;quot;#idx \&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;IF_ENABLED(CONFIG_SOC_SERIES_NRF53X, (&amp;quot;, UARTE&amp;quot;#idx)) \&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;IF_ENABLED(CONFIG_SOC_SERIES_NRF91X, (&amp;quot;, UARTE&amp;quot;#idx)) \&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;quot;. Check nodes with status \&amp;quot;okay\&amp;quot; in zephyr.dts.&amp;quot;&lt;br /&gt;&lt;br /&gt;#if !IS_ENABLED(CONFIG_SOC_NRF52810)&lt;br /&gt;BUILD_ASSERT(CHECK(0), MSG(0));&lt;br /&gt;#endif&lt;br /&gt;BUILD_ASSERT(CHECK(1), MSG(1));&lt;br /&gt;BUILD_ASSERT(CHECK(2), MSG(2));&lt;br /&gt;BUILD_ASSERT(CHECK(3), MSG(3));&lt;br /&gt;&lt;br /&gt;so&amp;nbsp; maybe i2c_2 need move to i2c_3&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>