<?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>My application stopped running properly after I edited the nrf_drv_twi.c file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69257/my-application-stopped-running-properly-after-i-edited-the-nrf_drv_twi-c-file</link><description>Hi, 
 
 So I was having an error which caused my application to stall in the &amp;quot;do_stop_check&amp;quot; part of the nrf_drv_twi.c file, so I added a bit of code to check if I could figure out the issue. This code caused the stall to happen immediatley instead of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Dec 2020 12:12:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69257/my-application-stopped-running-properly-after-i-edited-the-nrf_drv_twi-c-file" /><item><title>RE: My application stopped running properly after I edited the nrf_drv_twi.c file</title><link>https://devzone.nordicsemi.com/thread/284508?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 12:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:995a5f02-6f01-4a67-8a4c-2b10d72fdbdb</guid><dc:creator>Robert Haddad</dc:creator><description>&lt;p&gt;Okay, will try. Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My application stopped running properly after I edited the nrf_drv_twi.c file</title><link>https://devzone.nordicsemi.com/thread/284462?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 09:53:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d03fa8d-1051-48d6-96a1-cde167a0f603</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Not directly. NRFX drivers are splitted into separate files for TWI and TWIM, while the old driver (nrf_drv_twi) is a merge of these. You may look at the changes in &lt;a href="https://github.com/NordicSemiconductor/nrfx/compare/v1.8.1...v1.8.4"&gt;nrfx&amp;nbsp;repository&lt;/a&gt;&amp;nbsp;(search for nrfx_twi.c and nrfx_twim.c), you may be able to integrate the changes into the old driver.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My application stopped running properly after I edited the nrf_drv_twi.c file</title><link>https://devzone.nordicsemi.com/thread/284408?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 18:59:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b466e7b-0acd-426e-825c-65981ed1e4d8</guid><dc:creator>Robert Haddad</dc:creator><description>&lt;p&gt;Oh okay, so I take it there isn&amp;#39;t a code snippet I can insert to make it work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My application stopped running properly after I edited the nrf_drv_twi.c file</title><link>https://devzone.nordicsemi.com/thread/284404?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 18:22:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfe6603d-7b28-4039-8663-fd62f286514b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Som fixes related to this issue was added to the drivers in nrfx v2.1.0. This version is not supported for nRF5 SDK, and definitely not for SDK versions before 15.0.0 (where nrfx drivers replaced legacy nrf_drv_ drivers). The changes was later also &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v1.8.4/CHANGELOG.md#fixed-1"&gt;added to nrfx v1.8.2&lt;/a&gt;, and nrfx v1.8.4 is used in SDK 17.0.0.&amp;nbsp;If you migrate to SDK v17.0.x, it is likely that the issue you are seeing is fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My application stopped running properly after I edited the nrf_drv_twi.c file</title><link>https://devzone.nordicsemi.com/thread/284394?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 16:51:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0eb8caf-1e21-404d-8a15-1b85977c96d9</guid><dc:creator>Robert Haddad</dc:creator><description>&lt;p&gt;Thank you. That worked. It was strange. The issue I&amp;#39;m having exactly like this one:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/43931/i2c-stuck-on-twi-irq"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/43931/i2c-stuck-on-twi-irq&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For some reason after 30 minutes to 2 or 3 hours of normal operation, it gets stuck in the do_stop_check loop. I can see that the transfer function is returning true, but then it goes back to the do_stop_check and on and on. When this happens the device completely stops responding until I cycle the power or re-flash it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My application stopped running properly after I edited the nrf_drv_twi.c file</title><link>https://devzone.nordicsemi.com/thread/284389?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 16:33:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57306175-5ae0-4d16-a9b3-d78f2727b44e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you explain a bit more about the &amp;quot;stall&amp;quot; that you are experiencing? Do you get the&amp;nbsp;NRF_TWI_EVENT_ERROR event that causes the stop_check? Otherwise, this check should only happen at the end of a transfer. As far as I can understand, the code you added will cause a fault after transfer of 5 bytes on every transfer, regardless of any errors or end of the transfer.&lt;/p&gt;
&lt;p&gt;If you made modifications to the file, and it is not working after reverting the changes, I would recommend that you try to copy back the file from the SDK zip-file, to make sure you reverted all changes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My application stopped running properly after I edited the nrf_drv_twi.c file</title><link>https://devzone.nordicsemi.com/thread/284198?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 21:12:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4e3a416-9f7c-4e7f-8d6e-e68a13dde1e6</guid><dc:creator>Robert Haddad</dc:creator><description>&lt;p&gt;Hi J&amp;oslash;rgen,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes I&amp;#39;m using SDK version 12.3. That&amp;#39;s what I started with and I&amp;#39;m scared to migrate to something else because I&amp;#39;m still getting the hang of the system.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Robert&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My application stopped running properly after I edited the nrf_drv_twi.c file</title><link>https://devzone.nordicsemi.com/thread/284066?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 13:09:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:124f4f3a-f3e9-41de-b778-eeafd37e259c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which SDK version are you using? nrf_drv_twi.c has not contained the function&amp;nbsp;twi_transfer() since SDK 14.2.0. Have you tried migrating your application to a more recent SDK version?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>