<?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>nrf_drv_twi_tx() return NRF_ERROR_BUSY</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17633/nrf_drv_twi_tx-return-nrf_error_busy</link><description>Hi, 
 I am using the following function to read the content of a register: 
 static ret_code_t read_reg(uint8_t slave_address, uint8_t register_address, uint8_t *value) {
ret_code_t err_code;
err_code = nrf_drv_twi_tx(&amp;amp;m_twi, slave_address, &amp;amp;register_address</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Nov 2016 12:07:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17633/nrf_drv_twi_tx-return-nrf_error_busy" /><item><title>RE: nrf_drv_twi_tx() return NRF_ERROR_BUSY</title><link>https://devzone.nordicsemi.com/thread/67809?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2016 12:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:638439ba-2896-4fb8-a7cf-1c544abb6b49</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;show us your TWI init function. If you supplied TWI handler nrf_drv_twi_X functions will become non blocking and you&amp;#39;ll have to manually handle waiting for end of the transfer. If you fail to do so you&amp;#39;ll get NRF_ERROR_BUSY. Solution is either to specify NULL as TWI event handler and get blocking behavior from nrf_drv_twi_X or use app_twi which will handle all this for you and allow easy mixing of blocking and non blocking calls.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_twi_tx() return NRF_ERROR_BUSY</title><link>https://devzone.nordicsemi.com/thread/67810?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2016 12:02:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ac6fe7f-d36b-4e22-9fb3-eca5336eb16b</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Are you sure the TWI slave is ACKing the transmission?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>