<?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>Log Timestamp issues NRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78697/log-timestamp-issues-nrf52</link><description>Hello! 
 Recently I was asked to find a way to enable timestamps in our debug logs to make it easier to track performance during various stages of the operation of our device. 
 
 I found a few blog posts detailing the process and saw that you have to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Aug 2021 12:17:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78697/log-timestamp-issues-nrf52" /><item><title>RE: Log Timestamp issues NRF52</title><link>https://devzone.nordicsemi.com/thread/325953?ContentTypeID=1</link><pubDate>Fri, 20 Aug 2021 12:17:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3656bf3-fb5c-4029-94cf-4c9277d815d3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;That seems to be correct as well, can you check what this define is set to in your sdk_config.h file as well&amp;nbsp;&lt;strong&gt;NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED.&amp;nbsp;&lt;/strong&gt;If it&amp;#39;s set to 0, try setting it to 1 to enable the Timestamp format when logging. Also, make sure the nrf_cli.c and .h files are included in your project.&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t help either, try to debug to find the reason for this hardfault. You can use the ble_app_att_mtu_throughput or ble_app_cli applications as reference, as they already support logging with timestamps.&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: Log Timestamp issues NRF52</title><link>https://devzone.nordicsemi.com/thread/325527?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 13:36:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f5eb0f7-6425-4e9a-af3f-e60976756ee9</guid><dc:creator>mort809</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I suppose I didn&amp;#39;t realize the need to select a timer for the timestamps. I had left the&amp;nbsp;NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY as 0 to indicate that I wanted to use the app_timer frequency and figured that would be enough. How should I go about selecting a timer to use?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;app_timer_cnt_get() is defined as follows in my code:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;uint32_t app_timer_cnt_get(void)
{
    return drv_rtc_counter_get(&amp;amp;m_rtc_inst);
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I built my project on top of the ble_app_hrs_nfc_pairing_pca10040_s132 example found in the SDK&amp;#39;s experimental folder. We are pairing a mobile device to the nrf52832 and it is going much slower with our custom mobile app than with the nRF Connect mobile app. Essentially I was hoping to to add timestamps to our devices debug log in order to figure out what steps of our connection process are taking the longest and provide feedback to the app developers as to where to look to improve their connection speeds.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Log Timestamp issues NRF52</title><link>https://devzone.nordicsemi.com/thread/325521?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 13:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99530d59-6346-449f-8a83-072bab21c497</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What are you using as the timer for these timestamps?&amp;nbsp;Please check where this app_timer_cnt_get() function is defined in your application and make sure that it&amp;#39;s not using a timer or counter instance that is used elsewhere in your application. What kind of project is it that you&amp;#39;re trying to add timestamping to?&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>