<?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>CPU dont go to sleep</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113212/cpu-dont-go-to-sleep</link><description>Hi! I am using nrf32840 with free rtos, 
 and I have a loop that do the following 
 for(;;){ 
 vTaskDelay(pdMS_TO_TICKS(intervalTime)); // go to sleep due to portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime ); 
 
 // do some work 
 } 
 
 The problem is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Jul 2024 07:54:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113212/cpu-dont-go-to-sleep" /><item><title>RE: CPU dont go to sleep</title><link>https://devzone.nordicsemi.com/thread/494722?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 07:54:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebfbd4c6-76f8-4407-9876-f4a5228372bb</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="Novo"]&lt;p&gt;&lt;span&gt;If I give it to the working correctly devices, the&amp;nbsp;current is 200micro&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I give them to the faulty devices,&amp;nbsp;the current is 6mA&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;How many faulty devices do you have? Is it like 1 in 100 or like 1 in 10.&lt;/p&gt;
&lt;p&gt;It also depends if you have a custom device or working on the nRF53 DK?&lt;/p&gt;
&lt;p&gt;Can you test your application hex file in the nrf53DK if you have not done that already?&lt;/p&gt;
&lt;p&gt;What I am trying here is to exclude few things to see if we need to focus on the hardware issue or the software issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CPU dont go to sleep</title><link>https://devzone.nordicsemi.com/thread/494712?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 06:46:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a06ec631-764e-4b75-9de1-e384e3676ee8</guid><dc:creator>Novo</dc:creator><description>&lt;p&gt;Hi, thanks for the quick response!&lt;br /&gt;&lt;br /&gt;I&amp;nbsp;given the&amp;nbsp;&lt;span&gt;ble_app_hrs_freertos.hex file to the faulty devices, and they seems to work properly, with current of 200micro.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now say that I have a file: myApp.hex&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I give it to the working correctly devices, the&amp;nbsp;current is 200micro&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I give them to the faulty devices,&amp;nbsp;the current is 6mA&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will check about the SystemView maybe it will be helpful, thanks!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes I understand that I didnt gave you enough info about myApp, I will try to summarize it in more proper and informative way, and will send it.&lt;br /&gt;&lt;br /&gt;Anyway, if you have more ideas in mind to how to debug it, or what the cause might be, I would be happy to hear!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CPU dont go to sleep</title><link>https://devzone.nordicsemi.com/thread/494708?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 06:11:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fb10a78-c24e-49f4-a755-84825440ef37</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&lt;p&gt;I tried the following with the devices&amp;nbsp;&lt;strong&gt;that always&amp;nbsp;&lt;/strong&gt;do has the problem:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Write the&amp;nbsp;example hex of ble_app_hrs_freertos.hex, and the current was&amp;nbsp;200micro, so it seems that the micro controller is fine.&lt;/li&gt;&lt;/ol&gt;[/quote]
&lt;p&gt;Not sure if I understand this first point correct. If you have the hex file that is giving proper power consumption in the devices working correctly and used this hex file in the faulty devices and if that is also working fine, then it seems that the app binary and the chips are fine.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to compare the two hexes which causes correct and faulty behavior?&lt;/p&gt;
&lt;p&gt;Also you can use &lt;a href="https://wiki.segger.com/FreeRTOS_with_SystemView"&gt;SystemView&lt;/a&gt;&amp;nbsp;to understand of there are any contexts or times where the chip is waking up unnecessarily.&lt;/p&gt;
&lt;p&gt;From the description you gave, it is hard for me to narrow down the problem to anything as I do not know anything about your application or the custom boards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>