<?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>Failed to include app_button library to my project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33931/failed-to-include-app_button-library-to-my-project</link><description>Hi, I recently started to work with the nRF52 DK (PCA10040). 
 I&amp;#39;m trying to do some experiments with PWM, so I toke the pwn library as a base and tried to add the button support by including the app_button library in to the project. However I&amp;#39;m falling</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 May 2018 08:56:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33931/failed-to-include-app_button-library-to-my-project" /><item><title>RE: Failed to include app_button library to my project</title><link>https://devzone.nordicsemi.com/thread/130964?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 08:56:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0a5c4f8-04bf-43aa-889f-ee9356fcd5b4</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Paulo,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If you are having trouble adding certain things, I would recommend you to use the &amp;quot;Template_project&amp;quot; as a starting point. (found in the ["&lt;em&gt;SDK&lt;/em&gt;&lt;em&gt;\examples\peripheral\template_project"&lt;/em&gt;] folder.)&lt;/p&gt;
&lt;p&gt;It already has the libraries and drivers included, so the only thing you need to do is add:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;quot;app_button.h&amp;quot; 
#include &amp;quot;app_pwm.h&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;(&lt;em&gt;if you are getting an compiling error with &amp;quot;micro_ecc_lib_nrf52.lib&amp;quot; check&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/25379/how-get-micro_ecc_lib_nrf52-lib-file"&gt; this thread&lt;/a&gt;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to include app_button library to my project</title><link>https://devzone.nordicsemi.com/thread/130667?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 19:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:770afddd-3b9d-42ce-a918-edfe45775634</guid><dc:creator>Paulo.Zacarias</dc:creator><description>&lt;p&gt;Hello Martin,&lt;br /&gt;&lt;br /&gt;Thanks for your reply.&lt;br /&gt;&lt;br /&gt;I looked at the video tutorial. I added the files to the project:&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/useless.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I edited the &lt;strong&gt;sdk_config.h:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1525289504022v6.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Still&lt;strong&gt; app_button.c &lt;/strong&gt;shows like this&lt;strong&gt;:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/useless2.PNG" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;However, it gave me a different error when building:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1525288916706v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I added then the app_time.c as I did before for the app_button and edited again &lt;strong&gt;sdk_configh:&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1525289014812v3.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Similar to app_button, the&lt;strong&gt; app_timer.c&lt;/strong&gt; looks like this:&lt;strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1525289235228v4.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Then, when I try to Build I get several error related with&lt;strong&gt; app_timer.c:&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1525289401954v5.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to include app_button library to my project</title><link>https://devzone.nordicsemi.com/thread/130615?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 14:01:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:020635cc-8f61-4db8-9f11-57452fea638f</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Paulo,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; It seems that you did not include the app_button library correct.&lt;/p&gt;
&lt;p&gt;(&lt;em&gt;you cannot open app_button.h directly with CMIS, you have to add what you need in sdk_config.h to make it visible in CMIS)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Please follow what is described in this &lt;a href="https://www.youtube.com/watch?v=t-kh1EbesvI&amp;amp;list=PLx_tBuQ_KSqGHmzdEL2GWEOeix-S5rgTV&amp;amp;index=5" target="_blank" rel="noopener noreferrer"&gt;Youtube tutorial &lt;/a&gt;instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>