<?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 returns error 3 sometimes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58607/twi-returns-error-3-sometimes</link><description>I&amp;#39;m using the mpu9250 connect to tca9548a and connect to the board, but if I move my sensor , sometimes twi read and write returns error code=3(but it usually don&amp;#39;t happen when I don;t move the sensor ), I&amp;#39;m use the pull-up register but have the same</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Mar 2020 14:03:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58607/twi-returns-error-3-sometimes" /><item><title>RE: TWI returns error 3 sometimes</title><link>https://devzone.nordicsemi.com/thread/238056?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 14:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3f4ce01-d30c-481b-a7ec-a3ace6e71151</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Unless you don&amp;#39;t want to modify the driver I assume you will have to call the following between _init() and _enable():&lt;/p&gt;
&lt;p&gt;nrf_gpio_cfg_input(ARDUINO_SCL_PIN, NRF_GPIO_PIN_NOPULL);&lt;br /&gt; nrf_gpio_cfg_input(ARDUINO_SDA_PIN, NRF_GPIO_PIN_NOPULL);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI returns error 3 sometimes</title><link>https://devzone.nordicsemi.com/thread/238035?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 13:01:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62e3c009-f05c-4a27-bcdf-75618b128520</guid><dc:creator>Geass77</dc:creator><description>&lt;p&gt;Is their any method to disable the internal pull up register in sdk 15.3?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI returns error 3 sometimes</title><link>https://devzone.nordicsemi.com/thread/237989?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 10:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1322edb2-bd54-44a5-bf37-7dc8e951a505</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Maybe, if you are able to record all the clock and data bytes when it fails, but it typically is much easier to decode with the built-in I2C decoder of a logic analyzer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI returns error 3 sometimes</title><link>https://devzone.nordicsemi.com/thread/237902?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 02:44:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af270bdc-b55a-49be-b0b1-783371da8a85</guid><dc:creator>Geass77</dc:creator><description>&lt;p&gt;I don&amp;#39;t have the logic analyzer trace, is it ok to use the&amp;nbsp;&lt;span&gt;oscilloscope?i&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m using nrf52840&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI returns error 3 sometimes</title><link>https://devzone.nordicsemi.com/thread/237811?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 14:34:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:009ee3f9-6322-4733-98bf-f00c3a77e837</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The description of the error in&amp;nbsp;xfer_completeness_check() seems to be:&lt;/p&gt;
&lt;p&gt;// If the actual number of transferred bytes is not equal to what was requested,&lt;br /&gt; // but there was no error signaled by the peripheral, this means that something&lt;br /&gt; // unexpected, like a premature STOP condition, happened on the bus.&lt;br /&gt; // In such case the peripheral has to be disabled and re-enabled, so that its&lt;br /&gt; // internal state machine is reinitialized.&lt;/p&gt;
&lt;p&gt;Do you have a logic analyzer trace (e.g. &lt;a href="https://www.saleae.com/"&gt;https://www.saleae.com/&lt;/a&gt;) of the error?&lt;/p&gt;
&lt;p&gt;Are you using nRF52832? In that case have you set&amp;nbsp;TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED? (&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_109.html"&gt;https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_109.html&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>