<?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>Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81307/debug-log-issue-in-adding-uart-in-ble_app_template</link><description>Hi, 
 1-I have successfully developed an app ... \nRF5SDK1702d674dde\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_template. 2-I have set a UART example to send data from Arduino and successfully send data from Arduino and receiving on nRF52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Nov 2021 08:53:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81307/debug-log-issue-in-adding-uart-in-ble_app_template" /><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337410?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 08:53:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:976b3b82-89d8-4f6a-af81-c88bc3dda5e1</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;Thanks &lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337397?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 07:56:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b64f36b4-4f4d-4202-922f-a7fc37e7dd70</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;No, you have enabled the NRFX_* symbol.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337396?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 07:54:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52c5f620-dd2d-47ce-b0e6-02cf575a3b03</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;It&amp;#39;s&amp;nbsp;enabled.&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1636012463443v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337395?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 07:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f337b839-0aae-4553-bcd1-b6e49ac3fda9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;you must have forgotten to enable TIMER1_ENABLED.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337393?ContentTypeID=1</link><pubDate>Thu, 04 Nov 2021 07:51:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bedee88-3b9f-41b9-94e5-61e2f712f74b</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&lt;br /&gt;I have made the mentioned changes now getting the following errors. Can you please upload the working project here? Thanks&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1636012307360v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337328?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 15:32:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51596938-1133-4011-ab36-2f2b4c8fd784</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Below are the changes I made to make your project run:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="diff"&gt;diff --git a/pca10056/s140/config/sdk_config.h b/pca10056/s140/config/sdk_config.h
index e27ddb1..765b89c 100644
--- a/pca10056/s140/config/sdk_config.h
+++ b/pca10056/s140/config/sdk_config.h
@@ -5674,14 +5674,14 @@
  
 
 #ifndef TIMER0_ENABLED
-#define TIMER0_ENABLED 1
+#define TIMER0_ENABLED 0
 #endif
 
 // &amp;lt;q&amp;gt; TIMER1_ENABLED  - Enable TIMER1 instance
  
 
 #ifndef TIMER1_ENABLED
-#define TIMER1_ENABLED 0
+#define TIMER1_ENABLED 1
 #endif
 
 // &amp;lt;q&amp;gt; TIMER2_ENABLED  - Enable TIMER2 instance
@@ -7715,7 +7715,7 @@
 // &amp;lt;e&amp;gt; NRF_LOG_BACKEND_UART_ENABLED - nrf_log_backend_uart - Log UART backend
 //==========================================================
 #ifndef NRF_LOG_BACKEND_UART_ENABLED
-#define NRF_LOG_BACKEND_UART_ENABLED 1
+#define NRF_LOG_BACKEND_UART_ENABLED 0
 #endif
 // &amp;lt;o&amp;gt; NRF_LOG_BACKEND_UART_TX_PIN - UART TX pin 
 #ifndef NRF_LOG_BACKEND_UART_TX_PIN
diff --git a/main.c b/main.c
index d908f1c..3acc34d 100644
--- a/main.c
+++ b/main.c
@@ -94,7 +94,7 @@
 #include &amp;quot;nrf_fstorage_sd.h&amp;quot;
 
 // BEGIN Block Added for DFU
-#include &amp;quot;C:\Nordic\SDK\nRF5SDK17009d13099\nRF5_SDK_17.0.0_9d13099\components\libraries\bootloader\nrf_bootloader_info.h&amp;quot;
+#include &amp;quot;nrf_bootloader_info.h&amp;quot;
 #include &amp;quot;ble_dfu.h&amp;quot;
 #include &amp;quot;nrf_dfu_ble_svci_bond_sharing.h&amp;quot;
 #include &amp;quot;nrf_svci_async_function.h&amp;quot;
@@ -177,7 +177,7 @@
 //---------------------------------------------------------------------------------------------------------------------------------------------
 
 //UART
-NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 0, 0, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);
+NRF_LIBUARTE_ASYNC_DEFINE(libuarte, 0, 1, 0, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);
 
 static uint8_t text[] = &amp;quot;UART example started5.\r\nLoopback:\r\n&amp;quot;;
 static uint8_t text_size = sizeof(text);
@@ -3039,31 +3039,22 @@ int main(void) {
   rc = nrf_fstorage_init(&amp;amp;fstorage, p_fs_api, NULL);
   APP_ERROR_CHECK(rc);
 
-
-
-
-    err_code = NRF_LOG_INIT(app_timer_cnt_get);
-    APP_ERROR_CHECK(err_code);
-
-
-    NRF_LOG_DEFAULT_BACKENDS_INIT();
-
-
-    nrf_libuarte_async_config_t nrf_libuarte_async_config = {
+  nrf_libuarte_async_config_t nrf_libuarte_async_config = {
             .tx_pin     = TX_PIN_NUMBER,
             .rx_pin     = RX_PIN_NUMBER,
             .baudrate   = NRF_UARTE_BAUDRATE_9600,
             .parity     = NRF_UARTE_PARITY_EXCLUDED,
             .hwfc       = NRF_UARTE_HWFC_DISABLED,
             .timeout_us = 100,
-            .int_prio   = APP_IRQ_PRIORITY_LOW
-    };
+            .int_prio   = APP_IRQ_PRIORITY_LOW_MID
+  };
 
-    err_code = nrf_libuarte_async_init(&amp;amp;libuarte, &amp;amp;nrf_libuarte_async_config, uart_event_handler, (void *)&amp;amp;libuarte);
 
-    APP_ERROR_CHECK(err_code);
+  err_code = nrf_libuarte_async_init(&amp;amp;libuarte, &amp;amp;nrf_libuarte_async_config, uart_event_handler, (void *)&amp;amp;libuarte);
+
+  APP_ERROR_CHECK(err_code);
 
-    nrf_libuarte_async_enable(&amp;amp;libuarte);
+  nrf_libuarte_async_enable(&amp;amp;libuarte);
 &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;NRF_LOG_BACKEND_UART_ENABLED was still enabled in the project you sent..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337217?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 09:30:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54e01117-68ef-4433-9eac-dfd09ec608fa</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;Is this you asked?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635931816999v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635931836965v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337212?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 09:19:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:438ee0a4-b3bb-44bd-927c-3ead7afb1811</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Can you step through the async init function to see where the error gets returned?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337202?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 08:57:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14bd0fc4-efe7-4a65-a0de-dae5f99b80e2</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635929817609v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337200?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 08:55:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:423ecdcd-0182-47e3-b42d-2174add43359</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please expand the &amp;quot;debug terminal&amp;quot; view so you can see the file name and the line number of where the invalid param error was returned.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337188?ContentTypeID=1</link><pubDate>Wed, 03 Nov 2021 07:53:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8773400-b111-402f-b195-1c21c028b702</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635926022120v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337070?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 12:00:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfd863af-bb16-4f33-a26a-4f549dddbbca</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;I have disabled it but the same result.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1635854422725v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337066?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 11:49:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e5966d7-daa6-4b13-a76d-e5d8fc358e96</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Then you need to disable it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337063?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 11:47:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11b4ada0-4e84-4540-a5f6-1e42b4ca28d8</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;It&amp;#39;s enabled.&lt;br /&gt;I have attached the complete project for clarification. Kindly check.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template_5F00_plus_5F00_libuart-Tessst.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_template_5F00_plus_5F00_libuart-Tessst.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Log issue in Adding UART in ble_app_template</title><link>https://devzone.nordicsemi.com/thread/337058?ContentTypeID=1</link><pubDate>Tue, 02 Nov 2021 11:40:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c26c1b6e-fa8e-45f1-bb44-8fd008a347dc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you disabled the NRF_LOG_BACKEND_UART_ENABLED setting in your sdk_config.h file to prevent the logger module from trying to aquire the same UART instance as libuarte?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>