<?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>Why can&amp;#39;t I assign i2c0 pins to P0.06?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105595/why-can-t-i-assign-i2c0-pins-to-p0-06</link><description>I built a PCB as outlined by the nRF52840 datasheet, however, P0.06 (my SCL line) is not working. I can assign SCL to other pins (like P01.10), however, P0.06 will not work. Why not? It does not mention legal or illegal i2c pins in the datasheet. 
 The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Nov 2023 01:06:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105595/why-can-t-i-assign-i2c0-pins-to-p0-06" /><item><title>RE: Why can't I assign i2c0 pins to P0.06?</title><link>https://devzone.nordicsemi.com/thread/455430?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2023 01:06:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef247bac-d0b2-4b40-88bb-57b4b46a5853</guid><dc:creator>Bk37</dc:creator><description>&lt;p&gt;Found a solution that both works for the DK board, and a normal chip.&lt;/p&gt;
&lt;p&gt;As pointed out in my post, some pins have &amp;#39;defaults&amp;#39;, and any re-configuration of these protocols is only &lt;em&gt;adding to, not replacing&lt;/em&gt; the original pins.&lt;/p&gt;
&lt;p&gt;For example, if UART0 has a default setting of TX to P0.06, even if you relocate TX to P0.07, TX will be BOTH P0.06 and P0.07, not just P0.07.&lt;/p&gt;
&lt;p&gt;So you need to &lt;strong&gt;disable&lt;/strong&gt; &lt;strong&gt;the conflicting protocol&lt;/strong&gt; (UART0) entirely in the devicetree. For me, this isn&amp;#39;t an issue because I don&amp;#39;t need UART, and even if I did, I could just use UART1. With UART0 disabled, P0.06 is free to be used for i2c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I assign i2c0 pins to P0.06?</title><link>https://devzone.nordicsemi.com/thread/455337?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2023 14:23:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebcdc660-4105-4e95-aec4-b9c476b0cbac</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi, could I see how you are setting up the file when you are using P0.06 for i2c0, and changing the pin for uart0?&lt;/p&gt;
&lt;p&gt;Also make sure that you are doing a pristine build.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why can't I assign i2c0 pins to P0.06?</title><link>https://devzone.nordicsemi.com/thread/455184?ContentTypeID=1</link><pubDate>Sat, 11 Nov 2023 08:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1288b5e8-ad54-40ad-ae35-af448f713f44</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Go to the build folder, zephyr subdirectory and look into the full zeyphr.dts file. There you should find &lt;em&gt;all&lt;/em&gt; the pin assignments - at least all done via dts files.&lt;/p&gt;
&lt;p&gt;Remember that DTS pulls files from various sources during the build and combines them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>