<?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>IAR linker Error[Li005] after copying from one example to another</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23256/iar-linker-error-li005-after-copying-from-one-example-to-another</link><description>Hello, 
 I tried copying code from twi_sensor example to ble_app_uart and got this error: 
 Error[Li005]: no definition for &amp;quot;nrf_drv_twi_init&amp;quot; [referenced from W:\MODIFIED_SDK_13.0.0_04a0bfd\examples\ble_peripheral\flipdot_fw301\pca10040\s132\iar\_build</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Aug 2019 10:56:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23256/iar-linker-error-li005-after-copying-from-one-example-to-another" /><item><title>RE: IAR linker Error[Li005] after copying from one example to another</title><link>https://devzone.nordicsemi.com/thread/207104?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 10:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e84314d-72a5-446c-9e92-ff142710ce3c</guid><dc:creator>himanshu rawat</dc:creator><description>&lt;p&gt;where i found that .c file?? please send me a link&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IAR linker Error[Li005] after copying from one example to another</title><link>https://devzone.nordicsemi.com/thread/207098?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 10:34:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12625d48-29ff-4773-a930-9fd6c33606cb</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;See the Verified Answer above - you need to add the &lt;strong&gt;.c&lt;/strong&gt; file which contains the &lt;em&gt;&lt;strong&gt;definition&lt;/strong&gt; &lt;/em&gt;of the&amp;nbsp;&lt;span&gt;ble_advertising_on_ble_evt() function.&lt;/span&gt;&lt;/p&gt;
[quote userid="24498" url="~/f/nordic-q-a/23256/iar-linker-error-li005-after-copying-from-one-example-to-another"]if I tried Go To Definition of nrf_drv_twi_init (which seems to be located in nrf_drv_twi.h) I would find it without any problems.[/quote]
&lt;p&gt;&lt;span&gt;That is finding a &lt;em&gt;&lt;strong&gt;declaration&lt;/strong&gt; &lt;/em&gt;- the function &lt;em&gt;prototype&lt;/em&gt; - not its &lt;em&gt;&lt;strong&gt;definition&lt;/strong&gt;&lt;/em&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is standard &amp;#39;C&amp;#39; stuff - nothing specifically to do with Nordic or IAR:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="http://c-faq.com/decl/decldef.html"&gt;http://c-faq.com/decl/decldef.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IAR linker Error[Li005] after copying from one example to another</title><link>https://devzone.nordicsemi.com/thread/207085?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 09:43:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:211035b2-55fc-42bf-9fa6-7339b37df562</guid><dc:creator>himanshu rawat</dc:creator><description>&lt;p&gt;what if below error is come&lt;/p&gt;
&lt;p&gt;Error[Li005]: no definition for &amp;quot;ble_advertising_on_ble_evt&amp;quot; [referenced from D:\Himanshu\nrf 51822\documents\nRF5_SDK_12.0.0_12f24da\sdk_ble_firm\examples\ &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IAR linker Error[Li005] after copying from one example to another</title><link>https://devzone.nordicsemi.com/thread/91453?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 14:42:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6551c13-5632-49a2-9b69-bbbe285b38e1</guid><dc:creator>jogosa</dc:creator><description>&lt;p&gt;Thank you, that fixed it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IAR linker Error[Li005] after copying from one example to another</title><link>https://devzone.nordicsemi.com/thread/91454?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 07:43:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b625bdc3-e0cf-488b-a0a0-5803fb096158</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Seems like you have not added the file &lt;code&gt;nrf_drv_twi.c&lt;/code&gt; to your project.&lt;/p&gt;
&lt;p&gt;Right click on the folder nRF_Drivers -&amp;gt; Add -&amp;gt; Add Files..., and add &lt;code&gt;nrf_drv_twi.c&lt;/code&gt;. That should solve the problem.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8865.twi.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>