<?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>Use TWI in blocking mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48063/use-twi-in-blocking-mode</link><description>1.How do I use TWI \ TWIM Read\Write in blocking mode ? 
 
 I am facing an issues with my nrf52840 based design, where I issue consecutive TWI write\read . 
 I am monitoring the I2C bus transaction with Logic Analyzer. When executed step-by-step ( debug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Nov 2019 21:11:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48063/use-twi-in-blocking-mode" /><item><title>RE: Use TWI in blocking mode</title><link>https://devzone.nordicsemi.com/thread/218369?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2019 21:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c530c543-b0d0-4393-a5dd-f693d39aa0a7</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/atlesilgjerd"&gt;atlesilgjerd&lt;/a&gt;,&lt;br /&gt;Can you please enter your question in a new support ticket?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thank you!&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use TWI in blocking mode</title><link>https://devzone.nordicsemi.com/thread/216284?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 07:12:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa2cb561-ee39-4359-83b9-aa758846a158</guid><dc:creator>atlesilgjerd</dc:creator><description>&lt;p&gt;It seemes I have this problem too... SPI event comes when I step through debugging. But when I run without breakpoints in the code, it hangs waiting for the event.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;while(!NRF_SPI1-&amp;gt;EVENTS_READY);&lt;/p&gt;
&lt;p&gt;It seems to be the same problem with SPI0. I am running on nRF52840 and using Segger Jlink lite.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;Atle&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use TWI in blocking mode</title><link>https://devzone.nordicsemi.com/thread/191027?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 09:20:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06f0b054-bafd-4bae-86a9-092684eeb4d8</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Ran,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you please provide more information? Have you verified your timing with the TWI device? Since it works in debug and not when running, it sounds like a timing issue.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use TWI in blocking mode</title><link>https://devzone.nordicsemi.com/thread/190391?ContentTypeID=1</link><pubDate>Sun, 02 Jun 2019 21:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d9f19d6-296d-438b-8e28-66acc5b8f6f7</guid><dc:creator>ran</dc:creator><description>&lt;p&gt;Thanks,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That is my impl. ( NULL for evt_handler ) . What else might be the reason for different bus transaction between step-by-step and &amp;quot;running&amp;quot; ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems like &amp;quot;blocking&amp;quot; does not really works , I will upload screen shots tomorrow if it helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use TWI in blocking mode</title><link>https://devzone.nordicsemi.com/thread/190388?ContentTypeID=1</link><pubDate>Sun, 02 Jun 2019 16:07:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8348d295-d239-43b7-a4d7-e0b2e8d63608</guid><dc:creator>BinderT</dc:creator><description>&lt;p&gt;If the&amp;nbsp;event_handler parameter is passed as NULL in&amp;nbsp;nrf_drv_twi_init(). TWI will be put in blocking mode.&lt;br /&gt;From the SDK&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;
 * @param[in] event_handler   Event handler provided by the user. If NULL, blocking mode is enabled.

ret_code_t nrf_drv_twi_init(nrf_drv_twi_t const *        p_instance,
                            nrf_drv_twi_config_t const * p_config,
                            nrf_drv_twi_evt_handler_t    event_handler,
                            void *                       p_context);&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>