<?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 example debug print</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25142/mesh-example-debug-print</link><description>I&amp;#39;m using &amp;quot;nrf5_SDK_for_Mesh_v0.9.2-Alpha&amp;quot;. 
 How can I debug print out to UART print at printf, not RTT ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Aug 2019 21:42:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25142/mesh-example-debug-print" /><item><title>RE: mesh example debug print</title><link>https://devzone.nordicsemi.com/thread/202702?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 21:42:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70239b0e-b3d0-41c7-973c-3007a79be55b</guid><dc:creator>Min</dc:creator><description>&lt;p&gt;Tom-&lt;/p&gt;
&lt;p&gt;What is the reason UART is unavailable for Mesh? Is this because of the Serial Interface support?&lt;/p&gt;
&lt;p&gt;If Serial Interface is not needed for Mesh products, how can we get UART back? Will this be possible?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh example debug print</title><link>https://devzone.nordicsemi.com/thread/171791?ContentTypeID=1</link><pubDate>Tue, 19 Feb 2019 06:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bccbe67-262b-463c-87bf-123749597fd5</guid><dc:creator>Vibhu</dc:creator><description>[quote userid="16626" url="~/f/nordic-q-a/25142/mesh-example-debug-print/99036"]merging the UART example from the nRF_SDK with the log_callback_stdout() in the Mesh[/quote]
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/thst"&gt;thst&lt;/a&gt; Hi !&lt;/p&gt;
&lt;p&gt;Can you please be more elaborate on how to merge the UART example in SDK&lt;span&gt;&amp;nbsp;&lt;/span&gt;with log_callback_stdout in mesh.&lt;/p&gt;
&lt;p&gt;Thanks and Regards,&lt;/p&gt;
&lt;p&gt;Vibhu.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh example debug print</title><link>https://devzone.nordicsemi.com/thread/119937?ContentTypeID=1</link><pubDate>Tue, 06 Feb 2018 12:48:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2641393e-2532-45fb-9226-72b3fe4035f8</guid><dc:creator>swap007</dc:creator><description>&lt;p&gt;Hi Jake,&lt;/p&gt;
&lt;p&gt;I am facing a similar problem, can u please provide solution if u found out ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh example debug print</title><link>https://devzone.nordicsemi.com/thread/99036?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 06:40:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5769946-4917-4ff8-b7ca-8f69aca76a29</guid><dc:creator>thst</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry I forgot that mesh got the SDK label.    The UART example is in examples/peripherals of the  nrf5 SDK (&lt;a href="https://developer.nordicsemi.com/nRF5_SDK/"&gt;nRF5_SDK&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Debug print over UART is not  implemented in the Mesh SDK.&lt;/p&gt;
&lt;p&gt;Support can be added by merging the UART example from the nRF_SDK with the log_callback_stdout() in the Mesh.&lt;/p&gt;
&lt;p&gt;-Tom&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh example debug print</title><link>https://devzone.nordicsemi.com/thread/99034?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 01:50:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:623f5f57-ecd8-4eb9-8ac1-a8e1f107d779</guid><dc:creator>Jake</dc:creator><description>&lt;p&gt;Thank you thst.&lt;/p&gt;
&lt;p&gt;But, I can not find &amp;quot;examples/bsppca10040.h&amp;quot; file in &amp;quot;nrf5_SDK_for_Mesh_v0.9.2-Alpha&amp;quot;.
I see the file in &amp;quot;examples/hal/include/pca10040.h&amp;quot;. In this file, I see below.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define RX_PIN_NUMBER  8
#define TX_PIN_NUMBER  6
#define CTS_PIN_NUMBER 7
#define RTS_PIN_NUMBER 5
#define HWFC           true
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But, I can not find who uses these defines.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh example debug print</title><link>https://devzone.nordicsemi.com/thread/99035?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 08:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8e246d6-233b-4899-8d68-1f49337638ab</guid><dc:creator>thst</dc:creator><description>&lt;p&gt;Have you looked at the uart example in the sdk?&lt;/p&gt;
&lt;p&gt;The pca10040 devkit default UART pins are 8/6 [examples/bsp/pca10040.h:69]&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;PSELRTS 0x508 Pin select for RTS&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;PSELTXD 0x50C Pin select for TXD&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;PSELCTS 0x510 Pin select for CTS&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;PSELRXD 0x514 Pin select for RXD&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh example debug print</title><link>https://devzone.nordicsemi.com/thread/99033?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 08:21:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a9983a4-d4fc-470f-9954-7dce3e672bdf</guid><dc:creator>Jake</dc:creator><description>&lt;p&gt;Thank you thst.&lt;/p&gt;
&lt;p&gt;I already did your comment. But, I can not change UART pin. I want to use p0.04 and 5 for UART TX/RX. How can I change it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mesh example debug print</title><link>https://devzone.nordicsemi.com/thread/99032?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 07:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad30605b-9879-4f39-b9ab-932257e0b322</guid><dc:creator>thst</dc:creator><description>&lt;p&gt;Jake,&lt;/p&gt;
&lt;p&gt;in [&amp;quot;mesh/core/api/nrf_mesh_config_core.h&amp;quot;] line 307 you can see that rtt is the default:&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre&gt;&lt;code&gt;#ifndef LOG_CALLBACK_DEFAULT
#if defined(NRF51) || defined(NRF52_SERIES)
    #define LOG_CALLBACK_DEFAULT log_callback_rtt
#else
    #define LOG_CALLBACK_DEFAULT log_callback_stdout
#endif
#endif
&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;override this at compile time with a cmake argument.&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre&gt;&lt;code&gt;  cmake .. -G Ninja -DLOG_CALLBACK_DEFAULT=log_callback_stdout
&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>