<?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>nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102050/nrf52832-turn-off-i2c-when-not-in-use</link><description>Hello, 
 i read the following suggestion that says I could use &amp;quot;i2c-gpio, disable-on-idle&amp;quot; does this actually work? 
 
 &amp;amp; i2c0 { 
 mysensor: mysensor @ 19 { 
 compatible = &amp;quot;i2c-device&amp;quot; ; 
 status = &amp;quot;okay&amp;quot; ; 
 reg = &amp;lt; 0x19 &amp;gt;; 
 label = &amp;quot;mysensor&amp;quot; ; 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Oct 2023 22:25:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102050/nrf52832-turn-off-i2c-when-not-in-use" /><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/450157?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2023 22:25:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9da7afb-b7b7-4779-8bf7-cb1e309ab418</guid><dc:creator>Johnny Nguyen</dc:creator><description>&lt;p&gt;Glad I could be of assistance.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/450156?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2023 22:24:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2050abc7-e04d-4d08-9b4b-43ef2c1f7257</guid><dc:creator>jbeh444</dc:creator><description>&lt;p&gt;That worked perfectly!!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/449898?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 16:15:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5984b31b-6bce-4238-9f6d-3cb0a8c8e704</guid><dc:creator>Johnny Nguyen</dc:creator><description>&lt;p&gt;Hey Jared,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am assuming you defined&amp;nbsp;&lt;span&gt;I2C0_NODE earlier in the code?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you try replacing the following?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;- static const struct device *i2c0_dev = DEVICE_DT_GET(DT_NODELABEL(mysensor));
+ static const struct device *i2c0_dev = DEVICE_DT_GET(DT_NODELABEL(i2c0));&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The following links may also help you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://github.com/droidecahedron/i2c_ble_peripheral#device-power-management"&gt;https://github.com/droidecahedron/i2c_ble_peripheral#device-power-management&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/pm/device.html"&gt;Device Power Management &amp;mdash; Zephyr Project documentation (nRF Connect SDK) (nordicsemi.com)&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://github.com/droidecahedron/i2c_ble_peripheral/blob/7f4268522458c7b59da1a278cac39a84ed4d1376/src/si7021.c#L82-L119"&gt;github.com/.../si7021.c&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As an aside, you can insert code blocks in this web forum for easier formatting. (There is syntax selection as well)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1697041028816v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Let me know&amp;nbsp;what happens with that change in the i2c0_dev init.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/449672?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 22:49:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7827b7a-458d-469e-83b8-3bdf286e115b</guid><dc:creator>jbeh444</dc:creator><description>&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;i2c0 { &lt;br /&gt; mysensor: mysensor@19{&lt;br /&gt; compatible = &amp;quot;i2c-device&amp;quot;;&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; reg = &amp;lt; 0x19 &amp;gt;;&lt;br /&gt; label = &amp;quot;mysensor&amp;quot;;&lt;br /&gt; /*Turn off when not in use */&lt;br /&gt; i2c-gpio,disable-on-idle; /*not sure if this works */&lt;br /&gt; &lt;br /&gt; };&lt;br /&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;This is in my overlay file&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;I believe&amp;nbsp;the error is referencing&amp;nbsp;-&amp;gt; pm_device_action_run&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;i2c0_dev&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;PM_DEVICE_ACTION_SUSPEND&lt;/span&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;here is my code (I may be using pm wrong):&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;i2c_dt_spec&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;dev_i2c&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;I2C_DT_SPEC_GET&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;I2C0_NODE&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;/*Power Management Attempts*/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;device&lt;/span&gt;&lt;span&gt; *&lt;/span&gt;&lt;span&gt;i2c0_dev&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;DEVICE_DT_GET&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;DT_NODELABEL&lt;/span&gt;&lt;span&gt;(mysensor));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;/******************************************************************************/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;/*! &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Static variable definition &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;/*! Variable that holds the I2C device address or SPI chip selection */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;uint8_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;dev_addr&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;/******************************************************************************/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;/*! &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;User interface functions &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;int8_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;rslt&lt;/span&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;&amp;nbsp;* I2C read function map to nRF52832 platform&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;BMA4_INTF_RET_TYPE&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;bma4_i2c_read&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;uint8_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;reg_addr&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;uint8_t&lt;/span&gt;&lt;span&gt; *&lt;/span&gt;&lt;span&gt;reg_data&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;uint32_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;len&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; *&lt;/span&gt;&lt;span&gt;intf_ptr&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;{ &amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;//turn on i2c bus &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;//pm_device_action_run(i2c0_dev, PM_DEVICE_STATE_ACTIVE); &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;//add i2c function for nrf52832 &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;uint8_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;buffer&lt;/span&gt;&lt;span&gt;[]&lt;/span&gt;&lt;span&gt; = {&lt;/span&gt;&lt;span&gt;reg_addr&lt;/span&gt;&lt;span&gt;, *&lt;/span&gt;&lt;span&gt;reg_data&lt;/span&gt;&lt;span&gt;}; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;rslt&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;i2c_write_read_dt&lt;/span&gt;&lt;span&gt;(&amp;amp;&lt;/span&gt;&lt;span&gt;dev_i2c&lt;/span&gt;&lt;span&gt;, &amp;amp;&lt;/span&gt;&lt;span&gt;buffer&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;], &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;reg_data&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;len&lt;/span&gt;&lt;span&gt;); &amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;//turn off i2c bus &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;// Disable the I2C peripheral&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;//pm_device_action_run(i2c0_dev, PM_DEVICE_ACTION_SUSPEND); &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;rslt&lt;/span&gt;&lt;span&gt;; &amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/449671?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 22:08:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f692ab7f-fcde-4e2a-99b6-ae28f1019b5b</guid><dc:creator>Johnny Nguyen</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is your&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c0 {  
    mysensor: mysensor@19{
        compatible = &amp;quot;i2c-device&amp;quot;;
        status = &amp;quot;okay&amp;quot;;
        reg = &amp;lt; 0x19 &amp;gt;;
        label = &amp;quot;mysensor&amp;quot;;
        /*Turn off when not in use */
        i2c-gpio,disable-on-idle; /*not sure if this works */
       
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;within the overlay?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If it is any assistance for reference, I had a quick sample using pm api with i2c sensor and ble &lt;a href="https://github.com/droidecahedron/i2c_ble_peripheral/tree/main"&gt;here&lt;/a&gt;&amp;nbsp;I originally made for the nRF5340DK.&amp;nbsp;I originally tested it on a 5340DK, but it builds successfully for the 52_52832dk with some minor adjustments to the device tree overlay in ncs2.4.2, so I was trying to see what the differences in our environments were/applications.&lt;/p&gt;
&lt;p&gt;Given the following error&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\ncs\RevelWear\BMA456W_nRF52832\src\common.c:57: undefined reference to `__device_dts_ord_106&amp;#39;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What is line 57 in src/common.c?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/449670?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 22:03:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adc528f6-1585-488e-aac9-648e2f986b3a</guid><dc:creator>jbeh444</dc:creator><description>&lt;p&gt;* Executing task: nRF Connect: Build: BMA456W_nRF52832/build (active)&lt;/p&gt;
&lt;p&gt;Building BMA456W_nRF52832&lt;br /&gt;C:\Windows\system32\cmd.exe /d /s /c &amp;quot;west build --build-dir c:/ncs/RevelWear/BMA456W_nRF52832/build c:/ncs/RevelWear/BMA456W_nRF52832&amp;quot;&lt;/p&gt;
&lt;p&gt;[0/22] Performing build step for &amp;#39;mcuboot_subimage&amp;#39;&lt;br /&gt;ninja: no work to do.&lt;br /&gt;[1/22] Building C object CMakeFiles/app.dir/src/common.c.obj&lt;br /&gt;[3/20] Linking C static library app\libapp.a&lt;br /&gt;[4/20] Linking C executable zephyr\zephyr_pre0.elf&lt;br /&gt;FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map &lt;br /&gt;cmd.exe /C &amp;quot;cd . &amp;amp;&amp;amp; C:\ncs\toolchains\31f4403e35\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 @CMakeFiles\zephyr_pre0.rsp -o zephyr\zephyr_pre0.elf &amp;amp;&amp;amp; cmd.exe /C &amp;quot;cd /D C:\ncs\RevelWear\BMA456W_nRF52832\build\zephyr &amp;amp;&amp;amp; C:\ncs\toolchains\31f4403e35\opt\bin\cmake.exe -E echo &amp;quot;&amp;quot;&lt;br /&gt;c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: app/libapp.a(common.c.obj): in function `bma4_i2c_read&amp;#39;:&lt;br /&gt;C:\ncs\RevelWear\BMA456W_nRF52832\src\common.c:57: undefined reference to `__device_dts_ord_106&amp;#39;&lt;br /&gt;collect2.exe: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;c:\ncs\RevelWear\BMA456W_nRF52832\build&amp;#39;&lt;/p&gt;
&lt;p&gt;* The terminal process terminated with exit code: 1. &lt;br /&gt; * Terminal will be reused by tasks, press any key to close it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/449669?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 21:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef8cdb67-ac57-4e24-8c24-eb8fb446d66c</guid><dc:creator>Johnny Nguyen</dc:creator><description>&lt;p&gt;Does your error still contain the following warning?&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;49 | pm_device_action_run(&amp;amp;i2c0_dev, PM_DEVICE_STATE_ACTIVE);
| ^~~~~~~~~
| |
| const struct device **
In file included from c:\Users\punkg\RevelWear\BMA456W_nRF52832\src\common.c:19:
C:\ncs\v2.4.0\zephyr\include\zephyr\pm\device.h:353:47: note: expected &amp;#39;const struct device *&amp;#39; but argument is of type &amp;#39;const struct device **&amp;#39;
353 | int pm_device_action_run(const struct device *dev,
| ~~~~~~~~~~~~~~~~~~~~~^~~&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and is it the same exact error as earlier?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/449666?ContentTypeID=1</link><pubDate>Tue, 10 Oct 2023 21:13:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45222fb1-7782-4581-b003-d1429f81447c</guid><dc:creator>jbeh444</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply I got busy with other pieces of the project.&lt;/p&gt;
&lt;p&gt;I placed it in the path like you said.&lt;/p&gt;
[quote userid="107729" url="~/f/nordic-q-a/102050/nrf52832-turn-off-i2c-when-not-in-use/442193"]&lt;span&gt;c:\ncs\&lt;/span&gt;&lt;span&gt;BMA456W_nRF52832\&lt;/span&gt;[/quote]
&lt;p&gt;The same error message as before. I&amp;#39;m also running into a similar problem with my battery device as well (I am on a different ticket for that one).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/442193?ContentTypeID=1</link><pubDate>Mon, 21 Aug 2023 05:30:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4c120ac-c86a-4150-9a13-11a994d95b01</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;Could you try placing the application also within the ncs path? i.e. say,&amp;nbsp;&lt;span&gt;c:\ncs\&lt;/span&gt;&lt;span&gt;BMA456W_nRF52832\ or something similar?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Priyanka&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/442136?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 19:37:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:037f18f5-0af8-43ce-881a-5ee24ed208bc</guid><dc:creator>jbeh444</dc:creator><description>&lt;p&gt;&lt;span&gt;Application -&amp;gt; c:\Users\punkg\RevelWear\BMA456W_nRF52832\&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ncs Folder&amp;nbsp; -&amp;gt; c:\ncs&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/441742?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 05:45:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:310f7008-9dfe-49e6-a42e-000055000145</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;It&amp;#39;s always best to place them in the path of the ncs folder. Please attach the path of your application as well as you ncs installation.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/441724?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 23:24:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a575d2d1-b031-4927-83cc-c84cccebe4f1</guid><dc:creator>jbeh444</dc:creator><description>&lt;p&gt;They are not very close to each other. Should I move the folder in with the ncs test programs?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/441375?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 12:17:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ae6bdb6-7924-4fa4-89f8-7a4bd2c3fca1</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;Where do you place the application? i.e. what is the path of your ncs installation as well as the path in which you place your project?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/441057?ContentTypeID=1</link><pubDate>Sun, 13 Aug 2023 20:23:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df6c25ec-ffcd-4ec7-9d59-39373c05d079</guid><dc:creator>jbeh444</dc:creator><description>&lt;p&gt;seems like the same issue after changing tool chains:&lt;/p&gt;
&lt;p&gt;Building BMA456W_nRF52832&lt;br /&gt;C:\Windows\system32\cmd.exe /d /s /c &amp;quot;west build --build-dir c:/Users/punkg/RevelWear/BMA456W_nRF52832/build c:/Users/punkg/RevelWear/BMA456W_nRF52832&amp;quot;&lt;/p&gt;
&lt;p&gt;[1/11] Building C object CMakeFiles/app.dir/src/common.c.obj&lt;br /&gt;../src/common.c: In function &amp;#39;bma4_i2c_read&amp;#39;:&lt;br /&gt;c:\Users\punkg\RevelWear\BMA456W_nRF52832\src\common.c:49:26: warning: passing argument 1 of &amp;#39;pm_device_action_run&amp;#39; from incompatible pointer type [-Wincompatible-pointer-types]&lt;br /&gt; 49 | pm_device_action_run(&amp;amp;i2c0_dev, PM_DEVICE_STATE_ACTIVE);&lt;br /&gt; | ^~~~~~~~~&lt;br /&gt; | |&lt;br /&gt; | const struct device **&lt;br /&gt;In file included from c:\Users\punkg\RevelWear\BMA456W_nRF52832\src\common.c:19:&lt;br /&gt;C:\ncs\v2.4.0\zephyr\include\zephyr\pm\device.h:353:47: note: expected &amp;#39;const struct device *&amp;#39; but argument is of type &amp;#39;const struct device **&amp;#39;&lt;br /&gt; 353 | int pm_device_action_run(const struct device *dev,&lt;br /&gt; | ~~~~~~~~~~~~~~~~~~~~~^~~&lt;br /&gt;[2/11] Linking C static library app\libapp.a&lt;br /&gt;[3/11] Linking C executable zephyr\zephyr_pre0.elf&lt;br /&gt;FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map &lt;br /&gt;cmd.exe /C &amp;quot;cd . &amp;amp;&amp;amp; C:\ncs\toolchains\v2.3.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr\zephyr_pre0.elf -fuse-ld=bfd -Wl,-T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=C:/Users/punkg/RevelWear/BMA456W_nRF52832/build/zephyr/zephyr_pre0.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a zephyr/subsys/random/libsubsys__random.a zephyr/subsys/bluetooth/common/libsubsys__bluetooth__common.a zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a zephyr/subsys/net/libsubsys__net.a zephyr/drivers/clock_control/libdrivers__clock_control.a zephyr/drivers/console/libdrivers__console.a zephyr/drivers/entropy/libdrivers__entropy.a zephyr/drivers/gpio/libdrivers__gpio.a zephyr/drivers/i2c/libdrivers__i2c.a zephyr/drivers/pinctrl/libdrivers__pinctrl.a zephyr/drivers/serial/libdrivers__serial.a zephyr/drivers/timer/libdrivers__timer.a modules/nrf/lib/multithreading_lock/lib..__nrf__lib__multithreading_lock.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a modules/nrf/subsys/bluetooth/controller/lib..__nrf__subsys__bluetooth__controller.a modules/nrf/subsys/mpsl/init/lib..__nrf__subsys__mpsl__init.a modules/nrf/subsys/mpsl/fem/lib..__nrf__subsys__mpsl__fem.a modules/nrf/drivers/mpsl/clock_control/lib..__nrf__drivers__mpsl__clock_control.a modules/nrf/drivers/mpsl/temp_nrf5/lib..__nrf__drivers__mpsl__temp_nrf5.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a modules/segger/libmodules__segger.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -L&amp;quot;c:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/thumb/v7e-m/nofp&amp;quot; -LC:/Users/punkg/RevelWear/BMA456W_nRF52832/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a C:/ncs/v2.4.0/nrfxlib/crypto/nrf_oberon/lib/cortex-m4/soft-float/liboberon_3.0.13.a -mcpu=cortex-m4 -mthumb -mabi=aapcs -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -Wl,-no-pie C:/ncs/v2.4.0/nrfxlib/softdevice_controller/lib/cortex-m4/soft-float/libsoftdevice_controller_peripheral.a C:/ncs/v2.4.0/nrfxlib/mpsl/lib/cortex-m4/soft-float/libmpsl.a &amp;amp;&amp;amp; cmd.exe /C &amp;quot;cd /D C:\Users\punkg\RevelWear\BMA456W_nRF52832\build\zephyr &amp;amp;&amp;amp; C:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo &amp;quot;&amp;quot;&lt;br /&gt;c:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: app/libapp.a(common.c.obj):(.data.i2c0_dev+0x0): undefined reference to `__device_dts_ord_106&amp;#39;&lt;br /&gt;collect2.exe: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;c:\Users\punkg\RevelWear\BMA456W_nRF52832\build&amp;#39;&lt;/p&gt;
&lt;p&gt;* The terminal process terminated with exit code: 1. &lt;br /&gt; * Terminal will be reused by tasks, press any key to close it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/440825?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 19:28:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45c04754-b2f6-40db-971a-be5246a54199</guid><dc:creator>jbeh444</dc:creator><description>&lt;p&gt;I&amp;#39;ll check this out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/440038?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 06:19:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61f1d570-43bc-4331-affe-c932b5a44d72</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;This might be because you mention that you are using the SDK v2.4.0, but you toolchains show v2.3.0 as seen below:&lt;/p&gt;
[quote user="jbeh444"]/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin[/quote]
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/440016?ContentTypeID=1</link><pubDate>Sun, 06 Aug 2023 20:43:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d9e547c-e502-43d0-b2e3-e078a9075aff</guid><dc:creator>jbeh444</dc:creator><description>&lt;p&gt;1. The error log will be at the end.&lt;/p&gt;
&lt;p&gt;2. I am using VSCode.&lt;/p&gt;
&lt;p&gt;3. SDK is 2.4.&lt;/p&gt;
&lt;p&gt;/*error log below**********************************************************************/&lt;/p&gt;
&lt;p&gt;* Executing task: nRF Connect: Build: BMA456W_nRF52832/build (active)&lt;/p&gt;
&lt;p&gt;Building BMA456W_nRF52832&lt;br /&gt;C:\Windows\system32\cmd.exe /d /s /c &amp;quot;west build --build-dir c:/Users/punkg/RevelWear/BMA456W_nRF52832/build c:/Users/punkg/RevelWear/BMA456W_nRF52832&amp;quot;&lt;/p&gt;
&lt;p&gt;ninja: no work to do.&lt;br /&gt; * Terminal will be reused by tasks, press any key to close it.&lt;/p&gt;
&lt;p&gt;* Executing task: nRF Connect: Flash: BMA456W_nRF52832/build (active)&lt;/p&gt;
&lt;p&gt;Flashing build to 1050346905&lt;br /&gt;C:\Windows\system32\cmd.exe /d /s /c &amp;quot;west flash -d&lt;/p&gt;
&lt;p&gt;BMA456W_nRF52832\build --skip-rebuild --dev-id 1050346905 --erase&amp;quot;&lt;/p&gt;
&lt;p&gt;-- west flash: using runner nrfjprog&lt;br /&gt;-- runners.nrfjprog: mass erase requested&lt;br /&gt;-- runners.nrfjprog: Flashing file: c:\Users\punkg\RevelWear\BMA456W_nRF52832\build\zephyr\zephyr.hex&lt;br /&gt;[ #################### ] 0.193s | Erase file - Done erasing &lt;br /&gt;[ #################### ] 2.715s | Program file - Done programming &lt;br /&gt;[ #################### ] 1.030s | Verify file - Done verifying &lt;br /&gt;Enabling pin reset.&lt;br /&gt;Applying pin reset.&lt;br /&gt;-- runners.nrfjprog: Board with serial number 1050346905 flashed successfully.&lt;br /&gt; * Terminal will be reused by tasks, press any key to close it.&lt;/p&gt;
&lt;p&gt;* Executing task: nRF Connect: Build: BMA456W_nRF52832/build (active)&lt;/p&gt;
&lt;p&gt;Building BMA456W_nRF52832&lt;br /&gt;C:\Windows\system32\cmd.exe /d /s /c &amp;quot;west build --build-dir BMA456W_nRF52832&amp;quot;&lt;/p&gt;
&lt;p&gt;[1/11] Building C object CMakeFiles/app.dir/src/common.c.obj&lt;br /&gt;../src/common.c: In function &amp;#39;bma4_i2c_read&amp;#39;:&lt;br /&gt;BMA456W_nRF52832\src\common.c:49:26: warning: passing argument 1 of &amp;#39;pm_device_action_run&amp;#39; from incompatible pointer type [-Wincompatible-pointer-types]&lt;br /&gt; 49 | pm_device_action_run(&amp;amp;i2c0_dev, PM_DEVICE_STATE_ACTIVE);&lt;br /&gt; | ^~~~~~~~~&lt;br /&gt; | |&lt;br /&gt; | const struct device **&lt;br /&gt;In file included from c:\Users\punkg\RevelWear\BMA456W_nRF52832\src\common.c:19:&lt;br /&gt;C:\ncs\v2.4.0\zephyr\include\zephyr\pm\device.h:353:47: note: expected &amp;#39;const struct device *&amp;#39; but argument is of type &amp;#39;const struct device **&amp;#39;&lt;br /&gt; 353 | int pm_device_action_run(const struct device *dev,&lt;br /&gt; | ~~~~~~~~~~~~~~~~~~~~~^~~&lt;br /&gt;[2/11] Linking C static library app\libapp.a&lt;br /&gt;[3/11] Linking C executable zephyr\zephyr_pre0.elf&lt;br /&gt;FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map &lt;br /&gt;cmd.exe /C &amp;quot;cd . &amp;amp;&amp;amp; C:\ncs\toolchains\v2.3.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr\zephyr_pre0.elf -fuse-ld=bfd -Wl,-T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=C:/Users/punkg/RevelWear/BMA456W_nRF52832/build/zephyr/zephyr_pre0.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a zephyr/subsys/random/libsubsys__random.a zephyr/subsys/bluetooth/common/libsubsys__bluetooth__common.a zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a zephyr/subsys/net/libsubsys__net.a zephyr/drivers/clock_control/libdrivers__clock_control.a zephyr/drivers/console/libdrivers__console.a zephyr/drivers/entropy/libdrivers__entropy.a zephyr/drivers/gpio/libdrivers__gpio.a zephyr/drivers/i2c/libdrivers__i2c.a zephyr/drivers/pinctrl/libdrivers__pinctrl.a zephyr/drivers/serial/libdrivers__serial.a zephyr/drivers/timer/libdrivers__timer.a modules/nrf/lib/multithreading_lock/lib..__nrf__lib__multithreading_lock.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a modules/nrf/subsys/bluetooth/controller/lib..__nrf__subsys__bluetooth__controller.a modules/nrf/subsys/mpsl/init/lib..__nrf__subsys__mpsl__init.a modules/nrf/subsys/mpsl/fem/lib..__nrf__subsys__mpsl__fem.a modules/nrf/drivers/mpsl/clock_control/lib..__nrf__drivers__mpsl__clock_control.a modules/nrf/drivers/mpsl/temp_nrf5/lib..__nrf__drivers__mpsl__temp_nrf5.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a modules/segger/libmodules__segger.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -L&amp;quot;c:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/thumb/v7e-m/nofp&amp;quot; -LC:/Users/punkg/RevelWear/BMA456W_nRF52832/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a C:/ncs/v2.4.0/nrfxlib/crypto/nrf_oberon/lib/cortex-m4/soft-float/liboberon_3.0.13.a -mcpu=cortex-m4 -mthumb -mabi=aapcs -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -Wl,-no-pie C:/ncs/v2.4.0/nrfxlib/softdevice_controller/lib/cortex-m4/soft-float/libsoftdevice_controller_peripheral.a C:/ncs/v2.4.0/nrfxlib/mpsl/lib/cortex-m4/soft-float/libmpsl.a &amp;amp;&amp;amp; cmd.exe /C &amp;quot;cd /D BMA456W_nRF52832\build\zephyr &amp;amp;&amp;amp; C:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo &amp;quot;&amp;quot;&lt;br /&gt;c:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: app/libapp.a(common.c.obj):(.data.i2c0_dev+0x0): undefined reference to `__device_dts_ord_106&amp;#39;&lt;br /&gt;collect2.exe: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE&amp;#39; --build&amp;nbsp;&lt;/p&gt;
&lt;p&gt;* The terminal process terminated with exit code: 1. &lt;br /&gt; * Terminal will be reused by tasks, press any key to close it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/439597?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2023 05:40:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c120235-6633-4be7-820e-ac5e85654d24</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;Could you attach the entire error log?&lt;/p&gt;
&lt;p&gt;Are you trying in VSCode or west?&lt;/p&gt;
&lt;p&gt;Also, which SDK version are you using?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/439337?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2023 16:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10859b41-9bc7-43d4-973e-bd7ddaf533f4</guid><dc:creator>jbeh444</dc:creator><description>&lt;p&gt;:58: undefined reference to `__device_dts_ord_106&amp;#39;&lt;br /&gt;collect2.exe: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/439224?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2023 10:48:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f510f6a-d7b6-44c4-af28-63f065c30aa0</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;You can call &lt;span&gt;&lt;span dir="ltr"&gt;PM_DEVICE_ACTION_SUSPEND. So it should look similar to this:&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;static const struct device *i2c1_dev = DEVICE_DT_GET(DT_NODELABEL(i2c1));&lt;/p&gt;
&lt;p&gt;pm_device_action_run(i2c1_dev, PM_DEVICE_ACTION_SUSPEND);&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/437539?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 18:18:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d86b0cc7-1464-4b04-b103-6344587fe925</guid><dc:creator>jbeh444</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for your help. I was hoping you could help me create an instance of the device. I am having trouble understanding how to create the pm_device. I used the device tree to create an i2c node and need to understand how to use that node to create a pm_device.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;pm_device&lt;/span&gt;&lt;span&gt; *&lt;/span&gt;&lt;span&gt;i2c_dev&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;PM_DEVICE_DT_GET&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;I2C0_NODE&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&amp;lt;- doesn&amp;#39;t work.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thank you for all of your help.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 turn off I2C when not in use.</title><link>https://devzone.nordicsemi.com/thread/437480?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2023 13:09:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c6eb95a-7fdf-45be-81ba-5de175333302</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;Please take a look at the&lt;a href="https://docs.zephyrproject.org/apidoc/latest/group__subsys__pm__device.html"&gt; Power Management &lt;/a&gt;for this use case. Please also take a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93542/nrf5340-tmp116-power-management"&gt;this ticket&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>