<?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>error[li005] while adding PWM to BLE project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30284/error-li005-while-adding-pwm-to-ble-project</link><description>hi, im new to to work on nrf52 , 
 i took the BLE example and complied it - it works. i tried adding PWM to the project from examples. i also added the app_pwm files from the C/C++ compiler Preproccessor. 
 when i compile i get errors that there is no</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Feb 2018 09:51:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30284/error-li005-while-adding-pwm-to-ble-project" /><item><title>RE: error[li005] while adding PWM to BLE project</title><link>https://devzone.nordicsemi.com/thread/120229?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2018 09:51:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e442f23-f85d-4661-95f0-869d4777fbcf</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;They are all similar issues. I see that many of them refer to the nrf timer driver.&lt;/p&gt;
&lt;p&gt;It means that you have to do the same for the variables that the linker can&amp;#39;t find. First make sure that you have all the .c and .h files that it requires. If you still get the error, check if there is an #ifdef near the top of the .c files. If there is, you should add it in your sdk_config.h file.&lt;/p&gt;
&lt;p&gt;If you are unsure in what file the variable or function it is missing is decleared, check in the PWM example, as it should have them included already.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As I mentioned in the previous reply, note that some of the defines may not be included in sdk_config.h. If that is the case, copy paste it from the PWM project, or the ble_app_template project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error[li005] while adding PWM to BLE project</title><link>https://devzone.nordicsemi.com/thread/120121?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 14:00:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:139ab871-9a31-4fed-959c-3a8e670194dc</guid><dc:creator>yuval</dc:creator><description>&lt;p&gt;thanks Edvin.&lt;/p&gt;
&lt;p&gt;i found the PWM_ENABLED and activated it with &amp;quot;1&amp;quot;, but now im getting many more errors that have the same problem&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1518012005968v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;any suggestions ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error[li005] while adding PWM to BLE project</title><link>https://devzone.nordicsemi.com/thread/120051?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 07:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d40207b-9429-41e3-8ef0-e4f79ec2d3a6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What SDK are you using, and into what example are you trying to include it?&lt;/p&gt;
&lt;p&gt;Have you enabled PWM from sdk_config.h?&lt;/p&gt;
&lt;p&gt;You have to look for #define APP_PWM_ENABLED 0 in sdk_config.h, and change it to #define APP_PWM_ENABLED 1&lt;/p&gt;
&lt;p&gt;If you can&amp;#39;t find APP_PWM_ENABLED in sdk_config.h it may have been stripped from that example. If you check the example located in SDK\examples\ble_peripheral\ble_app_template\... you will find all the defines in sdk_config.h, and you can copy the ones you need from there.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The reason you need this enabled is, as you see in the top of app_pwm.c, it checks for&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#if&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;NRF_MODULE_ENABLED&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;APP_PWM&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;So if APP_PWM_ENABLED is not 1, everything between&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#if NRF_MODULE_ENABLED(APP_PWM)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;...&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#endif&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;will not be included when the project is compiled, which is basically the entire app_pwm.c file.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>