<?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>I2C scanner readouts fail on XIAO nrf52840 code developped in VSCode/nrfConnect/Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/128102/i2c-scanner-readouts-fail-on-xiao-nrf52840-code-developped-in-vscode-nrfconnect-zephyr</link><description>Hi. 
 I&amp;#39;m fighting to get an i2c scanner (re)expose external devices&amp;#39; hex addresses on an Xiao nrf52840 board under VsCode nrfConnect (the basic board, not the Sense version). 
 I say (re) expose because my code initially ran fine displaying i2c connected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 May 2026 10:23:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/128102/i2c-scanner-readouts-fail-on-xiao-nrf52840-code-developped-in-vscode-nrfconnect-zephyr" /><item><title>RE: I2C scanner readouts fail on XIAO nrf52840 code developped in VSCode/nrfConnect/Zephyr</title><link>https://devzone.nordicsemi.com/thread/566247?ContentTypeID=1</link><pubDate>Tue, 12 May 2026 10:23:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f922b861-11c7-48b8-aac6-76bd82ee7eab</guid><dc:creator>MarcusParis</dc:creator><description>&lt;p&gt;@Nordic team. No need to spend time on this anymore. Solved by your AI recommendations I followed to the letter.The culprit was my overlay file and nothing else. Changed it as suggested, and it works nicely upfront. I2C address of connected device shows-up now (0x77).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
    aliases {
        myi2c = &amp;amp;i2c0;
    };
};

&amp;amp;i2c0{
    compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
    status = &amp;quot;okay&amp;quot;;
    clock-frequency = &amp;lt;I2C_BITRATE_STANDARD&amp;gt;;
    pinctrl-0 = &amp;lt;&amp;amp;i2c0_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;i2c0_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;pinctrl {
    i2c0_default: i2c0_default {
        group1 {
            psels = &amp;lt;NRF_PSEL(TWIM_SCL, 0, 5)&amp;gt;,  
                    &amp;lt;NRF_PSEL(TWIM_SDA, 0, 4)&amp;gt;;
        };
    };
    i2c0_sleep: i2c0_sleep {
        group1 {
            psels = &amp;lt;NRF_PSEL(TWIM_SCL, 0, 5)&amp;gt;,
                    &amp;lt;NRF_PSEL(TWIM_SDA, 0, 4)&amp;gt;;
            low-power-enable;
        };
    };
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>