<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>nrf9160 i2c2 can&amp;#39;t be used.</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88185/nrf9160-i2c2-can-t-be-used</link><description>Hi: 
 I use ncs 1.9.1, borad nRF9160-DK 
 sda-pin = &amp;lt;30&amp;gt;; scl-pin = &amp;lt;31&amp;gt;; 
 
 Config: 
 
 
 
 
 I added i2c2 in blinky, here is the source code. 
 
 I see i2c2 enabled in zephyr.dts 
 
 But its output is like this:</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Tue, 24 May 2022 07:20:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88185/nrf9160-i2c2-can-t-be-used" /><item><title>RE: nrf9160 i2c2 can't be used.</title><link>https://test-devzone.nordicsemi.com/thread/369173?ContentTypeID=1</link><pubDate>Tue, 24 May 2022 07:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e929af0-6c6c-4dd1-b78d-e5d39381a09e</guid><dc:creator>user2115</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I took your build/zephyr/merged.hex file (ie. the one you compiled) and it also worked on the DK. I can see the same trace as posted below.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you take a multimeter and check the voltage on the P0.30/P0.31 pins and see if it&amp;#39;s at VDD level? Note that this will follow your VDD_IO settings (ie. the switch in the lower left corner, where you can set either 1.8V or 3V).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is your logic analyzer with a logic level of 3V? If so, try to adjust this to 1.8V in the PC application.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 i2c2 can't be used.</title><link>https://test-devzone.nordicsemi.com/thread/369103?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 15:56:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9e55fc7-d8c1-4ba3-b925-7a6d723007d7</guid><dc:creator>user73478</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi H&amp;aring;kon:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;I&amp;#39;m connected to GND.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 i2c2 can't be used.</title><link>https://test-devzone.nordicsemi.com/thread/369018?ContentTypeID=1</link><pubDate>Mon, 23 May 2022 12:18:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2d48a8c-40b0-4178-99ad-f90c39ea5d94</guid><dc:creator>user2115</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried your example, and it seems to run as expected. I see this waveform in the beginning:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://test-devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1653308144081v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And since I do not have this sensor myself, it does not go further (ie. no ACK).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]But its output is like this:[/quote]
&lt;p&gt;this output looks very strange.&lt;/p&gt;
&lt;p&gt;Did you connect GND?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>