<?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>Overconsumption when there is no softdevice but with FreeRTOS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64824/overconsumption-when-there-is-no-softdevice-but-with-freertos</link><description>Hello, 
 i&amp;#39;m working on a NRF52810 on which i have ported FreeRTOS because i&amp;#39;m sharing library with another NRF52832 that embeds FreeRTOS too. 
 I&amp;#39;m issueing an overconsomption on this NRF52810 since i removed the softdevice and i don&amp;#39;t know why. I&amp;#39;m</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Aug 2020 10:28:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64824/overconsumption-when-there-is-no-softdevice-but-with-freertos" /><item><title>RE: Overconsumption when there is no softdevice but with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/266435?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 10:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:832774b2-08f1-4d40-84b7-e38320d3a42c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;This pretty much sounds like the workaround for&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Ferrata_nRF52810_Rev1%2FERR%2FnRF52810%2FRev1%2Flatest%2Fanomaly_810_155.html&amp;amp;cp=4_5_1_1_1_13"&gt; ERRATA 155&lt;/a&gt;&amp;nbsp;has been turned on which keeps the clock on, but it looks like it is same for nRF52832 and nRF52810. If you have written code to disable the workaround for the GPIOTE after use, then it should have worked on nRF52810 also. Something does not seem right.&lt;/p&gt;
&lt;p&gt;Can you please check if the code on nRF52810 and nRF5832 has used the workaround for 155 in the same fashion?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overconsumption when there is no softdevice but with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/266396?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 08:38:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d504180-0afb-4632-99f3-2ad7130c8296</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Susheel,&lt;/p&gt;
&lt;p&gt;I finally figured it out .&amp;nbsp; The overconsumption is coming from this piece of code :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    nrf_drv_gpiote_in_config_t config = GPIOTE_CONFIG_IN_SENSE_HITOLO(true);
    config.pull = NRF_GPIO_PIN_PULLUP;
    nrf_drv_gpiote_in_init(IQS263_INT_PIN, &amp;amp;config, interrupt_iqs263_handler);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If i change &amp;quot;true&amp;quot; to &amp;quot;false&amp;quot; in&amp;nbsp;GPIOTE_CONFIG_IN_SENSE_HITOLO(true); the overconsumption disappears.&lt;/p&gt;
&lt;p&gt;The same code is also executed on a nRF52832, and on it, i cannot see the overconsmption, it is only appearing on the nRF52810 !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overconsumption when there is no softdevice but with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/265736?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2020 10:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb00fac1-5440-45a9-b5d8-82a4f202bd6f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Fillau,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If you do it before the clock init&lt;/p&gt;
[quote user=""]I have 4.5uA of consumption[/quote]
&lt;p&gt;This is because you are not starting the lfclk that is required for the rtos tick and sleeping before starting lfclk gives you best measurement since your application is doing nothing.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]But if do it after the clock_init :[/quote][quote user=""]I have around 470uA. Is that normal ?[/quote]
&lt;p&gt;470uA is a lot. I do not think this is normal. And I am not able to replicate this with your project on the nRF52810 DK. I have added the while loop with WFE before and after and I only see couple of uA of difference which should be equal the lfclk powre consumption.&lt;/p&gt;
&lt;p&gt;Are you testing this on a custom board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overconsumption when there is no softdevice but with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/265647?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2020 06:49:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:779c7ad0-0a2d-4a35-af1c-0d46ffe17eb7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, I am downloading the file now and will test this today. Thank you for your patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overconsumption when there is no softdevice but with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/265476?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2020 08:13:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:908f885b-c93b-4fb5-bcef-b8e83c27002c</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;Hi Susheel&lt;br /&gt;Did you succeed to get the file ?&lt;br /&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overconsumption when there is no softdevice but with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/265284?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 10:30:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50073553-4dd9-41e3-86af-813fae0901b2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I have access denied on your drive. I sent a new request to give access&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overconsumption when there is no softdevice but with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/265162?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 15:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:954e36ac-bded-4e78-b655-e0643b2c9fa6</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;Finally, i had to remove some part of the code and i cannot share our github. So i compressed a zip file :&amp;nbsp;&lt;a href="https://drive.google.com/file/d/1mJ1pxp-vbAPyjlg-WIGv5NL7-_-YbR6H/view?usp=sharing"&gt;https://drive.google.com/file/d/1mJ1pxp-vbAPyjlg-WIGv5NL7-_-YbR6H/view?usp=sharing&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Tell me if it is ok for you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overconsumption when there is no softdevice but with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/264892?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 13:29:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26796f88-8937-4e68-ae33-a72e89e40169</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;yes, please do that. I can then try it on my desk to verify it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overconsumption when there is no softdevice but with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/264888?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 13:22:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e346ac3-7857-4bd0-864b-65bd62fab612</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;Yes, it is possible, can i give you&amp;nbsp;guest access in private to our git ? I think it will be the simplest way ? We are uising Segger Embedded Studio with SDK16&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overconsumption when there is no softdevice but with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/264887?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 13:19:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da6403be-5ddf-4861-ba9d-f4d1e7ff63af</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;I first thought about this one but it does&amp;#39;t seem it is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overconsumption when there is no softdevice but with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/264830?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 10:51:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fb36a8e-fa20-42e0-9048-a2dd68a9e3cc</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="Aurel"]Indeed, on 832 i don&amp;#39;t have this overconsumption ...&amp;nbsp;[/quote]
&lt;p&gt;This is confusing. Can you please give me your project so that i can do a quick test on my desk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overconsumption when there is no softdevice but with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/264829?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 10:50:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38a90905-8e43-4026-b338-8fc7f20d345a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Thsi very much sounds like this &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Ferrata_nRF52832_Rev2%2FERR%2FnRF52832%2FRev2%2Flatest%2Fanomaly_832_89.html&amp;amp;cp=4_2_1_0_1_26"&gt;errata&lt;/a&gt; on nRF52832, but i do not see this mentioned in 52810.&lt;/p&gt;
&lt;p&gt;Can you please check to see if you are using TWIM/SPIM with EasyDMA and if yes, can you see if the workaround mentioned in the link works?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overconsumption when there is no softdevice but with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/264729?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 06:50:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cabe289-9e08-4987-bfc4-abdc145115bc</guid><dc:creator>Aurele</dc:creator><description>&lt;p&gt;actually, it was coming from GPIOTE :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    nrf_drv_gpiote_in_config_t config = GPIOTE_CONFIG_IN_SENSE_HITOLO(true);
    config.pull = NRF_GPIO_PIN_PULLUP;
    nrf_drv_gpiote_in_init(IQS263_INT_PIN, &amp;amp;config, interrupt_iqs263_handler);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;if i switch with &amp;quot;GPIOTE_CONFIG_IN_SENSE_HITOLO(false);&amp;quot; there is no longer over consumption on my 810 but i don&amp;#39;t understand why, since this code is runing on both NRF52832 and NRF52810 and don&amp;#39;t have the same behavior ... Indeed, on 832 i don&amp;#39;t have this overconsumption ...&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>