<?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>enable twim0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51507/enable-twim0</link><description>can somebody help me on how to enable twim0.. 
 it was no problem in twi_sensor example...now i am integrating twi_sensor in ble_eddystone...and on built it give an error of &amp;quot;&amp;#39;NRF_DRV_TWI_INSTANCE_0&amp;#39; undeclared here (not in a function); did you mean </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Sep 2019 12:32:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51507/enable-twim0" /><item><title>RE: enable twim0</title><link>https://devzone.nordicsemi.com/thread/207683?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2019 12:32:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cbbf0db-4c4d-4def-96ef-0495e000c6f5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You should set the SES project configuration from &amp;quot;Release&amp;quot; to &amp;quot;Debug&amp;quot;, and check what function is returning the error-code that triggers the error-handler and &lt;a href="https://www.youtube.com/watch?v=uP8RYgYGRvI"&gt;try debugging your application&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enable twim0</title><link>https://devzone.nordicsemi.com/thread/207111?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 11:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45085498-af69-4663-9b41-557dfd565b9d</guid><dc:creator>asmita_patil</dc:creator><description>&lt;p&gt;yes,,but inside&amp;nbsp;&lt;span&gt;nrf_drv_vcnl4020_read_registers() function i have used&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;err_code = nrf_drv_twi_tx(&amp;amp;m_twi_instance, vcnl4020_ADDRESS, &amp;amp;reg, 1, false);&amp;nbsp; &amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;err_code = nrf_drv_twi_rx(&amp;amp;m_twi_instance, vcnl4020_ADDRESS, p_data, length);&amp;nbsp; functions only..it is nothing different...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;which are originally&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;err_code = nrf_drv_twi_tx(&amp;amp;m_twi, LM75B_ADDR, reg, sizeof(reg), false);&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ret_code_t err_code = nrf_drv_twi_rx(&amp;amp;m_twi, LM75B_ADDR, &amp;amp;m_sample, sizeof(m_sample));&amp;nbsp; functions used in sdk(LM75B example twi_sensor)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i just created new function for my convenience..thats it..&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enable twim0</title><link>https://devzone.nordicsemi.com/thread/207105?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 11:07:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88dc49fe-d447-445e-bc46-4aac18db2ae3</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="asmita_patil"]yes..i did all changes. ..now it is working...[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Good to hear it works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrf_drv_vcnl4020_read_registers() is not developed by us and out of our support.&lt;/p&gt;
&lt;p&gt;If you have further questions, please create new cases for them. They are already faraway to the title.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enable twim0</title><link>https://devzone.nordicsemi.com/thread/207086?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 09:48:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4daacfa-57ab-4c2c-97eb-583242ee585e</guid><dc:creator>asmita_patil</dc:creator><description>&lt;p&gt;my code is getting stuck at nrf_breakpoint_cond...&lt;/p&gt;
&lt;p&gt;i changed sdk_config.h as suggested&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#ifndef NRF_LOG_ENABLED&lt;br /&gt;#define NRF_LOG_ENABLED 1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#ifndef NRF_LOG_BACKEND_RTT_ENABLED&lt;br /&gt;#define NRF_LOG_BACKEND_RTT_ENABLED 1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;somebody can help???&lt;/p&gt;
&lt;p&gt;this is where code is stuck&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1567158311238v1.png" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and it is the definition&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1567158555369v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;any help would be appriciated...thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enable twim0</title><link>https://devzone.nordicsemi.com/thread/206798?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 08:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f947bb3-a7a8-4428-af05-38a4dcc0b904</guid><dc:creator>asmita_patil</dc:creator><description>&lt;p&gt;yes..i did all changes. ..now it is working...but the problem is that it reads the registers but all the valuse are getting in m_sample variable....i am returning *p_data from read function and have assigned a variable to catch values in..but they are not displaying in those variables....it is only remaining in m_sample..&lt;/p&gt;
&lt;p&gt;what could be the reason.??&lt;/p&gt;
&lt;p&gt;this is what i am doing&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;rslt_MSB = nrf_drv_vcnl4020_read_registers(0x87,&amp;amp;m_sample,1); // command to read result register 0x87 (MSB bits) of vcnl4020&lt;/p&gt;
&lt;p&gt;rslt_MSB = m_sample; //m_sample holds the values of result register..copy it to rslt_MSB variable.&lt;br /&gt; &lt;br /&gt; rslt_LSB = nrf_drv_vcnl4020_read_registers(0x88,&amp;amp;m_sample,1); //command to read result register 0x88 (LSB bits) of vcnl4020&lt;/p&gt;
&lt;p&gt;rslt_LSB = m_sample;&lt;/p&gt;
&lt;p&gt;am i doing it right ??&lt;/p&gt;
&lt;p&gt;and i have integrated twi_sensor into eddystone...can you halp..??&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: enable twim0</title><link>https://devzone.nordicsemi.com/thread/206614?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 12:03:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:146b0aa7-bcc5-40dd-8f5a-ed55194e58cc</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you try to enable TWI_ENABLED in the sdk_config.h?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;e&amp;gt; TWI_ENABLED - nrf_drv_twi - TWI/TWIM peripheral driver - legacy layer
//==========================================================
#ifndef TWI_ENABLED
#define TWI_ENABLED 1
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When you are&amp;nbsp;&lt;span&gt;integrating twi_sensor into ble_eddystone, you could refer to the sdk_config.h of&amp;nbsp;twi_sensor.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>