<?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>Cannot combine BLE example with TWI example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70856/cannot-combine-ble-example-with-twi-example</link><description>Hi. 
 
 I&amp;#39;m trying to combine TWI sensor and BLE app UART examples. 
 I already tried putting parts of TWI sensor example in the BLE example, but it gave errors on missing definitions for some TWI parts (even though they were enabled in sdk_config.h)</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Jan 2021 06:14:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70856/cannot-combine-ble-example-with-twi-example" /><item><title>RE: Cannot combine BLE example with TWI example</title><link>https://devzone.nordicsemi.com/thread/291415?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2021 06:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5df42f3-7f27-4f0c-94c5-fc15fb713f38</guid><dc:creator>usmanmehmood55</dc:creator><description>&lt;p&gt;Hi Karl.&lt;/p&gt;
&lt;p&gt;Thank you so much for the suggestions.&amp;nbsp;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/70856/cannot-combine-ble-example-with-twi-example/290982#290982"]I would highly recommend that you proceed by adding the TWI sensor example&amp;#39;s files and sdk_config configuration to the BLE app UART example, rather than the other way around.[/quote]
&lt;p&gt;I did exactly this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Moreover, it seems that all the timers in my sdk_config were enabled, even though they were not being used. I disabled the ones that are not being used and synchronized my sdk_config with the default one provided by Nordic&amp;#39;s example. Then I synchronized it with the TWI example.&amp;nbsp;&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/70856/cannot-combine-ble-example-with-twi-example/290982#290982"]Could you also confirm for me that you have added the source .c files to your project&amp;#39;s source files?[/quote]
&lt;p&gt;I also added all the .c files needed.&lt;/p&gt;
&lt;p&gt;It works perfectly now.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot combine BLE example with TWI example</title><link>https://devzone.nordicsemi.com/thread/290982?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 10:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03dc11f2-4544-48e3-8c68-812a50131750</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]Now I tried doing it the other way around, and its giving missing definition errors on SoftDevice components.&amp;nbsp;[/quote]
&lt;p&gt;I would highly recommend that you proceed by adding the TWI sensor example&amp;#39;s files and sdk_config configuration to the BLE app UART example, rather than the other way around.&lt;br /&gt;Adding all the BLE requirements and includes to a non-BLE project is much more tedious than adding the TWI parts to an existing BLE project.&lt;/p&gt;
[quote user=""]&lt;p&gt;I synchronized sdk_config.h, I synchronized the include paths in project settings, nothing seems to work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What am I doing wrong here? Any help would be highly appreciated.&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;Could you show me the contents of your&amp;nbsp;&lt;em&gt;User Included Directories&lt;/em&gt;? Please also make sure that they are included in the&amp;nbsp;&lt;em&gt;common&lt;/em&gt; build configuration.&lt;br /&gt;It also looks to me as if your path might include a forward slash, where windows would like a backwards one - please change this to match window&amp;#39;s expectations.&lt;br /&gt;It seems that you might have done this to multiple include paths, as your error messages is both for nrf_pwr_mgmt and nrf_sdh.c files.&lt;br /&gt;Could you also confirm for me that you have added the source .c files to your project&amp;#39;s source files?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>