<?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>Can not add twi function.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14868/can-not-add-twi-function</link><description>Hello I&amp;#39;m new of nRF seriese. 
 nRF51822CEAAD00(0x004d)
SD130 ver2.0.1
kail Ver5.18
SDK11.0.0 
 I just finished the tutorial and now I&amp;#39;m making my new project with twi function.
I had done with the tutorial of &amp;quot;our service&amp;quot; and it works well.
Then</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Jun 2016 12:41:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14868/can-not-add-twi-function" /><item><title>RE: Can not add twi function.</title><link>https://devzone.nordicsemi.com/thread/56750?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2016 12:41:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cd5f684-c305-4aea-ac08-2f92ef487069</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;no, I solved the problem ;) just kidding&lt;/p&gt;
&lt;p&gt;glad your problem is gone!&lt;/p&gt;
&lt;p&gt;PS&amp;#39; accept the answer so everyone knows this is answered ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not add twi function.</title><link>https://devzone.nordicsemi.com/thread/56749?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2016 12:34:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1901c5a-7024-4af3-943e-b1fd30b6b835</guid><dc:creator>agishii</dc:creator><description>&lt;p&gt;Wow! I solved the problem.
I turned it 0 to 1, I can compile it.
Thank you so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not add twi function.</title><link>https://devzone.nordicsemi.com/thread/56751?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2016 12:06:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38296cfe-0741-4d0d-8db3-b6901b4a749a</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;From the errors it seems that the problem is that you didn&amp;#39;t enabled the TWI0. You need to go to the &lt;code&gt;nrf_drv_config.h&lt;/code&gt; and change the &lt;code&gt;TWI0_ENABLED&lt;/code&gt; to 1. I think this is the problem, because those variables are only defined if this is enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not add twi function.</title><link>https://devzone.nordicsemi.com/thread/56748?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2016 12:02:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22bb3e22-9d10-4a19-9f58-26b55c2247fc</guid><dc:creator>agishii</dc:creator><description>&lt;p&gt;And the path is like this.&lt;/p&gt;
&lt;p&gt;I made a blinky prongram in this project, and when I uncomment the twi function, it work well. The led blinks as what I programmed.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/p4.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not add twi function.</title><link>https://devzone.nordicsemi.com/thread/56747?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2016 11:58:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d68c5e0f-9f7e-4cb7-929f-16757c870298</guid><dc:creator>agishii</dc:creator><description>&lt;p&gt;More info. I can see the &amp;quot;nrf_drv_twi.c&amp;quot; file in the project, and I also can open the nrf_drv_twi.h file.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0647.p3.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not add twi function.</title><link>https://devzone.nordicsemi.com/thread/56746?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2016 11:52:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c530d70-c18f-4176-810e-00fedde79026</guid><dc:creator>agishii</dc:creator><description>&lt;p&gt;Thank you very much Jorge.
The out put is this.
It shows &amp;quot;TWI0_xxx is undefined&amp;quot;. But even other example that works well with twi function, when I do &amp;quot;Goto definesion of TWI0_xx&amp;quot; it shows undefined too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not add twi function.</title><link>https://devzone.nordicsemi.com/thread/56745?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2016 11:49:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2da77425-69b7-41e9-9add-848d6a6d9f06</guid><dc:creator>agishii</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0066.p2.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not add twi function.</title><link>https://devzone.nordicsemi.com/thread/56744?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2016 11:27:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce6cf630-a324-41eb-91d3-3f3a0aa55f6b</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;Can you put a printscreen with the Build output window?
Are you building or rebuilding?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not add twi function.</title><link>https://devzone.nordicsemi.com/thread/56743?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2016 10:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fc1e2cd-70fd-4042-8111-a890927c6e19</guid><dc:creator>agishii</dc:creator><description>&lt;p&gt;Thank you for reply.&lt;/p&gt;
&lt;p&gt;I already add the include path, and I checked the file both &amp;quot;nrf_drv_twi.c&amp;quot; and &amp;quot;nrf_drv_twi.d&amp;quot; are exist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can not add twi function.</title><link>https://devzone.nordicsemi.com/thread/56742?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2016 10:34:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e14d0fa-9fdd-4562-9bd4-3deabf513d35</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;you need to add to the includes, not sure if already did. Press &amp;quot;Options for Target&amp;quot; and then go to the &amp;quot;C/C++&amp;quot; tab, there you need to include of the librarie you added to the &amp;quot;Include Paths&amp;quot;.&lt;/p&gt;
&lt;p&gt;If you already did this, see if the file is in the right place on the folders.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>