<?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>Errors Merging &amp;quot;ble_app_uart&amp;quot; and &amp;quot;twi_sensor&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59864/errors-merging-ble_app_uart-and-twi_sensor</link><description>I found similar questions, but none that were marked as &amp;quot;answered&amp;quot;. 
 I have a working version of &amp;quot;nRF5_SDK_160.0.0_98a08e2/examples/ble_peripheral/ble_app_uart&amp;quot;. I also have a modified &amp;quot; nRF5_SDK_160.0.0_98a08e2/examples/peripheral/twi_sensor&amp;quot; that works</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Apr 2020 19:05:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59864/errors-merging-ble_app_uart-and-twi_sensor" /><item><title>RE: Errors Merging "ble_app_uart" and "twi_sensor"</title><link>https://devzone.nordicsemi.com/thread/243758?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 19:05:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c337167-58bf-46a1-bcbf-2355eecc6d48</guid><dc:creator>Collin NB</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1586199698449v1.png" /&gt;&lt;/p&gt;
&lt;div&gt;This line right here broke it. It&amp;#39;s the 12116 line long sdk_config.h file. When this value was 1, the logging used UART and therefore the BLE can&amp;#39;t use it.&lt;/div&gt;
&lt;div&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1586199803075v2.png" /&gt;&lt;/div&gt;
&lt;div&gt;When init_uart was called, it evaluate this if statement in &amp;quot;nrfx_uart.c&amp;quot; to true and set the error code to 0x08.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;EDIT: I also had to remove&amp;nbsp;&lt;span&gt;&amp;quot;BSP_DEFINES_ONLY&amp;quot; and &amp;quot;&lt;/span&gt;&lt;span&gt;nRF_sdk/components/drivers_nrf/nrf_soc_nosd&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors Merging "ble_app_uart" and "twi_sensor"</title><link>https://devzone.nordicsemi.com/thread/243739?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 16:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aa746eb-010e-4986-be78-f02a5033d17a</guid><dc:creator>Collin NB</dc:creator><description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;[quote userid="89286" url="~/f/nordic-q-a/59864/errors-merging-ble_app_uart-and-twi_sensor"][/quote]&lt;/p&gt;
&lt;p&gt;Complete merge means (same as partial 2, except...)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;.emProject&lt;span&gt;&amp;nbsp;(see &amp;quot;&lt;/span&gt;&lt;span&gt;ble_twi-completeMerge.emProject&amp;quot;&amp;nbsp;since .emProject files won&amp;#39;t load)&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;All the missing includes from &amp;quot;twi_sensor&amp;quot; &lt;strong&gt;HAVE&lt;/strong&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;been added to &amp;quot;ble_app_uart&amp;quot;&lt;/li&gt;
&lt;li&gt;to &amp;quot;configuration/c_preprocessor_definitions&amp;quot; the value &amp;quot;BSP_DEFINES_ONLY;&amp;quot; is added&lt;/li&gt;
&lt;li&gt;to &amp;quot;configuration/c_user_include_directories&amp;quot; the value &amp;quot;nRF_sdk/components/drivers_nrf/nrf_soc_nosd;&amp;quot; is added&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately I have attempted to remove &amp;quot;BSP_DEFINES_ONLY&amp;quot; and the &amp;quot;&lt;span&gt;nRF_sdk/components/drivers_nrf/nrf_soc_nosd&amp;quot; in Partial Merge 2. Only the Complete Merge includes those. When I did NOT include those, the project built successfully...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="89286" url="~/f/nordic-q-a/59864/errors-merging-ble_app_uart-and-twi_sensor"]But when I run the program, I hit &amp;quot;app_error_handler_gcc.c/app_error_handler(ret_code_t error_code, uint32_t line_num, const uint8_t * p_file_name) with error code 0x08.[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors Merging "ble_app_uart" and "twi_sensor"</title><link>https://devzone.nordicsemi.com/thread/243723?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 15:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4bfbadd-bb97-447d-b429-b941880189d3</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Ok, I see what is happening. You have included the path to &amp;#39;nRF_sdk/components/drivers_nrf/nrf_soc_nosd&amp;#39;, before the paths to the softdevice headers. Since this directory also contains nrf_error.h, this will be used during compilation, but since SOFTDEVICE_PRESENT is defined, the code inside will be ignored.&lt;/p&gt;
&lt;p&gt;You need to remove this path when building a softdevice application, to allow the headers from the softdevice to be used. This path should only be included in non-softdevice applications. You should also remove the preprocessor define&amp;nbsp;BSP_DEFINES_ONLY for your project to build successfully.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors Merging "ble_app_uart" and "twi_sensor"</title><link>https://devzone.nordicsemi.com/thread/243447?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2020 15:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34236256-f4c0-4d20-84df-7840bbb8f61b</guid><dc:creator>Collin NB</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-0de5ab98929d4b298bccf0ee8112049f/BLE-and-TWI-Firmware.zip"&gt;devzone.nordicsemi.com/.../BLE-and-TWI-Firmware.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is the project zip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors Merging "ble_app_uart" and "twi_sensor"</title><link>https://devzone.nordicsemi.com/thread/243446?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2020 15:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afe212b4-0baa-4d14-8689-c6d340dc840c</guid><dc:creator>Collin NB</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-0de5ab98929d4b298bccf0ee8112049f/pastedimage1585926338146v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I believe that this line in &amp;quot;nrf_error.h&amp;quot; is what is causing the issue. Softdevice being defined in the sdk_config.h breaks it. I will attempt to add the project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors Merging "ble_app_uart" and "twi_sensor"</title><link>https://devzone.nordicsemi.com/thread/243445?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2020 12:57:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17927451-10c2-445f-ba86-c81b0e30f55d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure how you managed to get the error&amp;nbsp;&lt;span&gt;&amp;quot;&amp;#39;NRF_SUCCESS&amp;#39; undeclared&amp;quot;, as this is declared in nrf_error.h, which is included by&amp;nbsp;&lt;/span&gt;&lt;span&gt;sdk_error.h through app_error.h. This header seems to be included in your main.h file. Was this error reported by main.c?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you could upload your full project, it would be much easier to help you fix the compile and run-time errors.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>