<?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>DIE temperature reading cause CPU usage increase</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113319/die-temperature-reading-cause-cpu-usage-increase</link><description>this is the last log message from monitor thread, I never got any error message from the thread. 
 
 00 &amp;gt; [ 01:37:03.890 , 808 ] &amp;lt;dbg&amp;gt; monitor: print_die_temperature: CPU Die temperature[temp@4000c000]: 34 &amp;#176;C 
 00 &amp;gt; [ 01:37:03.890 , 838 ] &amp;lt;dbg&amp;gt; monitor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Aug 2024 18:47:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113319/die-temperature-reading-cause-cpu-usage-increase" /><item><title>RE: DIE temperature reading cause CPU usage increase</title><link>https://devzone.nordicsemi.com/thread/498508?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 18:47:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa7189b8-c30a-416e-8910-c9639db040bc</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;here it is still running for about 9 hours.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1723747631067v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DIE temperature reading cause CPU usage increase</title><link>https://devzone.nordicsemi.com/thread/498426?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 10:17:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00b866a6-c400-4b31-8697-53b71f4cf061</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Restarted (re-flashed) with the delay of 10ms (instead of 1000ms)&lt;/p&gt;
&lt;p&gt;will continue for several hours.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DIE temperature reading cause CPU usage increase</title><link>https://devzone.nordicsemi.com/thread/498425?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 10:12:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8f207c0-d732-4ca2-b5df-07886d9cd862</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;I have run the test and will try it for several hours&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1723716732242v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DIE temperature reading cause CPU usage increase</title><link>https://devzone.nordicsemi.com/thread/498418?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 10:00:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08063c0c-7fec-4f05-84aa-a363de8be853</guid><dc:creator>LongQi</dc:creator><description>&lt;p&gt;Can you try to run longer time? It may happen anytime. it is not predictable.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DIE temperature reading cause CPU usage increase</title><link>https://devzone.nordicsemi.com/thread/498417?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2024 09:58:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f1d98e1-72e9-42f0-bfca-c89c073361b6</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Zhang,&lt;/p&gt;
&lt;p&gt;There is no update at my end.&lt;/p&gt;
&lt;p&gt;I thought you might have tested as I have shown you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DIE temperature reading cause CPU usage increase</title><link>https://devzone.nordicsemi.com/thread/498146?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 02:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb5cbe9e-8492-44e9-b242-5d6979702617</guid><dc:creator>LongQi</dc:creator><description>&lt;p&gt;is there any update?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DIE temperature reading cause CPU usage increase</title><link>https://devzone.nordicsemi.com/thread/496899?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 05:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efbc1c4d-39f7-48ee-ba5c-095b059c219d</guid><dc:creator>LongQi</dc:creator><description>&lt;p&gt;Could you try longer time like 24 hours because the issue may happen anytime and I have not find any pattern about it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DIE temperature reading cause CPU usage increase</title><link>https://devzone.nordicsemi.com/thread/495848?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 15:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b334246e-88dd-4d32-ae9f-af44c1b635aa</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Zhang,&lt;/p&gt;
&lt;p&gt;What do you mean by &amp;quot;any other testing&amp;quot;?&lt;/p&gt;
&lt;p&gt;I have showed you that the code and hardware is working correctly.&lt;/p&gt;
&lt;p&gt;I have also&amp;nbsp;informed you that it could be the impact from the thread analyzer itself.&lt;/p&gt;
&lt;p&gt;I do not have any more comments on it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DIE temperature reading cause CPU usage increase</title><link>https://devzone.nordicsemi.com/thread/495377?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 09:23:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfb48c34-e6ca-4ff7-adcc-1ca720e13f4b</guid><dc:creator>LongQi</dc:creator><description>&lt;p&gt;&lt;span&gt;I understand there is no as such limit to reading the die-temperature as it is just like reading from the register.&lt;/span&gt;&lt;/p&gt;
&lt;div class="content full threaded-reply-content user-defined-markup" data-replyid="495312" data-userid="133420" data-permalink="~/f/nordic-q-a/113319/die-temperature-reading-cause-cpu-usage-increase/495312"&gt;
&lt;div class="content"&gt;
&lt;div&gt;I mean is there any other testing I can do to identify the&amp;nbsp;root cause&amp;nbsp;since you are saying no limit for the reading?&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="edit-form"&gt;&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DIE temperature reading cause CPU usage increase</title><link>https://devzone.nordicsemi.com/thread/495361?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 08:42:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96fb6174-eafe-445f-8b63-6bf0c61a338b</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;What I meant was that there is no as such limit to reading the die-temperature as it is just like reading from the register.&lt;/p&gt;
&lt;p&gt;As you have described, I think then it should be something from the thread analyzer that is increasing the cpu usage.&lt;/p&gt;
&lt;p&gt;I just ran the code a bit longer, and was getting same response at the expected time.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1721809928395v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DIE temperature reading cause CPU usage increase</title><link>https://devzone.nordicsemi.com/thread/495312?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 01:39:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57472ecf-a6b8-4b23-b344-5005425c47fb</guid><dc:creator>LongQi</dc:creator><description>&lt;div&gt;&lt;span&gt;I am using thread analyzer to monitor the cpu and stack usage.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_THREAD_NAME&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_THREAD_ANALYZER&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_THREAD_ANALYZER_AUTO&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_THREAD_ANALYZER_RUN_UNLOCKED&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_THREAD_ANALYZER_USE_PRINTK&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;it&amp;#39;s not always 5737, sometimes it&amp;#39;ll last very long time. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;Are you referring to&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;sensor_sample_fetch and&lt;/span&gt;&amp;nbsp;sensor_channel_get for START task and DATARDY?&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Is there any other testing I can do to identify the issue?&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DIE temperature reading cause CPU usage increase</title><link>https://devzone.nordicsemi.com/thread/495248?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 14:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:992ebc0b-63c1-4ee3-bb8a-a27376b39e95</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Zhang,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think there is any limit on die-temp reading, just that every temperature measurement initiated&amp;nbsp;must start by triggering START task, and DATARDY event is generated to indicate that the TEMP register could be read.&lt;/p&gt;
&lt;p&gt;So, requesting a measurement, and reading the register when ready does not have a limit on it, except that excessive operations might increase the die temperature.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I want to ask:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What kind of graph is this that you have shared?&lt;/p&gt;
&lt;p&gt;How do you measure the cpu usage?&lt;/p&gt;
&lt;p&gt;Does your thread always stop at counter 5737 if you reset?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not sure what is happening at your end, but I can successfully run the code, and I have done 15000+ readings by just speeding up (using lower time for sleep).&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1721743428805v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>