<?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>nRF52840DK SPI Issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125787/nrf52840dk-spi-issues</link><description>I was in the process of evaluating a driver when I noticed I2C communication was not working as expected. I put a probe on the relevant pins and noticed the Voltage on my SCL pin looks like it is misconfigured or being pulled down by something. 
 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Dec 2025 11:36:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125787/nrf52840dk-spi-issues" /><item><title>RE: nRF52840DK SPI Issues</title><link>https://devzone.nordicsemi.com/thread/555983?ContentTypeID=1</link><pubDate>Tue, 02 Dec 2025 11:36:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eace00f9-e1a2-42e2-8057-12709bae166a</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The I²C bus requires pull‑up resistors. The nRF internal pulls are disabled by default; you must either:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;&lt;span&gt;Use external pull‑ups, or&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;&lt;span&gt;Enable internal pull‑ups in the pinctrl for the I2C instance.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In our default device tree of nRF52840 internal bias pull up is not enabled. If you don&amp;#39;t have external pull up resistor in your design, you have to make it enabled in the device tree.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;pinctrl {
    i2c0_default: i2c0_default {
        group1 {
            psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 27)&amp;gt;,
                    &amp;lt;NRF_PSEL(TWIM_SCL, 0, 26)&amp;gt;;
            bias-pull-up;
        };
    };

    i2c0_sleep: i2c0_sleep {
        group1 {
            psels = &amp;lt;NRF_PSEL(TWIM_SDA, 0, 27)&amp;gt;,
                    &amp;lt;NRF_PSEL(TWIM_SCL, 0, 26)&amp;gt;;
            low-power-enable;
        };
    };
};

&amp;amp;arduino_i2c {
    status = &amp;quot;okay&amp;quot;;
    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;;
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK SPI Issues</title><link>https://devzone.nordicsemi.com/thread/555291?ContentTypeID=1</link><pubDate>Mon, 24 Nov 2025 21:44:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9118c721-3b61-43c9-927b-a4bf48b4ebcb</guid><dc:creator>Austinag</dc:creator><description>&lt;p&gt;Here is the entire driver and sample code I am using.&amp;nbsp; To see the example project with the related overlay navigate to BMP585-I2C-SPI_v1.0.0-beta/zephyr/samples/sensor/bmp585.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To build the project exactly like I have it.&amp;nbsp; just build that sample and make sure the app.overlay file is referenced&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/BMP585_2D00_I2C_2D00_SPI_5F00_v1.0.0_2D00_beta.zip"&gt;devzone.nordicsemi.com/.../BMP585_2D00_I2C_2D00_SPI_5F00_v1.0.0_2D00_beta.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK SPI Issues</title><link>https://devzone.nordicsemi.com/thread/555290?ContentTypeID=1</link><pubDate>Mon, 24 Nov 2025 21:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cc642b8-8ca0-4e38-9118-f8ce22e51b95</guid><dc:creator>Austinag</dc:creator><description>&lt;p&gt;Neither of those pins should be used for NFC as the nRF52840DK has NFC pins on P0.09 &amp;amp; P0.10.&lt;br /&gt;&lt;br /&gt;For this test I have nothing connected for this exact reason to make sure nothing is pulled up.&lt;/p&gt;
&lt;p&gt;The line I believe you are referencing is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int-gpios = &amp;lt;&amp;amp;gpio0 3 GPIO_ACTIVE_HIGH&amp;gt;;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This line is used to configure the interrupt pin of the BMP585 device.&amp;nbsp; The I2C pins you are referencing are defined behind the abstraction you mentioned.&amp;nbsp; You can see the actual definitions &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/ncs-v3.1.1/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK SPI Issues</title><link>https://devzone.nordicsemi.com/thread/555289?ContentTypeID=1</link><pubDate>Mon, 24 Nov 2025 21:35:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:321682bd-e81d-4233-bc60-a362da5ec670</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you please send me the board file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840DK SPI Issues</title><link>https://devzone.nordicsemi.com/thread/555219?ContentTypeID=1</link><pubDate>Mon, 24 Nov 2025 13:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee729aeb-8894-46a6-888e-9c63ec347daf</guid><dc:creator>snoopy20</dc:creator><description>&lt;p&gt;Are either of those pins used for the NFC? It&amp;#39;s caught me out before - you need to disable with the relevant fuse flag.&lt;br /&gt;&lt;br /&gt;Potential daft question is the pin connected to anything - is that driving it low?&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know what that config abstraction means but I2C requires pull-ups and disconnected GPIO_HIGH driver. GPIO_ACTIVE_HIGH suggests it&amp;#39;s driven high which is wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>