<?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>TWI scanner with two nrf52840 boards</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44434/twi-scanner-with-two-nrf52840-boards</link><description>Hello, 
 I am using two nrf52840 DK boards, I tried to run TWI scanner example on one of the boards of SDK 15.0 example. I&amp;#39;m not getting the other device address it is giving message as &amp;quot;no device detected&amp;quot;. I have connected the SCL and SDA pins respectively</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Mar 2019 10:52:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44434/twi-scanner-with-two-nrf52840-boards" /><item><title>RE: TWI scanner with two nrf52840 boards</title><link>https://devzone.nordicsemi.com/thread/174782?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 10:52:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a209486c-3467-4647-92ad-c37322c11a1f</guid><dc:creator>Shashi</dc:creator><description>&lt;p&gt;Thank you for suggestion. I will go through documentation and identify the need.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI scanner with two nrf52840 boards</title><link>https://devzone.nordicsemi.com/thread/174755?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 09:44:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52722618-6b5d-4dde-aa6b-844e02d9538d</guid><dc:creator>awneil</dc:creator><description>[quote userid="77791" url="~/f/nordic-q-a/44434/twi-scanner-with-two-nrf52840-boards/174700"]I have not programmed I2C slave in other DK[/quote]
&lt;p&gt;You need to!&lt;/p&gt;
&lt;p&gt;Just like you have to write code to use the TWI peripheral code in Master mode!&lt;/p&gt;
&lt;p&gt;Without code to control it, the TWI peripheral does &lt;em&gt;&lt;strong&gt;nothing&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
[quote userid="77791" url="~/f/nordic-q-a/44434/twi-scanner-with-two-nrf52840-boards/174700"]How do i assign I2C slave to any controller [/quote]
&lt;p&gt;That will depend on the particular microcontroller - it will be different in an nRF52 from an STM32.&lt;/p&gt;
&lt;p&gt;You will have to study the &lt;strong&gt;documentation&lt;/strong&gt; for the particular microcontroller to find out what is required.&lt;/p&gt;
[quote userid="77791" url="~/f/nordic-q-a/44434/twi-scanner-with-two-nrf52840-boards/174700"]can you give a code snippet ?[/quote]
&lt;p&gt;There are examples for Nordic chips in the Nordic SDK.&lt;/p&gt;
&lt;p&gt;ST provide their own examples for their own chips.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI scanner with two nrf52840 boards</title><link>https://devzone.nordicsemi.com/thread/174700?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 05:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf6afc90-53ec-422c-8782-5e2abb6e2f88</guid><dc:creator>Shashi</dc:creator><description>&lt;p&gt;Thank you, I have not programmed I2C slave in other DK. I just tried to run TWI scanner on one board to get the address of other board but, it did not work that way. As you suggested I will run I2C slave in one board and try again.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How do i assign I2C slave to any controller (address in code) can you give a code snippet ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI scanner with two nrf52840 boards</title><link>https://devzone.nordicsemi.com/thread/174495?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 10:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12a8c04b-391e-4934-9699-43a19c7d1fca</guid><dc:creator>awneil</dc:creator><description>[quote userid="77791" url="~/f/nordic-q-a/44434/twi-scanner-with-two-nrf52840-boards/174426"]when i have connected to another sdk(nrf52840) it is showing as &amp;quot;no device was found&amp;quot; [/quote]
&lt;p&gt;So, again,&amp;nbsp;&lt;strong&gt;have you programmed an I2C slave into that other DK?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you have &lt;em&gt;&lt;strong&gt;both&lt;/strong&gt; &lt;/em&gt;the&amp;nbsp;&lt;span&gt;MAX30100&amp;nbsp;&lt;em&gt;&lt;strong&gt;and&lt;/strong&gt; &lt;/em&gt;the 2nd DK connected, is the&amp;nbsp;MAX30100&amp;nbsp;still detected?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you looked at the I2C lines with an oscilloscope or&amp;nbsp;analyser to see what is happening?&lt;/span&gt;&lt;/p&gt;
[quote userid="77791" url="~/f/nordic-q-a/44434/twi-scanner-with-two-nrf52840-boards/174426"]How exactly can i get the address ?[/quote]
&lt;p&gt;&lt;span&gt;&lt;/span&gt;Again, when you&amp;#39;re making an I2C Slave on &lt;em&gt;&lt;strong&gt;any&lt;/strong&gt; &lt;/em&gt;microcontroller, then &lt;em&gt;&lt;strong&gt;you&lt;/strong&gt; &lt;/em&gt;assign its address in &lt;em&gt;&lt;strong&gt;your&lt;/strong&gt; &lt;/em&gt;code!&lt;/p&gt;
&lt;p&gt;Note:&lt;/p&gt;
&lt;p&gt;To take a screenshot on a Windows computer:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use the &amp;#39;&lt;strong&gt;PrintScreen&lt;/strong&gt;&amp;#39; (sometimes abbreviated; eg, &amp;#39;PrtSc&amp;#39;) button to capture the entire screen;&lt;/li&gt;
&lt;li&gt;Use &lt;strong&gt;Alt+&lt;/strong&gt;&lt;span&gt;&lt;strong&gt;PrintScreen&lt;/strong&gt; to capture just the active window.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI scanner with two nrf52840 boards</title><link>https://devzone.nordicsemi.com/thread/174426?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 05:55:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ca60e34-7afd-4294-986c-c8aa682e9976</guid><dc:creator>Shashi</dc:creator><description>&lt;p&gt;Hello awneil,&lt;/p&gt;
&lt;p&gt;Thank you for the quick response. When I have connected the sdk(nrf52840) to MAX30100 sensor using TWI scanner example running in sdk it can read the device address and it is showing the address as 0x57. But, when i have connected to another sdk(nrf52840) it is showing as &amp;quot;no device was found&amp;quot; please find the attached images.&amp;nbsp;&amp;nbsp;&lt;img alt="nrf52840 connected to MAX30100" height="274" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_20190306_5F00_105955.jpg" width="206" /&gt;&lt;img alt="Device address detected" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_20190306_5F00_110016.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="two nrf52840 dk connected" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_20190306_5F00_110720.jpg" /&gt;&lt;img alt="No device found for two sdk boards connected" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_20190306_5F00_110800.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What i wanted is i&amp;#39;m trying to establish communication between STM32F769I DISC0&amp;nbsp; and nrf52840 board using i2c communication so to transmit from STM board i need the nrf52840 DK device address. How exactly can i get the address ?&lt;/p&gt;
&lt;p&gt;Your help will be much appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI scanner with two nrf52840 boards</title><link>https://devzone.nordicsemi.com/thread/174272?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2019 13:38:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8f97a9e-bea9-4c46-84ef-d160a4836f25</guid><dc:creator>awneil</dc:creator><description>[quote userid="77791" url="~/f/nordic-q-a/44434/twi-scanner-with-two-nrf52840-boards"] I have connected the SCL and SDA pins respectively[/quote]
&lt;p&gt;How, exactly, have you connected them?&lt;/p&gt;
&lt;p&gt;Show a schematic (as an image - see below) - it is far easier and clearer than trying to describe connections in words!&lt;/p&gt;
&lt;p&gt;A photograph may also be informative.&lt;/p&gt;
&lt;p&gt;Do you need pullups?&lt;/p&gt;
[quote userid="77791" url="~/f/nordic-q-a/44434/twi-scanner-with-two-nrf52840-boards"]I tried to run TWI scanner example on one of the boards[/quote]
&lt;p&gt;And have you programmed an I2C slave into the other one?&lt;/p&gt;
&lt;p&gt;Have you looked at the I2C lines with an oscilloscope or&amp;nbsp;analyser to see what (if anything) is happening?&lt;/p&gt;
&lt;p&gt;Does the TWI Scanner detect a standard I2C chip if you connect it &lt;em&gt;instead of&lt;/em&gt; the 2nd DK? If it does, what happens when you connect it &lt;em&gt;at the same time as&lt;/em&gt; the other DK ?&lt;/p&gt;
[quote userid="77791" url="~/f/nordic-q-a/44434/twi-scanner-with-two-nrf52840-boards"]suggest the possible method to find the address of the nrf52840 board[/quote]
&lt;p&gt;You should be able to see that in the code?&lt;/p&gt;
&lt;p&gt;How to post images:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_5F00_Insert-Image-_2D00_-Nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>