<?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>I2C Communication nRF52-DK and ESP32</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85675/i2c-communication-nrf52-dk-and-esp32</link><description>Hi all, 
 
 I&amp;#39;m trying to connect an ESP32 with an nRF52-DK (nRF52832) through I2C. I&amp;#39;m using the ESP32 I2C Slave example ( https://www.arduino.cc/reference/en/libraries/esp32-i2c-slave/ ). 
 For the ESP32 I&amp;#39;m using a code based on the slave_sender.ino</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Mar 2022 14:50:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85675/i2c-communication-nrf52-dk-and-esp32" /><item><title>RE: I2C Communication nRF52-DK and ESP32</title><link>https://devzone.nordicsemi.com/thread/357452?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 14:50:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f8635fb-8372-42ec-8f99-9e1131dc5ab1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Maybe I&amp;#39;m misunderstanding something, but an i2c slave does not have the ability to initiate a transfer. I guess you could try to switch roles.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Communication nRF52-DK and ESP32</title><link>https://devzone.nordicsemi.com/thread/357450?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 14:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53fb5cb4-cbe6-4e36-aaf2-0a2ee94fcb0d</guid><dc:creator>pgonzaleztrucorp</dc:creator><description>&lt;p&gt;ESP32 is acting as the slave sending data. nRF52 is the master receiving (by request) the data.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have any logic analyzer.&lt;/p&gt;
&lt;p&gt;I know the problem is the nRF52, probably incompatible with the libraries I&amp;#39;m using.&lt;/p&gt;
&lt;p&gt;What I&amp;#39;m trying to do is send data, I don&amp;#39;t care how, do you know any other way you can help me with?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Communication nRF52-DK and ESP32</title><link>https://devzone.nordicsemi.com/thread/357446?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 14:36:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6ddeadc-5d9b-4cd0-b64f-fb97f9d66305</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It&amp;#39;s seems to be the other way around when I look at the code you posted. The esp is using &amp;#39;WireSlave&amp;#39; and the nrf is using &amp;#39;WireSlaveRequest&amp;#39;. Either way, this would be much easier to troubleshoot if you had a logic analyzer you could use.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Communication nRF52-DK and ESP32</title><link>https://devzone.nordicsemi.com/thread/357424?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 13:55:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:876fb0be-5188-4c75-aca2-9023b55a4ca7</guid><dc:creator>pgonzaleztrucorp</dc:creator><description>&lt;p&gt;It&amp;#39;s the ESP32 the one sending data, it works if I connect it to another ESP32. The only difference is that I can&amp;#39;t use the same function as the ESP32 receiver that uses &amp;quot;Wire.begin(SDA_PIN,SCL_PIN)&amp;quot;&lt;/p&gt;
&lt;p&gt;If I don&amp;#39;t connect ESP32 and nRF52 the nRF52 says &amp;quot;slave not found&amp;quot; so it&amp;#39;s correct.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If&amp;nbsp;I&amp;nbsp;&lt;/span&gt;&lt;span&gt;connect ESP32 and nRF52, the nRF52 stops working.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If I connect them and reset the ESP32, it enters on a resetting loop.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also using the BLE of nRF52832, can this be an issue?&lt;/p&gt;
&lt;p&gt;Maybe there&amp;#39;s a better way to do this...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Communication nRF52-DK and ESP32</title><link>https://devzone.nordicsemi.com/thread/357416?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 13:36:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f39b12e-ee8f-44a7-a6e8-5ffa4bde100b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see any obvious mistakes, but I&amp;#39;m not familiar with the ESP32 codebase, nor the arduino code you use on the 52, so that may be why.&amp;nbsp; Apart from the errors on errors shown on boot, does the esp program appear to run ok, or does it go enter a reset loop because of the errors?&lt;/p&gt;
&lt;p&gt;You should also connect a logic analyzer or scope to the i2c lines to see if the nrf sends the data as expected, and whether this data gets acked by the esp or not.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>