<?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>Logging with timestamp on SDK 15.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43701/logging-with-timestamp-on-sdk-15-2</link><description>i have recently upgraded to SDK 15.2, and since doing so I am struggling to get timestamps working in the logger. 
 I am initialising the logger here: 
 
 And here is my microsecond timer. 
 
 When I log (using NRF_LOG_INFO(&amp;quot;comment&amp;quot;)) no timestamp appears</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Feb 2019 14:52:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43701/logging-with-timestamp-on-sdk-15-2" /><item><title>RE: Logging with timestamp on SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/171184?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 14:52:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f42aab8-63a3-462e-a9e9-8efe4ef57eab</guid><dc:creator>bgarrood</dc:creator><description>&lt;p&gt;Great, thank you.&amp;nbsp; its always something small!&amp;nbsp; I had to enable NRF_LOG_USES_TIMESTAMP in the config file (I thought I had already done that actually).&lt;/p&gt;
&lt;p&gt;Thank you Simon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging with timestamp on SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/171179?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 14:27:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86f9493f-a452-45f6-8c1e-043c61454315</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You can use the example SDK15.2\examples\ble_peripheral\experimental\ble_app_cli as a template, and look at the core_init function there. Also,make sure you have enabled NRF_LOG_USES_TIMESTAMP in your config file, set NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY as 0 to use the app_timer frequency, or set the frequency yourself.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;p&gt;EDIT: I think I found an easier starting point, as the aforementioned project might be confusing. You can look at the&amp;nbsp;&lt;span&gt;SDK15.2\examples\ble_peripheral\ble_app_hrs example instead, here too make sure to enable NRF_LOG_USES_TIMESTAMP, and use app_timer as the frequency variable (at least I did). Then run NRF_LOG_INIT(app_timer_cnt_get), by default that function is NRF_LOG_INIT(NULL) so you have to change that.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also I don&amp;#39;t know if you are using UART or RTT as a backend, but I recommend RTT as UART might mix up the timestamp info depending on what terminal you are using.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging with timestamp on SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/171102?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 11:45:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50df9714-d8e8-4816-82c0-abfa9b259f5a</guid><dc:creator>bgarrood</dc:creator><description>&lt;p&gt;I didnt base on an example.&amp;nbsp; I just went through bit by bit fixing all teh issues I had.&amp;nbsp; My code is quite complex so it wasnt really appropriate to start from an example.&lt;/p&gt;
&lt;p&gt;Are you able to give me an example of how to setup the timer usage inside the logger?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging with timestamp on SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/171100?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 11:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76e78d42-18f2-4801-aedf-2ded8da05e42</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What example are you basing your project in? And how exactly did you upgrade the SDK? There might be some changes done to the logger in the sdk_config.h file if you just changed the SDK version of the example and added your custom code.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging with timestamp on SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/171076?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 10:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cba817e1-1377-4aa4-8076-3316afd4f954</guid><dc:creator>bgarrood</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;No there is nothing in the migration guide about the logging module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Logging with timestamp on SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/171070?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 10:11:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c07e12a4-44ab-41f4-998f-9e67edd01b44</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Have you taken a look at our &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-0-0/migration"&gt;migration guide for the SDK 15?&lt;/a&gt;&amp;nbsp;There is probably something there you missed, as there are tweeks in each major SDK release.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>