<?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>mesh sdk examples/enable uart logging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63816/mesh-sdk-examples-enable-uart-logging</link><description>app_config.h 
 #define NRF_LOG_ENABLED 1 ------------------ /home/shubin/electronic/firmware/nrf/nrf5_SDK_for_Mesh_v4.2.0_src/../nRF5_SDK_16.0.0_98a08e2/components/libraries/log/nrf_log_backend_interface.h:54:10: fatal error: nrf_memobj.h: No such file</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Jul 2020 14:18:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63816/mesh-sdk-examples-enable-uart-logging" /><item><title>RE: mesh sdk examples/enable uart logging</title><link>https://devzone.nordicsemi.com/thread/261018?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 14:18:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:307b3172-c14e-401f-a4b2-e83244b9355b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Vyacheslav,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can find the example code for printing log via UART in mesh my last reply here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/59428/adding-uart-code-to-the-light-switch-server-project"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/59428/adding-uart-code-to-the-light-switch-server-project&lt;/a&gt;&lt;br /&gt;It&amp;#39;s made for SDK v4.0 but should be straight forward to port to v4.2&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh sdk examples/enable uart logging</title><link>https://devzone.nordicsemi.com/thread/260642?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 15:33:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:812a38ad-7894-4dbe-9a6c-4513cc07f316</guid><dc:creator>VyacheslavSS</dc:creator><description>&lt;p&gt;With second question about blochek UART.&lt;/p&gt;
&lt;p&gt;I patched SDK16 wiles with:&lt;/p&gt;
&lt;p&gt;104:&lt;/p&gt;
&lt;pre style="background-color:#ffffff;color:#080808;font-family:&amp;#39;Fira Code Light&amp;#39;,monospace;font-size:9.8pt;"&gt;&lt;span style="color:#009937;"&gt;#ifdef &lt;/span&gt;BLOCKED_UART&lt;br /&gt;    uint32_t err_code = nrf_drv_uart_init(&amp;amp;app_uart_inst, &amp;amp;config, &lt;span style="color:#00bb24;"&gt;0&lt;/span&gt;);&lt;br /&gt;&lt;span style="color:#009937;"&gt;#else&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#009937;"&gt;    &lt;/span&gt;uint32_t err_code = nrf_drv_uart_init(&amp;amp;app_uart_inst, &amp;amp;config, event_handler);&lt;br /&gt;&lt;span style="color:#009937;"&gt;#endif&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;because call nrf_drv_uart_init without calback is syncronus. So, after patching uart call in interrupt calls stay OK.&lt;/p&gt;
&lt;p&gt;I think it is bug in sdk16, please accept bug report.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh sdk examples/enable uart logging</title><link>https://devzone.nordicsemi.com/thread/260615?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 14:21:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:079ee4d1-6fb0-4f09-8b5b-fe495af006ad</guid><dc:creator>VyacheslavSS</dc:creator><description>&lt;p&gt;see reply&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh sdk examples/enable uart logging</title><link>https://devzone.nordicsemi.com/thread/260614?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 14:20:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b32ca53d-b83e-4a92-91ea-bb96a1ff447d</guid><dc:creator>VyacheslavSS</dc:creator><description>&lt;p&gt;Yes, i know what i need. I added more then 10 include and source files. I set ~10 defines. It&amp;#39;s really hell task!!! Do you have a working code that output log to uart (or app uart) in mesh examples?&lt;br /&gt;&lt;br /&gt;With alternative, i got the soft UART to work! Call in main loop is ok, but in event button_event_handler is blocking!!! I don&amp;#39;t undertand why?!&lt;br /&gt;&lt;br /&gt;Please, by priority, answer first question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh sdk examples/enable uart logging</title><link>https://devzone.nordicsemi.com/thread/260571?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 12:18:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c36029ba-0c50-4798-b580-9e74a5adb489</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;You need to include the files that it is asking for. Does it work when you do the same with the &amp;quot;new error&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh sdk examples/enable uart logging</title><link>https://devzone.nordicsemi.com/thread/260433?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 15:45:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c21440e-33b0-4941-b609-62ff3404388f</guid><dc:creator>VyacheslavSS</dc:creator><description>&lt;p&gt;all examples compiles and working with no changed sources.&lt;br /&gt;&lt;br /&gt;But i want see logs via uart in mesh sdk examples.&lt;br /&gt;&lt;br /&gt;Please See the first message:&lt;br /&gt;&lt;br /&gt;Set option NRF_LOG_ENABLED 1 =&amp;gt; error No such file or directory #include &amp;quot;nrf_memobj.h&amp;quot;&lt;br /&gt;&lt;br /&gt;CMakeLists was modified by attach needed sources including nrf_strerror.c =&amp;gt; new error.&lt;br /&gt;&lt;br /&gt;You can reproduce error if try to do that with clear installed sdk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh sdk examples/enable uart logging</title><link>https://devzone.nordicsemi.com/thread/260412?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 14:05:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a35a3d4d-ac6d-4732-8e45-086cf26b35f2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Also i tried attach uart like SDK16 sample, i can&amp;#39;t link neaded libraries.[/quote]
&lt;p&gt;&amp;nbsp;Does that mean that the examples doesn&amp;#39;t compile even if you don&amp;#39;t modify them?&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s take one of the errors:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;/home/shubin/electronic/firmware/nrf/nRF5_SDK_16.0.0_98a08e2/components/softdevice/common/nrf_sdh_ble.c:133: undefined reference to `nrf_strerror_get&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is defined in SDK16\components\libraries\strerror\nrf_strerror.c&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and it is &amp;quot;protected&amp;quot; by&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#if NRF_MODULE_ENABLED(NRF_STRERROR)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;which is a macro saying:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#if&amp;nbsp;((defined(NRF_STRERROR_ENABLED) &amp;amp;&amp;amp; (NRF_STRERROR_ENABLED) == 1)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So,&lt;/p&gt;
&lt;p&gt;1: Is nrf_strerror.c included in your project?&lt;/p&gt;
&lt;p&gt;2: What is NRF_STRERROR_ENABLED in your sdk_config.h file set to?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>