<?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>nRF9160: LIS2DW12 high current consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85119/nrf9160-lis2dw12-high-current-consumption</link><description>Hi, 
 
 OS: Windows 10 Editor: SEGGER Embedded Studio for ARM (Nordic Edition) V5.68 (64-bit) nrfjprog version: 10.15.3 external JLinkARM.dll version: 7.58b nRF Connect SDK version: 1.9.0 nRF9160 modem firmware version: 1.2.7 
 We have STMicroelectonics</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Mar 2022 09:37:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85119/nrf9160-lis2dw12-high-current-consumption" /><item><title>RE: nRF9160: LIS2DW12 high current consumption</title><link>https://devzone.nordicsemi.com/thread/357078?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2022 09:37:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a8db2da-da2d-4751-b3f4-6593a08aa3fa</guid><dc:creator>anicare-tero</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/stian"&gt;Stian Røed Hafskjold&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Maybe I didn&amp;#39;t read the&amp;nbsp;&lt;span&gt;sense-edge-mask description enough well and just assumed it should be int because the type is defined as int there.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But I defined &amp;quot; sense-edge-mask = &amp;lt;(1 &amp;lt;&amp;lt; 29)&amp;gt;; &amp;quot; in dts and that fixes the problem, thanks a lot!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR,&lt;br /&gt;Tero&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: LIS2DW12 high current consumption</title><link>https://devzone.nordicsemi.com/thread/356705?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2022 17:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2523a4be-4325-4007-b0b5-6e009259ce61</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, the sense-edge-mask property should contain the &lt;em&gt;bitmask&lt;/em&gt; of the pins you want to configure with the SENSE event. So the following configuration would set pin 29 to not use GPIOTE IN event:&lt;/p&gt;
&lt;pre&gt;&amp;amp;gpio0 {&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;....&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sense-edge-mask = &amp;lt;(1 &amp;lt;&amp;lt; 29)&amp;gt;;&lt;br /&gt;};&lt;/pre&gt;
&lt;p&gt;This way you can add several pins to the same field:&lt;/p&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sense-edge-mask = &amp;lt;((1 &amp;lt;&amp;lt; 29) | (1 &amp;lt;&amp;lt; 30))&amp;gt;;&lt;/pre&gt;
&lt;p&gt;Or you can use hex values if that&amp;#39;s easier for you. This is the mask for pin 29:&lt;/p&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sense-edge-mask = &amp;lt;0x20000000&amp;gt;;&lt;/pre&gt;
&lt;p&gt;Your workarounds are working in this specific case, but you are &amp;quot;fixing&amp;quot; the wrong part of the if statement.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Stian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>