<?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>Migration from SDK 12 to SDK 15 problem with NRF_LOG</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39894/migration-from-sdk-12-to-sdk-15-problem-with-nrf_log</link><description>Hi, 
 I am currently trying to setup my sdk 15 on my pca10040. I already have a working I2C source for a BME280 and it works fine using the SDK 12 (pca10040), I get the current temperature and it is displayed via Serial Port terminal. 
 When I debug my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 10 Nov 2018 00:48:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39894/migration-from-sdk-12-to-sdk-15-problem-with-nrf_log" /><item><title>RE: Migration from SDK 12 to SDK 15 problem with NRF_LOG</title><link>https://devzone.nordicsemi.com/thread/156735?ContentTypeID=1</link><pubDate>Sat, 10 Nov 2018 00:48:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:406150c2-b594-4148-ad14-2fda704c65be</guid><dc:creator>Arepa</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/fitzbow"&gt;Fitzbow&lt;/a&gt;&amp;nbsp;@&lt;a href="https://devzone.nordicsemi.com/members/joh2"&gt;J&amp;oslash;rgen Holmefjord&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am migrating an old SDK app to SDK 15 and I am facing the same issue you solved adding&amp;nbsp;&lt;span&gt;NRF_LOG_DEFAULT_BACKENDS_INIT(); before the calling NRF_LOG&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;for every source file where I use NRF_LOG I added:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#include &amp;quot;nrf_log.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_log_ctrl.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_log_default_backends.h&amp;quot; //(I added this new one to each file)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;also I am&amp;nbsp;getting the following error:&lt;/p&gt;
&lt;p&gt;..\..\..\..\..\..\components\libraries\experimental_log\src\nrf_log_internal.h(315): error:&amp;nbsp; #65: expected a &amp;quot;;&amp;quot;&amp;nbsp; extern nrf_log_module_dynamic_data_t NRF_LOG_MODULE_DATA_DYNAMIC;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 12 to SDK 15 problem with NRF_LOG</title><link>https://devzone.nordicsemi.com/thread/155076?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 11:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e18d99c-d728-4b68-a6b2-daa0bf9da982</guid><dc:creator>Fitzbow</dc:creator><description>&lt;p&gt;Found out what needed to be added in my sdk15, it was the header file:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;#include &amp;quot;nrf_log_default_backends.h&amp;quot;&lt;/p&gt;
&lt;p&gt;and in the main function just before calling NRF_LOG for the first time&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;NRF_LOG_DEFAULT_BACKENDS_INIT();&lt;/p&gt;
&lt;p&gt;has to be added&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 12 to SDK 15 problem with NRF_LOG</title><link>https://devzone.nordicsemi.com/thread/155054?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 09:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26fd07d1-1e20-4246-9901-3e632dde59c7</guid><dc:creator>Fitzbow</dc:creator><description>&lt;p&gt;I did not change a thing in my sdk_config.h file,so it is the original one from sdk 15.0.0 it is initialized just like in the TWI_Sensor example:&lt;/p&gt;
&lt;p&gt;Those are the only few lines used in my application&lt;/p&gt;
&lt;p&gt;bme280_twi_measurement_get(&amp;amp;data);&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;NRF_LOG_INFO(&amp;quot;Temperature: &amp;quot; NRF_LOG_FLOAT_MARKER &amp;quot; degrees Celsius.\r\n&amp;quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;NRF_LOG_FLOAT(((float)data.temp)/100));&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;NRF_LOG_FLUSH();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int main(void)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;APP_ERROR_CHECK(NRF_LOG_INIT(NULL));&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;NRF_LOG_INFO(&amp;quot;BME280 TWI sensor example\r\n&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;NRF_LOG_FLUSH();&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 12 to SDK 15 problem with NRF_LOG</title><link>https://devzone.nordicsemi.com/thread/154835?ContentTypeID=1</link><pubDate>Mon, 29 Oct 2018 10:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0adf0510-f38d-49a5-af29-058593a23f1a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How did you configure NRF_LOG in your sdk_config.h file, and how do you initialize the NRF_LOG module in your application?&lt;/p&gt;
&lt;p&gt;Best regards.&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>