<?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 causes NRF_ERROR_INTERNAL and fatal error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37396/twi-causes-nrf_error_internal-and-fatal-error</link><description>I have a hardware with NRF52832 module and successfully used the example twi-scanner to locate my I2C peripheral. I copied these parts over: 
 
 My own code produces this error on the line APP_ERROR_CHECK(err_code); in m41t62_test : 
 &amp;lt;info&amp;gt; TWI: Transfer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Aug 2018 10:48:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37396/twi-causes-nrf_error_internal-and-fatal-error" /><item><title>RE: TWI causes NRF_ERROR_INTERNAL and fatal error</title><link>https://devzone.nordicsemi.com/thread/143907?ContentTypeID=1</link><pubDate>Mon, 13 Aug 2018 10:48:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:431d3c75-d6be-49e1-aea1-50f16ee59908</guid><dc:creator>Bastian</dc:creator><description>&lt;p&gt;Hi, I have external pullups on the lines. I set the GPIO to input no pull and now it works. Toggeling the SCL pin is not neccessary though. Thank you for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI causes NRF_ERROR_INTERNAL and fatal error</title><link>https://devzone.nordicsemi.com/thread/143813?ContentTypeID=1</link><pubDate>Sun, 12 Aug 2018 12:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ad43df3-d50c-4465-95e9-6ed697064e0c</guid><dc:creator>Andre</dc:creator><description>&lt;p&gt;Error 3 usually means something is pulling the SDA line low.&amp;nbsp; Verify you are using the correct pins. Are you missing some pull ups? If you have no external pull ups mounted, try&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;twi_config.scl_pull = NRF_GPIO_PIN_PULLUP;
twi_config.sda_pull = NRF_GPIO_PIN_PULLUP;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If that does nothing, then try to determine if the peripheral might be pulling the sda line low. In order to recover from this condition, uninitialise the twi, configure the SCL pin as output, toggle it 16 times with some delay, and re-initialise the twi and try again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI causes NRF_ERROR_INTERNAL and fatal error</title><link>https://devzone.nordicsemi.com/thread/143803?ContentTypeID=1</link><pubDate>Sat, 11 Aug 2018 21:05:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a979960-a674-427a-9ced-7105e7b7b104</guid><dc:creator>Bastian</dc:creator><description>&lt;p&gt;Using the twi-scanner example I can see data running along the pin with the scope. Using the code in my application does nothing on the pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>