<?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>NCS APDS9960 Sample Failure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106376/ncs-apds9960-sample-failure</link><description>OS: Windows 10 
 NCS: 2.4.2 We are evaluating adding the APDS9960 to our existing nRF52833 based application, but can not get the APDS9960 functioning. We are interfacing an nRF52833 DK to the Adafruit APDS9960 board ( https://www.adafruit.com/product</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 May 2024 14:42:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106376/ncs-apds9960-sample-failure" /><item><title>RE: NCS APDS9960 Sample Failure</title><link>https://devzone.nordicsemi.com/thread/486945?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 14:42:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2782b25-73b0-468a-a225-c7dc2f8f4ee4</guid><dc:creator>dev_2004_se</dc:creator><description>&lt;p&gt;Hi Bryan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am having the same problem. Have you solved it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS APDS9960 Sample Failure</title><link>https://devzone.nordicsemi.com/thread/464525?ContentTypeID=1</link><pubDate>Wed, 17 Jan 2024 08:33:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e67fefc-8718-4b3e-9986-abceef864272</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update. It is strange that the SDK driver did not work with your setup but worked fine with the reel board. I wish I knew why, but I understand you may not want to continue spending time on this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that if you plan to implement the driver without using the Zephyr API (i.e. nrfx TWIM driver or with direct register access), you must connect TWIM IRQ vector to your TWIM IRQ handler&amp;nbsp;with the&amp;nbsp;IRQ_CONNECT() macro like in this example:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/c2784307ce7f6016105eddf47f786b913ec1cfb3/samples/boards/nrf/nrfx/src/main.c#L40C2-L40C13"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/c2784307ce7f6016105eddf47f786b913ec1cfb3/samples/boards/nrf/nrfx/src/main.c#L40C2-L40C13&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS APDS9960 Sample Failure</title><link>https://devzone.nordicsemi.com/thread/464462?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 16:49:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a105818a-80b1-47de-9fb9-7d5cc2ffe945</guid><dc:creator>Bryan</dc:creator><description>&lt;p&gt;Thanks for the help, but I am giving up and simply writing my own driver.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS APDS9960 Sample Failure</title><link>https://devzone.nordicsemi.com/thread/463705?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 10:32:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74e9a6c3-4389-4118-87c5-9b0533d281ad</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="bryano"]I wondered where the &amp;quot;avago_apds9960&amp;quot;&amp;nbsp; device tree definition referenced in main() was located.[/quote]
&lt;p&gt;Special characters in the value assigned to the comptatible property, such as commas, are replaced with underscores to enable the symbol to be used in C. Therefore, if you want to find DT board files with this compatible property, you need to search for files containing &amp;#39;avago,apds9960&amp;#39; instead of &lt;span&gt;&amp;#39;avago_apds9960&amp;#39;&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1704968621966v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Here is where it is defined for the reel board:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/883c3709f9c8fd845a8dfa39d2583d5c665a915b/boards/arm/reel_board/dts/reel_board.dtsi#L151"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/883c3709f9c8fd845a8dfa39d2583d5c665a915b/boards/arm/reel_board/dts/reel_board.dtsi#L151&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS APDS9960 Sample Failure</title><link>https://devzone.nordicsemi.com/thread/463638?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 19:57:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dd48a8d-f11d-45ec-b566-fb89a6d46cc0</guid><dc:creator>Bryan</dc:creator><description>&lt;p&gt;Again switched off this for other tasks.&amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;br /&gt;After you stated that the project ran on the reel board, I built for that build configuration.&amp;nbsp; As expected, it built without errors.&amp;nbsp; &amp;nbsp;I wondered where the &amp;quot;avago_apds9960&amp;quot;&amp;nbsp; device tree definition referenced in main() was located.&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;dev &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;DEVICE_DT_GET_ONE&lt;/span&gt;&lt;span&gt;(avago_apds9960);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;When I searched for it in the NCS v2.5.0 directory, it returned...&lt;br /&gt;&lt;br /&gt;C:\Users\Bryan\ncs&amp;gt;findstr /s avago_apds9960 .\v2.5.0\*&lt;br /&gt;.\v2.5.0\zephyr\drivers\sensor\apds9960\apds9960.c:#define DT_DRV_COMPAT avago_apds9960&lt;br /&gt;.\v2.5.0\zephyr\samples\boards\reel_board\mesh_badge\src\periphs.c: DEVICE_DT_GET_ONE(avago_apds9960),&lt;br /&gt;.\v2.5.0\zephyr\samples\sensor\apds9960\src\main.c: dev = DEVICE_DT_GET_ONE(avago_apds9960);&lt;br /&gt;&lt;br /&gt;None of these have any device tree definition for &amp;quot;&lt;span&gt;avago_apds9960&amp;quot;.&lt;br /&gt;&lt;br /&gt;What I suspect is causing my application on the nRF52833 DK to behave like this is because I created my own&amp;nbsp;&amp;quot;avago_apds9960&amp;quot; definition in the nrf52833dk_nrf52833.overlay file.&amp;nbsp; It builds without error, but something&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;apds9960&lt;/span&gt;&lt;span&gt;@&lt;/span&gt;&lt;span&gt;39&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;compatible&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;avago,apds9960&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;reg&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;0x39&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;interrupt-parent&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;gpio0&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;// &amp;nbsp; &amp;nbsp; &amp;nbsp;interrupts = &amp;lt;16 1&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;int-gpios&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt; &lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;gpio0&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;GPIO_PULL_UP&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;GPIO_ACTIVE_LOW&lt;/span&gt;&lt;span&gt;)&amp;gt;;&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;p&gt;My two questions are:&lt;br /&gt;&lt;br /&gt;Where is the device tree definition in the reel board project?&lt;br /&gt;What do I need to do in my nRF52833 DK based project to point to the avago_apds9960 device tree def?&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS APDS9960 Sample Failure</title><link>https://devzone.nordicsemi.com/thread/460516?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2023 10:52:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11096a32-f397-4a00-b361-7d441c7a40b1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;A &lt;span&gt;colleague&lt;/span&gt; of mine was able to run the&amp;nbsp;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;a title="https://developer.nordicsemi.com/nrf_connect_sdk/doc/2.5.0/zephyr/samples/sensor/apds9960/readme.html" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.0/zephyr/samples/sensor/apds9960/README.html" rel="noopener noreferrer" target="_blank"&gt;apds9960 sample&lt;/a&gt;&amp;nbsp;on his&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/boards/arm/reel_board/doc/index.html"&gt;Reel board&lt;/a&gt;&amp;nbsp;without any issues:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1702635835398v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This was done using SDK v2.5.0 with no modifications to the sample application. This does not really help explain the problem you are facing, but it does indicate that the driver is not broken.&lt;/p&gt;
[quote user="bryano"]2. First, there is an odd behavior.&amp;nbsp; The k_sleep(K_MSEC(5000)) isn&amp;#39;t five seconds.&amp;nbsp; It is more than 1 minute.[/quote]
&lt;p&gt;Have you tried pausing execution during debugging to see where the program hangs when the delay exceeds a minute? I don&amp;#39;t see anything in this sample that should block the main thread.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS APDS9960 Sample Failure</title><link>https://devzone.nordicsemi.com/thread/460438?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2023 19:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50615762-93a1-489f-a004-c3c80653b0aa</guid><dc:creator>Bryan</dc:creator><description>&lt;p&gt;There is something fundamentally wrong with the NCS (using 2.5.0) Zephyr sensor library for the APDS9960.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I determined that the cause of the huge one minute sleep was that debugging was enabled in the build configuration and I flashed the device instead of debugging.&amp;nbsp; I disabled debug optimization and the k_sleep was better, but was still five seconds instead of the expected one second.&lt;br /&gt;&lt;br /&gt;I even went so far as to create an entirely new project based off blinky and created a separate thread for the ADPS9960.&amp;nbsp; The blinky flash rate went down dramatically.&lt;br /&gt;&lt;br /&gt;The higher ups really want to use this device in our system.&amp;nbsp; I am stumped.&amp;nbsp;&amp;nbsp; Any suggestions?&amp;nbsp; I really don&amp;#39;t want (or have time) to write a custom device driver.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS APDS9960 Sample Failure</title><link>https://devzone.nordicsemi.com/thread/460167?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 14:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db171cd2-e33d-4de1-9696-cbb88a083606</guid><dc:creator>Bryan</dc:creator><description>&lt;p&gt;Unfortunately, that did not help.&amp;nbsp; I am really surprised this doesn&amp;#39;t simply work since it is originally based off the nRF52840-based reel board.&lt;br /&gt;&lt;br /&gt;Do you have any idea why the k_sleep is so messed up?&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;The k_sleep(K_MSEC(5000)) isn&amp;#39;t five seconds.&amp;nbsp; It is more than 1 minute.&amp;nbsp; I am wondering if this is a symptom of the underlying problem.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS APDS9960 Sample Failure</title><link>https://devzone.nordicsemi.com/thread/460129?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 12:01:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a6842fc-615c-477f-a69b-a604b1a0f4f8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;No problem. However, I don’t have a good explanation for this behavior. It&amp;#39;s strange that it reads the device ID correctly but fails to get a valid sensor reading. As a test, could you try using the TWIM driver to see if it makes any difference? You can do this by replacing &amp;#39;compatible = &amp;quot;nordic,nrf-twi&amp;quot;;&amp;#39; with &amp;#39;compatible = &amp;quot;nordic,nrf-twim&amp;quot;;&amp;#39;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS APDS9960 Sample Failure</title><link>https://devzone.nordicsemi.com/thread/459975?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 15:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d62324d9-bf30-4bc1-8aa1-f67901e940aa</guid><dc:creator>Bryan</dc:creator><description>&lt;p&gt;Thanks for the fast response.&amp;nbsp; &amp;nbsp;Sorry for&amp;nbsp;my&amp;nbsp;slow response.&amp;nbsp; We had a company emergency that I was pulled into.&amp;nbsp; I understand it is hard to debug remotely and without the setup, so I appreciate your patience.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;1. I had already tried the standard speed with the same result.&amp;nbsp; I forgot to mention it.&lt;/p&gt;
&lt;p&gt;2. First, there is an odd behavior.&amp;nbsp; The k_sleep(K_MSEC(5000)) isn&amp;#39;t five seconds.&amp;nbsp; It is more than 1 minute.&lt;br /&gt;&lt;br /&gt;2. I had to upgrade to NCS 2.5.0 to get the&amp;nbsp;&lt;span&gt;CONFIG_NRFX_TWI_LOG&amp;nbsp;option.&amp;nbsp; I started getting stack overflow errors, so I increased the main stack size.&amp;nbsp; Here are my proj.conf settings.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PRINTK&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_GPIO&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_I2C&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_NRFX_TWI_LOG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SENSOR&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LOG&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_SENSOR_LOG_LEVEL_INF=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_I2C_LOG_LEVEL_INF=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_I2C_LOG_LEVEL_ERR&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_APDS9960_TRIGGER_GLOBAL_THREAD&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PM_DEVICE&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MAIN_STACK_SIZE&lt;/span&gt;&lt;span&gt;=16384&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;3. I am not seeing any errors on the I2C bus.&amp;nbsp; In the image you can see the first I2C transaction to get the correct&amp;nbsp; APDS9960 device ID in the first read returning (0xAB).&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1702395722666v3.png" alt=" " /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;4.&amp;nbsp; Here is the output log.&amp;nbsp; It always locks after three I2C transfers the second time through the loop.&amp;nbsp; The first time there are six.&lt;br /&gt;&lt;br /&gt;[00:00:00.359,008] &amp;lt;inf&amp;gt; NRFX_TWI: Function: nrfx_twi_init, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:00.366,333] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;--- 124 messages dropped ---&lt;br /&gt;[00:00:00.376,098] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 1, secondary: 0.&lt;br /&gt;[00:00:00.376,159] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:00.376,373] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_TX.&lt;br /&gt;[00:00:00.376,403] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 2, secondary: 0.&lt;br /&gt;[00:00:00.376,434] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:00.376,647] &amp;lt;inf&amp;gt; NRFX_TWI: Instance disabled: 0.&lt;br /&gt;[00:00:00.376,678] &amp;lt;inf&amp;gt; NRFX_TWI: Instance enabled: 0.&lt;br /&gt;[00:00:00.376,739] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_TX.&lt;br /&gt;[00:00:00.376,739] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 1, secondary: 0.&lt;br /&gt;[00:00:00.376,800] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:00.377,014] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_TX.&lt;br /&gt;[00:00:00.377,044] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 2, secondary: 0.&lt;br /&gt;[00:00:00.377,105] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:00.377,319] &amp;lt;inf&amp;gt; NRFX_TWI: Instance disabled: 0.&lt;br /&gt;[00:00:00.377,349] &amp;lt;inf&amp;gt; NRFX_TWI: Instance enabled: 0.&lt;br /&gt;[00:00:00.377,380] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_TX.&lt;br /&gt;[00:00:00.377,410] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 1, secondary: 0.&lt;br /&gt;[00:00:00.377,441] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:00.377,685] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_RX.&lt;br /&gt;[00:00:00.377,685] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 1, secondary: 0.&lt;br /&gt;[00:00:00.377,746] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:00.377,990] &amp;lt;inf&amp;gt; NRFX_TWI: Instance disabled: 0.&lt;br /&gt;[00:00:00.377,990] &amp;lt;inf&amp;gt; NRFX_TWI: Instance enabled: 0.&lt;br /&gt;[00:00:00.378,051] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_TX.&lt;br /&gt;[00:00:00.378,051] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 2, secondary: 0.&lt;br /&gt;[00:00:00.378,112] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:00.378,448] &amp;lt;inf&amp;gt; NRFX_TWI: Instance disabled: 0.&lt;br /&gt;*** Booting nRF Connect SDK v2.5.0 ***&lt;br /&gt;APDS9960 sample application&lt;br /&gt;here i am&lt;br /&gt;start sleep&lt;br /&gt;end sleep&lt;br /&gt;[00:00:05.378,570] &amp;lt;inf&amp;gt; NRFX_TWI: Instance enabled: 0.&lt;br /&gt;--- 13 messages dropped ---&lt;br /&gt;[00:00:05.378,692] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_TX.&lt;br /&gt;[00:00:05.378,692] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 1, secondary: 0.&lt;br /&gt;[00:00:05.378,723] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:05.378,723] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_RX.&lt;br /&gt;[00:00:05.378,723] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 1, secondary: 0.&lt;br /&gt;[00:00:05.378,753] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:05.378,753] &amp;lt;inf&amp;gt; NRFX_TWI: Instance disabled: 0.&lt;br /&gt;[00:00:05.378,753] &amp;lt;inf&amp;gt; NRFX_TWI: Instance enabled: 0.&lt;br /&gt;[00:00:05.378,784] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_TX.&lt;br /&gt;[00:00:05.378,784] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 1, secondary: 0.&lt;br /&gt;[00:00:05.378,784] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:05.378,814] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_RX.&lt;br /&gt;[00:00:05.378,814] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 1, secondary: 0.&lt;br /&gt;[00:00:05.378,814] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:05.378,814] &amp;lt;inf&amp;gt; NRFX_TWI: Instance disabled: 0.&lt;br /&gt;[00:00:05.378,845] &amp;lt;inf&amp;gt; NRFX_TWI: Instance enabled: 0.&lt;br /&gt;[00:00:05.378,845] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_TX.&lt;br /&gt;[00:00:05.378,845] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 2, secondary: 0.&lt;br /&gt;[00:00:05.378,845] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:05.378,875] &amp;lt;inf&amp;gt; NRFX_TWI: Instance disabled: 0.&lt;br /&gt;[00:00:05.378,875] &amp;lt;inf&amp;gt; NRFX_TWI: Instance enabled: 0.&lt;br /&gt;[00:00:05.378,875] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_TX.&lt;br /&gt;[00:00:05.378,875] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 2, secondary: 0.&lt;br /&gt;[00:00:05.378,906] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:05.378,906] &amp;lt;inf&amp;gt; NRFX_TWI: Instance disabled: 0.&lt;br /&gt;sensor_sample fetch PASSED&lt;br /&gt;start SENSOR_CHAN_LIGHT&lt;br /&gt;start SENSOR_CHAN_PROX&lt;br /&gt;ambient light intensity 0, proximity 0&lt;br /&gt;here i am&lt;br /&gt;start sleep&lt;br /&gt;end sleep&lt;br /&gt;[00:00:10.378,967] &amp;lt;inf&amp;gt; NRFX_TWI: Instance enabled: 0.&lt;br /&gt;[00:00:10.378,967] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_TX.&lt;br /&gt;[00:00:10.378,967] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 1, secondary: 0.&lt;br /&gt;[00:00:10.378,967] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:10.378,967] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_RX.&lt;br /&gt;[00:00:10.378,967] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 1, secondary: 0.&lt;br /&gt;[00:00:10.378,967] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:10.379,028] &amp;lt;inf&amp;gt; NRFX_TWI: Instance disabled: 0.&lt;br /&gt;[00:00:10.379,028] &amp;lt;inf&amp;gt; NRFX_TWI: Instance enabled: 0.&lt;br /&gt;[00:00:10.379,028] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer type: XFER_TX.&lt;br /&gt;[00:00:10.379,028] &amp;lt;inf&amp;gt; NRFX_TWI: Transfer buffers length: primary: 2, secondary: 0.&lt;br /&gt;[00:00:10.379,028] &amp;lt;wrn&amp;gt; NRFX_TWI: Function: nrfx_twi_xfer, error code: NRFX_SUCCESS.&lt;br /&gt;[00:00:10.379,028] &amp;lt;inf&amp;gt; NRFX_TWI: Instance disabled: 0.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS APDS9960 Sample Failure</title><link>https://devzone.nordicsemi.com/thread/459177?ContentTypeID=1</link><pubDate>Wed, 06 Dec 2023 12:42:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf4be7bf-a43c-49a3-a4c6-6f26c3471cf7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have this sensor to test with, unfortunately. However, if you haven&amp;#39;t tried it already, please try changing the bitrate from 400K to 100K by switching from &amp;#39;I2C_BITRATE_FAST&amp;#39; to &amp;#39;I2C_BITRATE_STANDARD&amp;#39; in your devicetree overlay.&amp;nbsp;Additionaly, please try to enable&amp;nbsp;CONFIG_NRFX_TWI_LOG to see if you get any log messages from the I2C driver.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>