<?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 between nrf52 and stm32</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38667/i2c-communication-between-nrf52-and-stm32</link><description>Hi all, 
 I am currently building I2C communication between nrf52832 and a stm32 chip, stm32 as the master and nrf52 as the slave. 
 The situation is the stm32 couldn&amp;#39;t get the data from the nrf52 but I can actually the data flowing through the SDA channel</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Sep 2018 16:03:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38667/i2c-communication-between-nrf52-and-stm32" /><item><title>RE: I2C communication between nrf52 and stm32</title><link>https://devzone.nordicsemi.com/thread/149685?ContentTypeID=1</link><pubDate>Thu, 20 Sep 2018 16:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8214bfca-354f-48e0-b9fc-faf666dda6da</guid><dc:creator>Duncan Xu</dc:creator><description>&lt;p&gt;At&amp;nbsp;first, I didn&amp;#39;t add external pull-up resistors since I thought there are built-in pull-ups and it should be good. But after I added two 10k resistors to the SCL and SDA, &amp;nbsp;it works. Thank you for your help, Martin.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C communication between nrf52 and stm32</title><link>https://devzone.nordicsemi.com/thread/149648?ContentTypeID=1</link><pubDate>Thu, 20 Sep 2018 13:10:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9480035c-4bea-4a1f-8129-8ad773535eea</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Can you upload some screenshots that compare similar data transfers between the STM32 and the nRF52 and between the STM32 and the other device?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C communication between nrf52 and stm32</title><link>https://devzone.nordicsemi.com/thread/149523?ContentTypeID=1</link><pubDate>Wed, 19 Sep 2018 22:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95c3a325-05e3-4a92-9e89-92f7c7b4e593</guid><dc:creator>Duncan Xu</dc:creator><description>&lt;p&gt;Thanks, Martin. Yes, but when I test the STM32 code with another I2C device and it works, so I couldn&amp;#39;t sure whether the STM32 or nRF52 causes the problem. The STM32 and nRF52 are using the same supply voltage and share the same ground. I set the STM32 to receive one byte for each time and nRF52 prepares one byte too. &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C communication between nrf52 and stm32</title><link>https://devzone.nordicsemi.com/thread/149482?ContentTypeID=1</link><pubDate>Wed, 19 Sep 2018 14:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c27e7f39-8d40-4ab7-be27-c8b1b9cae9f2</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;&lt;em&gt;&lt;strong&gt;From the oscilloscope, I can see the stm32 sent the start condition, stop condition, the slave address, the write or read command; the&amp;nbsp;nrf52 sent the ACK to appropriate positions and data. &amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;span&gt;So&amp;nbsp;an Arduino can read the nRF52 just fine, and the&amp;nbsp;nRF52 both acknowledges&amp;nbsp;your commands and transfers&amp;nbsp;data to the STM32? Doesn&amp;#39;t&amp;nbsp;all this indicate a bug in your STM32 code? Maybe it is expecting a certain number of bytes, but not getting as many? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Or&amp;nbsp;it could be an issue with the voltage levels. Are both the STM and the nRF52 running on the same supply voltage? And do they have common ground?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>