<?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>Linking ESB library in Eclipse</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1882/linking-esb-library-in-eclipse</link><description>I&amp;#39;ve tried linking the ESB library (esb_arm.lib) in Eclipse by adding it to my nRF51822 project&amp;#39;s Makefile, but I am still getting undefined reference errors during build. Is there something special that needs to be done to include this library?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Sep 2017 17:43:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1882/linking-esb-library-in-eclipse" /><item><title>RE: Linking ESB library in Eclipse</title><link>https://devzone.nordicsemi.com/thread/8125?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 17:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe02b538-85e4-43c5-ae6c-a221b8955e8c</guid><dc:creator>chicagosoftware</dc:creator><description>&lt;p&gt;I had been fighting with this for a long time in Eclipse on Windows when porting an example that used nfc_t2t_lib_gcc.a, but I believe this resolution applies to other platforms and libraries.  Compilation worked but I would receive Linker error: cannot find -l ....&lt;/p&gt;
&lt;p&gt;Here is what I found.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;GENERAL&lt;/strong&gt;
&lt;strong&gt;-l&lt;/strong&gt; &lt;em&gt;(lowercase l)&lt;/em&gt; .... is where you put the name of your library.  If your library path is &lt;strong&gt;c:\yada\project\libABC.a&lt;/strong&gt; then your  &lt;strong&gt;-l&lt;/strong&gt; is  &lt;strong&gt;ABC&lt;/strong&gt;.   &lt;strong&gt;-l&lt;/strong&gt; is reserved for the library without the path.  It&amp;#39;s really important (as noted in the link at the bottom of this response) that  &lt;strong&gt;-l&lt;/strong&gt; adds &amp;quot;lib&amp;quot; to the front of the library name and &amp;quot;.a&amp;quot; to the end of the library name.  So, in the case of my example with nfc_t2t_lib_gcc.a, I actually needed to change the name of the file to libnfc_t2t_lib_gcc.a in order to use it with -l.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;-L&lt;/strong&gt; &lt;em&gt;(upper case L)&lt;/em&gt;.... is where you put the path to your library.  If your library path is **c:\yada\project\nfc_t2t_lib_gcc.a then your &lt;strong&gt;-L&lt;/strong&gt; is  &lt;strong&gt;c:/yada/project&lt;/strong&gt;.   -L is reserved for the path.  Notice we use forward slashes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;IN ECLIPSE&lt;/strong&gt;
Seems like different versions and set ups work differently but here are the locations in mine:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Project Properties &amp;gt; C/C++ Build &amp;gt; Settings &amp;gt; CGNU ARM Cross Linker &amp;gt; Libraries.&lt;/li&gt;
&lt;li&gt;Add the library name (without the &amp;quot;lib&amp;quot; prefix and &amp;quot;.a&amp;quot; extension, e.g. &amp;quot;ABC&amp;quot; if file name is libABC.a)&lt;/li&gt;
&lt;li&gt;Add the path as explained above.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;THE MISSING INFO&lt;/strong&gt;
Getting this nugget from the dead sea scrolls of linker documentation is what solved my problem after many hours.
&lt;a href="https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html"&gt;gcc.gnu.org/.../Link-Options.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking ESB library in Eclipse</title><link>https://devzone.nordicsemi.com/thread/8124?ContentTypeID=1</link><pubDate>Fri, 01 Aug 2014 10:23:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fcd6286-3547-4b20-8e92-fa0aa7d6cdb7</guid><dc:creator>Alain</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i have Problems when compiling the ESB example on eclipse.&lt;/p&gt;
&lt;p&gt;I got the following error:&lt;/p&gt;
&lt;p&gt;cannot find -lC:/eclipse-standard-kepler-SR2-win32/workspace/esb_rx/esb_gcc.a
collect2.exe: error: ld returned 1 exit Status&lt;/p&gt;
&lt;p&gt;What can i do?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking ESB library in Eclipse</title><link>https://devzone.nordicsemi.com/thread/8123?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2014 05:40:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ef5380f-3e93-4b2d-9be4-4e6364691f67</guid><dc:creator>Adam</dc:creator><description>&lt;p&gt;Solved the issue by manually disabling Radio and Timer2 using NVIC_DisableIRQ(...) in between.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking ESB library in Eclipse</title><link>https://devzone.nordicsemi.com/thread/8122?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2014 23:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13e2a75a-9581-4ed9-8707-3f228d746c39</guid><dc:creator>Adam</dc:creator><description>&lt;p&gt;Hi Håkon,&lt;/p&gt;
&lt;p&gt;I am trying to use the ESB library and SoftDevice on the same chip, but not at the same time. I am having an issue when switching to enable the SoftDevice after disabling the ESB library. I can get the ESB portion working fine. The problem occurs when I call nrf_esb_disable() to disable the ESB library and then enable the SoftDevice, sd_softdevice_enable() returns 0x1001 signaling that there is an incorrect interrupt configuration. I have tried disabling the timer interrupt and SWI that the ESB library are using after disabling it, but that doesn&amp;#39;t seem to work. Is there something special that needs to be done in between disabling ESB and enabling the SoftDevice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking ESB library in Eclipse</title><link>https://devzone.nordicsemi.com/thread/8121?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2014 09:04:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f89b66da-233f-44ba-bb31-a325fa950bf7</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Adam,&lt;/p&gt;
&lt;p&gt;This means that the library uses the peripherals that the softdevice uses, so that your application does not need to switch timers or similar.
You cannot run ESB/GZLL concurrent with the SoftDevice at this time.&lt;/p&gt;
&lt;p&gt;Best regards
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking ESB library in Eclipse</title><link>https://devzone.nordicsemi.com/thread/8120?ContentTypeID=1</link><pubDate>Sat, 15 Mar 2014 03:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20b8ab15-0915-4db8-b5e0-6e5a81d2dfcc</guid><dc:creator>Adam</dc:creator><description>&lt;p&gt;Thanks Håkon,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m assuming the esb_sd_resources_gcc.a lib can be used instead of the esb_gcc.a lib when the softdevice is used as well? Does this mean that the library calls can be made while the softdevice is running? Or do both libraries need to be included.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linking ESB library in Eclipse</title><link>https://devzone.nordicsemi.com/thread/8119?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2014 11:17:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d28a7f6-2c87-4055-b193-592c8762536f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Adam,&lt;/p&gt;
&lt;p&gt;You should link in the GCC build of the library, which is located here:
..\Nordic Semiconductor\nRF51 SDK_v5.1.0.36092\Nordic\nrf51822\Lib\esb\gcc&lt;/p&gt;
&lt;p&gt;Best regards
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>