<?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>Problems with I2C &amp;amp; mma8652fc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19390/problems-with-i2c-mma8652fc</link><description>Hello, 
 we developed a custom board using the nRF52832. We are having problems communicating with the mma8652fc accelerometer using I2C. We also have a Rigado BMD-200 EVAL board (based on nRF51822), which has the same accelerometer on. With the Rigado</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 05 Feb 2017 23:39:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19390/problems-with-i2c-mma8652fc" /><item><title>RE: Problems with I2C &amp; mma8652fc</title><link>https://devzone.nordicsemi.com/thread/75245?ContentTypeID=1</link><pubDate>Sun, 05 Feb 2017 23:39:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c7fdb61-082f-42ca-8ce1-c7cd2d82f97b</guid><dc:creator>Martin K</dc:creator><description>&lt;p&gt;Thanks for all the suggestions. We managed to debug properly, and came to the conclusion that that the SDA pin is probably connected to the GND pin (right next to it).&lt;/p&gt;
&lt;p&gt;Setting the pin SDA as high, still reads as 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with I2C &amp; mma8652fc</title><link>https://devzone.nordicsemi.com/thread/75244?ContentTypeID=1</link><pubDate>Sun, 05 Feb 2017 12:57:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a8fd8df-d0d1-4141-9f9b-39144007765b</guid><dc:creator>Michael Antwih</dc:creator><description>&lt;p&gt;How are you defining the address?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with I2C &amp; mma8652fc</title><link>https://devzone.nordicsemi.com/thread/75242?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 10:10:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f6fe116-35aa-4afe-abdc-7a4d48c74142</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Go buy yourself a logic analyzer or oscilloscope, or borrow some. If you are developing hardware this is mandatory to have in your inventory.&lt;/p&gt;
&lt;p&gt;Determining if the bits are actually clocked out on the lines would help finding the issue.&lt;/p&gt;
&lt;p&gt;As Michael said you can also go into the debugger and check what happens. It might be that a function is returning an error code and the device is resetting, see &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with I2C &amp; mma8652fc</title><link>https://devzone.nordicsemi.com/thread/75243?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 00:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baa97b9b-94fe-472c-a07e-b36357cf1ec4</guid><dc:creator>Michael Antwih</dc:creator><description>&lt;p&gt;Make sure optimization is turned off and then set break point on the error handler function. Which IDE are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with I2C &amp; mma8652fc</title><link>https://devzone.nordicsemi.com/thread/75241?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2017 20:29:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dd494d3-c778-4516-8d30-cfa75abfbc5e</guid><dc:creator>Martin K</dc:creator><description>&lt;p&gt;Sadly we don&amp;#39;t have a logic analyzer. GNDA is just common GND, it&amp;#39;s just marked this way in the schematic.&lt;/p&gt;
&lt;p&gt;The debugger points us to some weird areas of code that are not being executed at all. I can post some code if it would help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with I2C &amp; mma8652fc</title><link>https://devzone.nordicsemi.com/thread/75240?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 16:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f94733a-f603-4ef0-8568-dfd23580bea3</guid><dc:creator>Michael Antwih</dc:creator><description>&lt;p&gt;Also when you step thru the code and you throwing any errors? In debugger mode you used be able to review the TWI/I2C register with either Keil or gdb.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with I2C &amp; mma8652fc</title><link>https://devzone.nordicsemi.com/thread/75239?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 16:15:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0d239c6-936b-47be-a21b-060502dfaee7</guid><dc:creator>Michael Antwih</dc:creator><description>&lt;p&gt;Do you have an logic analyzer? Do you know if the bits are making it out to the bus? Common grounds? I know that is a silly question but I noticed you have GNDA instead of just GND.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>