<?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>How can I see some hidden log on Thingy:52 debug?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41197/how-can-i-see-some-hidden-log-on-thingy-52-debug</link><description>Hi all, 
 I&amp;#39;m working with 2.1.0 version of Thingy:52 firmware (the last version currently). Further I am working on Linux with SEGGER J-Link Commander V6.34c in order to debugging and programming Thingy:52. For this, I&amp;#39;m using nRF52840 DK connected to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Nov 2018 15:38:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41197/how-can-i-see-some-hidden-log-on-thingy-52-debug" /><item><title>RE: How can I see some hidden log on Thingy:52 debug?</title><link>https://devzone.nordicsemi.com/thread/160132?ContentTypeID=1</link><pubDate>Mon, 05 Nov 2018 15:38:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:662aa7c1-9cae-46f1-94d2-3b75240f8544</guid><dc:creator>manumonti</dc:creator><description>&lt;p&gt;Hi Martin. Sorry for waiting.&lt;/p&gt;
&lt;p&gt;I have followed exactly the steps you posted and that didn&amp;#39;t work. Maybe the problem is with my terminal or my linux (linux mint 19).&lt;/p&gt;
&lt;p&gt;Thank you anyway,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Manuel Montenegro&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I see some hidden log on Thingy:52 debug?</title><link>https://devzone.nordicsemi.com/thread/160131?ContentTypeID=1</link><pubDate>Wed, 05 Sep 2018 14:50:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:506dd015-3288-420f-ab15-d1399dead583</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Manuel,&lt;/p&gt;
&lt;p&gt;I just downloaded a fresh copy of the thingy SDK.&lt;/p&gt;
&lt;p&gt;1. Enabled nrf_log and sat the Log level to 4.&lt;/p&gt;
&lt;p&gt;2. Compiled and flashed this application, and connected (BLE) to the Thingy with nrf connect mobile.&lt;/p&gt;
&lt;p&gt;3. Turned on the &amp;quot;Thingy Raw Data Characteristic&amp;quot; in the motion service and got out this from the RTT log:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-3362f0c1d6274b5b8b058bd00aa4d713/pastedimage1536158970081v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;(added .hex file:)&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-3362f0c1d6274b5b8b058bd00aa4d713/app_5F00_thingy_5F00_s132.hex"&gt;devzone.nordicsemi.com/.../app_5F00_thingy_5F00_s132.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I see some hidden log on Thingy:52 debug?</title><link>https://devzone.nordicsemi.com/thread/160130?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 12:21:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51d8abdb-e76a-492e-a897-ec0b50da86d1</guid><dc:creator>manumonti</dc:creator><description>&lt;p&gt;Thank you for your answer, Martin.&lt;/p&gt;
&lt;p&gt;That works, but not completely.&lt;/p&gt;
&lt;p&gt;Now, I can see all the DEBUG logs, but I think there are some kind of error (maybe a bug?) with Accelerometer, Gyroscope and Magnetometer logs.&lt;/p&gt;
&lt;p&gt;This is the log I can get. How you can see, the value field is empty:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;m_motion      :DEBUG:DRV_MOTION_EVT_RAW:
m_motion      :DEBUG: accel.x [G&amp;#39;s] = :
m_motion      :DEBUG: accel.y [G&amp;#39;s] = :
m_motion      :DEBUG: accel.z [G&amp;#39;s] = :
m_motion      :DEBUG: gyro.x [deg/s] = :
m_motion      :DEBUG: gyro.y [deg/s] = :
m_motion      :DEBUG: gyro.z [deg/s] = :
m_motion      :DEBUG: mag.x [uT] = :
m_motion      :DEBUG: mag.y [uT] = :
m_motion      :DEBUG: mag.z [uT] = :
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;How ever, with other sensors I can get the values:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 353
m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 1
m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 8
m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 11
m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 14
m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 10
m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 15
m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 20
m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 28
m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 36
m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 43
m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 48
m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 52
m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 58
m_motion      :DEBUG:DRV_MOTION_EVT_HEADING [deg]:  h: 63
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Any idea about what is happening?&lt;/p&gt;
&lt;p&gt;Manuel Montenegro.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I see some hidden log on Thingy:52 debug?</title><link>https://devzone.nordicsemi.com/thread/160129?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 09:01:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a946010-260f-4110-a526-5a67f6a75d29</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Manuel,&lt;/p&gt;
&lt;p&gt;Add this in &lt;em&gt;sdk_config.h.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRF_LOG_ENABLED 1

#define NRF_LOG_DEFAULT_LEVEL 4&lt;/pre&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Increase the &lt;strong&gt;NRF_LOG_DEFAULT_LEVEL &lt;/strong&gt;to&lt;strong&gt; 4&lt;/strong&gt; to get out debug messages as you can see in &amp;quot;drv_motion.c&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#if NRF_LOG_ENABLED
    void print_sensor_status(void)
    {
        long acc_bias[NUM_AXES];
        long gyr_bias[NUM_AXES];
        long mag_bias[NUM_AXES];
        int acc_accuracy;
        int gyr_accuracy;
        int mag_accuracy;
        
        inv_get_accel_bias(acc_bias, NULL);
        inv_get_gyro_bias(gyr_bias, NULL);
        inv_get_compass_bias(mag_bias);
        
        acc_accuracy = inv_get_accel_accuracy();
        gyr_accuracy = inv_get_gyro_accuracy();
        mag_accuracy = inv_get_mag_accuracy();
        
        NRF_LOG_DEBUG(&amp;quot;Acc bias: &amp;quot;);
        NRF_LOG_DEBUG(&amp;quot;X: &amp;quot;NRF_LOG_FLOAT_MARKER&amp;quot; &amp;quot;,     NRF_LOG_FLOAT(acc_bias[0]));
        NRF_LOG_DEBUG(&amp;quot;Y: &amp;quot;NRF_LOG_FLOAT_MARKER&amp;quot; &amp;quot;,     NRF_LOG_FLOAT(acc_bias[1]));
        NRF_LOG_DEBUG(&amp;quot;Z: &amp;quot;NRF_LOG_FLOAT_MARKER&amp;quot; \r\n&amp;quot;, NRF_LOG_FLOAT(acc_bias[2]));
        
        NRF_LOG_DEBUG(&amp;quot;Gyr bias: &amp;quot;); 
        NRF_LOG_DEBUG(&amp;quot;X: &amp;quot;NRF_LOG_FLOAT_MARKER&amp;quot; &amp;quot;,     NRF_LOG_FLOAT(gyr_bias[0]));
        NRF_LOG_DEBUG(&amp;quot;Y: &amp;quot;NRF_LOG_FLOAT_MARKER&amp;quot; &amp;quot;,     NRF_LOG_FLOAT(gyr_bias[1]));
        NRF_LOG_DEBUG(&amp;quot;Z: &amp;quot;NRF_LOG_FLOAT_MARKER&amp;quot; \r\n&amp;quot;, NRF_LOG_FLOAT(gyr_bias[2]));

        NRF_LOG_DEBUG(&amp;quot;Mag bias: &amp;quot;);
        NRF_LOG_DEBUG(&amp;quot;X: &amp;quot;NRF_LOG_FLOAT_MARKER&amp;quot; &amp;quot;,     NRF_LOG_FLOAT(mag_bias[0]/(2^16)));
        NRF_LOG_DEBUG(&amp;quot;Y: &amp;quot;NRF_LOG_FLOAT_MARKER&amp;quot; &amp;quot;,     NRF_LOG_FLOAT(mag_bias[1]/(2^16)));
        NRF_LOG_DEBUG(&amp;quot;Z: &amp;quot;NRF_LOG_FLOAT_MARKER&amp;quot; \r\n&amp;quot;, NRF_LOG_FLOAT(mag_bias[2]/(2^16)));

        NRF_LOG_DEBUG(&amp;quot;Accur: Acc: %d, gyr: %d, mag: %d \r\n&amp;quot;, acc_accuracy, gyr_accuracy, mag_accuracy);
    }
#endif&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>