<?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>Merging project issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79156/merging-project-issue</link><description>I have used the ble_peripheral/ble_app_uart example and add TWIM functionality to communicate with 2 I2C sensors. 
 I have used the peripheral/serial project to communicate back and forth through the UARTE1. 
 Both work fines. 
 Now i want to merge the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Sep 2021 12:13:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79156/merging-project-issue" /><item><title>RE: Merging project issue</title><link>https://devzone.nordicsemi.com/thread/327791?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 12:13:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1214b7ef-fb37-473b-b01e-e37a47f9aa08</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;I don&amp;#39;t see anything wrong in the sdk_config.h that&amp;nbsp;you uploaded.&lt;/p&gt;
[quote user="Laurent L"]I also see that there is multiple sdk_config.h in project[/quote]
&lt;p&gt;&amp;nbsp;There should only be 1 file called sdk_config.h in the project.&lt;/p&gt;
&lt;p&gt;From nrfx_irqs_nrf52840.h we have this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define nrfx_spim_0_irq_handler     SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
#define nrfx_spis_0_irq_handler     SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
#define nrfx_twim_0_irq_handler     SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
#define nrfx_twis_0_irq_handler     SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
#define nrfx_spi_0_irq_handler      SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler
#define nrfx_twi_0_irq_handler      SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You have&amp;nbsp;nrfx_twim_0_irq_handler linked&amp;amp;compiled in, here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;multiple definition of `SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler&amp;#39;; Output/Debug/Obj/IoTFabrica_Multi_pca10056/nrfx_twim.o:D:\WATERNET_DEVICE_DRIVE\nRF5_SDK_15.3.0_59ac345\modules\nrfx\drivers\src/nrfx_twim.c:676: first defined here&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Could you search your project for the others:&lt;/p&gt;
&lt;p&gt;nrfx_spim_0_irq_handler&lt;br /&gt;nrfx_spis_0_irq_handler &lt;br /&gt;nrfx_twim_0_irq_handler &lt;br /&gt;nrfx_twis_0_irq_handler &lt;br /&gt;nrfx_spi_0_irq_handler &lt;br /&gt;nrfx_twi_0_irq_handler&lt;/p&gt;
&lt;p&gt;Either you somehow have 2 of the&amp;nbsp;&lt;span&gt;nrfx_twim_0_irq_handler, or one of the others are getting linked&amp;amp;compiled as well.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merging project issue</title><link>https://devzone.nordicsemi.com/thread/327610?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 12:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2270a3e0-6bde-4c9f-b902-18b9a3ae95d8</guid><dc:creator>Laurent L</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5516.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../5516.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t believe that i have both SPI and TWI in the sdk_config.h but please check. The sdk_config.h is a huge pain to manage between project. I also see that there is multiple sdk_config.h in project. One in the project and one related to other c file. Very hard to understand what is happening there. I find the programming more time consuming due to sdk_config alignment, importing the right file instead of programming functionality. Please advise how to deal with this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Merging project issue</title><link>https://devzone.nordicsemi.com/thread/327605?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 12:12:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:809338e0-113a-496b-96e8-a4ab1e9807dd</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You cannot use multiple&amp;nbsp;peripheral instances that share the same IDs/base addresses at the same time, so if you want to use e.g. TWI and SPI at the same time, you should use e.g. TWI0 and SPI1.&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fmemory.html&amp;amp;anchor=topic"&gt;Here&lt;/a&gt;&lt;span&gt;&amp;nbsp;is the table of which IDs/base address the different peripheral instances use.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It could be that you have e.g.&amp;nbsp;SPI0_ENABLED or something similar enabled in sdk_config.h ? I can take a look at your sdk_config.h file if you post it here.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>