<?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>spi0 and twi0 are used in one project , compile wrong</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38377/spi0-and-twi0-are-used-in-one-project-compile-wrong</link><description>Hi all 
 I am using the spi0 to storage the data and twi0 to get sensor data . But after I add the file nrf_drv_twi.c and compile , it complies wrong :. 
 \_build\nrf51422_xxac.axf: Error: L6200E: Symbol SPI0_TWI0_IRQHandler multiply defined (by nrf_drv_twi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Sep 2018 15:32:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38377/spi0-and-twi0-are-used-in-one-project-compile-wrong" /><item><title>RE: spi0 and twi0 are used in one project , compile wrong</title><link>https://devzone.nordicsemi.com/thread/148264?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 15:32:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bdbca19-e675-4767-9c53-0a62cb719cc4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;It works fine here. I assume you have&amp;nbsp;TWI_ENABLED, TWI0_ENABLED ,&amp;nbsp;SPI_ENABLED and&amp;nbsp;SPI0_ENABLED set to 1 as well. Did you save the sdk_config.h file after you&amp;nbsp;modifed it, and re-compiled the project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi0 and twi0 are used in one project , compile wrong</title><link>https://devzone.nordicsemi.com/thread/148236?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 14:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf36711d-7b80-4a80-87d5-c463e6dcb91d</guid><dc:creator>mdevil39</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your suggest . In this project I will use twi0 and twi1 at the same time . So it cannot avoid this problem .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I enable&amp;nbsp;&lt;span&gt;PERIPHERAL_RESOURCE_SHARING_ENABLED&amp;nbsp; in sdk_config.h , but it also tells the same compile error .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m using the demo:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nRF5_SDK_12.3.0_d7731ad\examples\ble_peripheral\experimental_ble_app_buttonless_dfu&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;br /&gt;
&lt;div&gt;&lt;span&gt;// &amp;lt;e&amp;gt; PERIPHERAL_RESOURCE_SHARING_ENABLED - nrf_drv_common - Peripheral drivers common module&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;//==========================================================&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#ifndef&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;PERIPHERAL_RESOURCE_SHARING_ENABLED&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;PERIPHERAL_RESOURCE_SHARING_ENABLED&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#endif&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#if&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;PERIPHERAL_RESOURCE_SHARING_ENABLED&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// &amp;lt;e&amp;gt; COMMON_CONFIG_LOG_ENABLED - Enables logging in the module.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;//==========================================================&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#ifndef&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;COMMON_CONFIG_LOG_ENABLED&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;COMMON_CONFIG_LOG_ENABLED&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#endif&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#if&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;COMMON_CONFIG_LOG_ENABLED&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// &amp;lt;o&amp;gt; COMMON_CONFIG_LOG_LEVEL - Default Severity level&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// &amp;lt;0=&amp;gt; Off &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// &amp;lt;1=&amp;gt; Error &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// &amp;lt;2=&amp;gt; Warning &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// &amp;lt;3=&amp;gt; Info &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// &amp;lt;4=&amp;gt; Debug &lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;#ifndef&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;COMMON_CONFIG_LOG_LEVEL&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;COMMON_CONFIG_LOG_LEVEL&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#endif&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: spi0 and twi0 are used in one project , compile wrong</title><link>https://devzone.nordicsemi.com/thread/148080?ContentTypeID=1</link><pubDate>Mon, 10 Sep 2018 15:59:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1ad70c5-2907-415a-ac35-fdfebe15c092</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would recommend to use e.g. TWI0 and SPI1 instead, that will be easier for you. But if for some reason that is not an option, then take a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/17035/twi0-and-spi0-time-multiplex"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>