<?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>Will calling NRF_LOG_* methods cause a problem when not on a Development Kit?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76236/will-calling-nrf_log_-methods-cause-a-problem-when-not-on-a-development-kit</link><description>THis may have an obvious answer to an experienced embedded programmer but I do not qualify to be that. So I have a piece of working code that runs on the nRF52840 DK and it has several NRF_LOG_* method calls. Now I want to flash the nRF52840 dongle with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Jun 2021 11:07:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76236/will-calling-nrf_log_-methods-cause-a-problem-when-not-on-a-development-kit" /><item><title>RE: Will calling NRF_LOG_* methods cause a problem when not on a Development Kit?</title><link>https://devzone.nordicsemi.com/thread/314879?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 11:07:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bec009b8-12ed-4bdf-9724-1bdfd7830636</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Are you using the UART or RTT backend for the logging?&lt;/p&gt;
&lt;p&gt;If you use RTT logging it should work fine to run on the dongle, but if you use UART logging it is likely the UART driver will crash when the UART pins are no longer connected to anything.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regardless, it is probably best to simply disable logging entirely when building for the dongle.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Either you can use a separate sdk_config.h file for your dongle build, or you can move the NRF_LOG_ENABLED define from sdk_config.h to your project settings, so that you can define this separately for the two different build targets.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>