<?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>TWI-master integrate with Custom Service Code - NRF52 - SDK15.3.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55325/twi-master-integrate-with-custom-service-code---nrf52---sdk15-3-0</link><description>Hello, 
 i&amp;#39;m using,BMD-301(NRF52832),SDK15.3.0 
 
 ////////////////////////.......Issue-1.............. 
 When i upload &amp;quot;twi_master_using_nrf_twi_mngr&amp;quot; peripheral example 
 i&amp;#39;m getting this error in log 
 &amp;#39;&amp;#39;&amp;#39;&amp;#39; 
 TWI master example started. &amp;lt;error&amp;gt; app</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Dec 2019 11:40:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55325/twi-master-integrate-with-custom-service-code---nrf52---sdk15-3-0" /><item><title>RE: TWI-master integrate with Custom Service Code - NRF52 - SDK15.3.0</title><link>https://devzone.nordicsemi.com/thread/224400?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 11:40:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6adf9b48-2f9e-4707-830e-4e486f0bf539</guid><dc:creator>Mannu</dc:creator><description>&lt;p&gt;Hello Kenneth,&lt;/p&gt;
&lt;p&gt;now code is working but when use&lt;/p&gt;
&lt;p&gt;following code to transmit data but it&amp;#39;s stuck to&amp;nbsp; there and not transmit anything&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uint32_t err_code;
uint8_t tx_data[] = {&amp;#39;a&amp;#39;, &amp;#39;b&amp;#39;, &amp;#39;c&amp;#39;, &amp;#39;d&amp;#39;, &amp;#39;e&amp;#39;};
const nrf_drv_twi_t twi = NRF_DRV_TWI_INSTANCE(0);
err_code = nrf_drv_twi_init(&amp;amp;twi, NULL, NULL);
APP_ERROR_CHECK(err_code);
nrf_drv_twi_enable(&amp;amp;twi);
err_code = nrf_drv_twi_tx(&amp;amp;twi, SLAVE_ADDRESS, tx_data, sizeof(tx_data), false);
APP_ERROR_CHECK(err_code);
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;it stuck at&lt;/p&gt;
&lt;p&gt;err_code = nrf_drv_twi_tx(&amp;amp;twi,0x08, tx_data, sizeof(tx_data), false);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i&amp;#39;m using this example&lt;/p&gt;
&lt;p&gt;&amp;quot;twi_master_using_nrf_twi_mngr&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI-master integrate with Custom Service Code - NRF52 - SDK15.3.0</title><link>https://devzone.nordicsemi.com/thread/224364?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 10:10:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:189039c1-915a-4218-a077-da01c6d27e8e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you define DEBUG you should be able to find in&amp;nbsp;app_error_fault_handler() what line of code is causing the error.&lt;/p&gt;
&lt;p&gt;You need to add all twi configuration you can find the in the sdk_config.h twi examples in the SDK to your project. As an example I suggest to look at \twi_scanner and \twi_sensor examples.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>