<?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>SDA and SCL pins not as defined in overlay file in nRF9160DK.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87957/sda-and-scl-pins-not-as-defined-in-overlay-file-in-nrf9160dk</link><description>Hi, I&amp;#39;m trying to connect an external I2C device to the nrf9160DK and read some registers. I&amp;#39;m using NCS v1.9.1. 
 I have my file nrf9160dk_nrf9160_ns.overlay defined like this 
 
 To see if the I2C bus is beeing initialize correctly I created my main</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 May 2022 10:08:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87957/sda-and-scl-pins-not-as-defined-in-overlay-file-in-nrf9160dk" /><item><title>RE: SDA and SCL pins not as defined in overlay file in nRF9160DK.</title><link>https://devzone.nordicsemi.com/thread/368272?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 10:08:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f652b664-4e2c-4b44-8692-6db201fdb09d</guid><dc:creator>Eneko </dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. Maybe the&amp;nbsp;nrf9160DK&amp;nbsp;has some peripheral enabled by default that uses that memory. I was following the tutorial linked in this post&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70327/i2c-pin-connections-on-nrf9160-dk,"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/70327/i2c-pin-connections-on-nrf9160-dk,&lt;/a&gt;&amp;nbsp;that I see is now updated to use i2c2.&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: SDA and SCL pins not as defined in overlay file in nRF9160DK.</title><link>https://devzone.nordicsemi.com/thread/368182?ContentTypeID=1</link><pubDate>Wed, 18 May 2022 05:50:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1fe72d3-ed61-44be-9c57-b27ecfdb9637</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;Hello,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Eneko Montero"]I don&amp;#39;t know why i2c1 is not working but with i2c2 it works correctly.[/quote]
&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;Possibly, you have another peripheral enabled that uses the same &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fmemory.html&amp;amp;cp=2_0_0_3_1_1&amp;amp;anchor=topic"&gt;memory&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Regards,&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDA and SCL pins not as defined in overlay file in nRF9160DK.</title><link>https://devzone.nordicsemi.com/thread/368058?ContentTypeID=1</link><pubDate>Mon, 16 May 2022 12:50:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d110db8-6bfb-4406-ae1e-d7be480f5c7e</guid><dc:creator>Eneko </dc:creator><description>&lt;p&gt;Hi, I kept&amp;nbsp;investigating and came accross this other post&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/87823/stuck-at-spm-prepare-to-jump-to-non-secure-image-nrf9160/367672#367672"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/87823/stuck-at-spm-prepare-to-jump-to-non-secure-image-nrf9160/367672#367672&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;His solution, changing to i2c2 worked for me too, now I can see that the&amp;nbsp;PSEL.SCL and&amp;nbsp;PSEL.SDA printed are correct. Furthermore I can scan the I2C bus and find my sensor.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know why i2c1 is not working but with i2c2 it works correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>