<?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>Crash on nrf_queue_push() when using the TWI MNGR</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59299/crash-on-nrf_queue_push-when-using-the-twi-mngr</link><description>I&amp;#39;m using the TWI_MNGR to schedule a transfer. I have copied the nrf_twi_mngr_perform() function to a function called nrf_twi_mngr_schedule() which does everything except waiting for the transaction to complete. I changed internal_transaction to a static</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Mar 2020 15:44:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59299/crash-on-nrf_queue_push-when-using-the-twi-mngr" /><item><title>RE: Crash on nrf_queue_push() when using the TWI MNGR</title><link>https://devzone.nordicsemi.com/thread/241930?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 15:44:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b072b8bd-aed8-4a04-accb-8f5755906732</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry for a really late response.&lt;/p&gt;
&lt;p&gt;issuing a TWI transaction inside softdevice BLE event handler seems to be not a good idea. Could cause bottlenecks.&lt;/p&gt;
&lt;p&gt;I would recommend you to push the TWI transaction onto the app_scheduler instead of running it in the event handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash on nrf_queue_push() when using the TWI MNGR</title><link>https://devzone.nordicsemi.com/thread/241436?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 16:44:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d698e10-1b50-4667-9ada-13b3abdc2a29</guid><dc:creator>cory123</dc:creator><description>&lt;p&gt;I&amp;#39;m still having a problem with nrf_queue when using the TWI_MGR. I could use any help I can get at this point. Here are the screen caps of the problem I&amp;#39;m dealing with. These are different levels of the call stack all on the same program failure. Is there a setting in sdk_config.h to adjust the queue?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4162.err1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6131.err2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/err3.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Crash on nrf_queue_push() when using the TWI MNGR</title><link>https://devzone.nordicsemi.com/thread/240940?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 16:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9609b4c-5f3f-411c-b163-4fbbeb096bb2</guid><dc:creator>cory123</dc:creator><description>&lt;p&gt;Because I couldn&amp;#39;t get TWI_MGR working I have implemented the twi_sensor_pca10040 example, migrating it to NRF52810 hardware. I&amp;#39;m still having trouble getting TWI working with my TMD3702 light sensor. After I call nrf_drv_twi_tx() the program gets stuck on in the (m_xfer_done==false) loop.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/twi_5F00_tranfser_5F00_never_5F00_completes.png" /&gt;&lt;/p&gt;
&lt;p&gt;What is strange is that when I was using TWI_MGR I could call nrf_twi_mngr_perform() successfully but not nrf_twi_mngr_schedule(). As shown in my post above I believe that has to do with the nrf_queue. I noticed a something about a workaround related to TWI. Could that be related?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>