<?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>About twi_init function</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86522/about-twi_init-function</link><description>I have to initialize a i2c multiplexer, for that I am sending the device address and register address to be written using the function: 
 nrf_drv_twi_tx(&amp;amp;m_twi, (0x70), tx_buf, sizeof(tx_buf), false); 
 Whenever I call this function, the flow is stuck</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Apr 2022 13:22:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86522/about-twi_init-function" /><item><title>RE: About twi_init function</title><link>https://devzone.nordicsemi.com/thread/361251?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2022 13:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41eee62d-1a81-47e7-a131-5e2e899fc908</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Your snipped doesn&amp;#39;t seem to include &lt;span&gt;nrf_drv_twi_tx&lt;/span&gt;(); From where do you call it? Is it from your main() function, or from an interrupt? And where do you set m_xfer_done = true?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>