<?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>inv_sqrt() function will  increases power</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88322/inv_sqrt-function-will-increases-power</link><description>1.SDK:SDK17.1 
 2.IAR V9.2 
 3. 
 static float inv_sqrt(float x) { float xhalf = 0.5f * x; int i = *(int *)&amp;amp;x; 
 i = 0x5f375a86 - (i &amp;gt;&amp;gt; 1); // this is magic. x = *(float *)&amp;amp;i; x = x * (1.5f - xhalf * x * x); // 1st newton iteration. x = x * (1.5f - xhalf</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 May 2022 12:05:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88322/inv_sqrt-function-will-increases-power" /><item><title>RE: inv_sqrt() function will  increases power</title><link>https://devzone.nordicsemi.com/thread/370199?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 12:05:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b8db9a5-a9a7-4a48-abcc-6cb822e2771c</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I provided a link for you previously. Here it is again - &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Ferrata_nRF52840_Rev3%2FERR%2FnRF52840%2FRev3%2Flatest%2Fanomaly_840_87.html&amp;amp;cp=4_0_1_0_1_6"&gt;workaround&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: inv_sqrt() function will  increases power</title><link>https://devzone.nordicsemi.com/thread/370193?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 11:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f073ef0b-cdc0-40c3-a9f3-1280daeb8bfd</guid><dc:creator>eview</dc:creator><description>&lt;p&gt;what&amp;#39;s it&amp;nbsp;&lt;span&gt;mentioned? do you show the code?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: inv_sqrt() function will  increases power</title><link>https://devzone.nordicsemi.com/thread/370176?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 11:05:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:996194b6-a833-4a3c-ba04-5d14c8529066</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You could try applying mentioned workaround before going into the sleep mode.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: inv_sqrt() function will  increases power</title><link>https://devzone.nordicsemi.com/thread/370165?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 10:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39611249-bd9b-4c6c-bdb9-559d436cb974</guid><dc:creator>eview</dc:creator><description>&lt;p&gt;how to fix? what function patch the FreeRTOS idle thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: inv_sqrt() function will  increases power</title><link>https://devzone.nordicsemi.com/thread/370120?ContentTypeID=1</link><pubDate>Tue, 31 May 2022 07:46:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc454243-0e77-4800-8a4e-17861e23d775</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;The issue that you reported is FPU related with existing &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Ferrata_nRF52840_Rev3%2FERR%2FnRF52840%2FRev3%2Flatest%2Fanomaly_840_87.html&amp;amp;cp=4_0_1_0_1_6"&gt;workaround&lt;/a&gt;. However, since you use FreeRTOS, it might be that you need to patch FreeRTOS idle thread.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: inv_sqrt() function will  increases power</title><link>https://devzone.nordicsemi.com/thread/369936?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 10:09:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c11b01e-ccc4-48a0-b56f-e5f8fb350ae9</guid><dc:creator>eview</dc:creator><description>&lt;p&gt;Please check the docx documentation&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5826.nRF52840-lowpower.docx"&gt;devzone.nordicsemi.com/.../5826.nRF52840-lowpower.docx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: inv_sqrt() function will  increases power</title><link>https://devzone.nordicsemi.com/thread/369930?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 09:26:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daf8a824-2e9d-4c3b-aeb4-ee1898f9b988</guid><dc:creator>eview</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF52840-lowpower.docx"&gt;devzone.nordicsemi.com/.../nRF52840-lowpower.docx&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: inv_sqrt() function will  increases power</title><link>https://devzone.nordicsemi.com/thread/369912?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 08:50:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5afb3e8-b30e-47b3-9d72-d9b0aed306cd</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Do you use nRF52840-DK or a custom board?&lt;br /&gt;&lt;br /&gt;What is the normal current that you get with ble_app_beacon?&lt;br /&gt;&lt;br /&gt;Could you please provide more information about your measurement setup?&lt;br /&gt;&lt;br /&gt;Do you measure average or peak current?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: inv_sqrt() function will  increases power</title><link>https://devzone.nordicsemi.com/thread/369837?ContentTypeID=1</link><pubDate>Sat, 28 May 2022 01:21:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8004ad83-2411-4761-af38-dbc7683f4737</guid><dc:creator>eview</dc:creator><description>&lt;p&gt;I still don&amp;#39;t know how to fix it.&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;I only execute this function once&lt;/p&gt;
&lt;p&gt;2.No&amp;nbsp;&lt;span&gt;&amp;nbsp;FPU interrupts&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;a. It is 5mA&lt;/p&gt;
&lt;p&gt;static float inv_sqrt(float x)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i = *(int *)&amp;amp;x;&lt;/p&gt;
&lt;p&gt;i = 0x5f375a86 - (i &amp;gt;&amp;gt; 1); // this is magic.&lt;br /&gt;x = *(float *)&amp;amp;i;&lt;br /&gt;return 1 / x;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;b. It is normal, is it use FPU?&lt;/p&gt;
&lt;p&gt;static float inv_sqrt(float x)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i = *(int *)&amp;amp;x;&lt;br /&gt;x = *(float *)&amp;amp;i;&lt;br /&gt;return 1 / x;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;c.It&amp;nbsp;&lt;span&gt;is normal, is it use FPU?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;static float inv_sqrt(float x)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int i = *(int *)&amp;amp;x;&lt;/p&gt;
&lt;p&gt;i = 0x5f375a86 - (i &amp;gt;&amp;gt; 1); // this is magic.&lt;br /&gt;x = *(float *)&amp;amp;i;&lt;br /&gt;return&amp;nbsp; x;&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: inv_sqrt() function will  increases power</title><link>https://devzone.nordicsemi.com/thread/369785?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 12:45:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc339f76-442c-4c49-ab71-53b876686daf</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;What is normal current when you use ble_app_beacon?&lt;br /&gt;&lt;br /&gt;This issue might be related to Floating Point Unit (FPU). &lt;br /&gt;You could take a look at these two cases - &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/12524/fpu-current"&gt;first&lt;/a&gt;, and &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/75045/increased-power-consumption-due-to-fpu-even-with-fpu-interrupt-handling"&gt;second&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;How long do you use FPU? &lt;br /&gt;Do you have any FPU interrupts?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: inv_sqrt() function will  increases power</title><link>https://devzone.nordicsemi.com/thread/369748?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 10:31:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c10a8c3-8a74-460c-a68a-f200539c8c4b</guid><dc:creator>eview</dc:creator><description>&lt;p&gt;IAR V9.20&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>