<?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>Enable PWM in SDK Mesh 2.1.1 light_switch_example (server)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37931/enable-pwm-in-sdk-mesh-2-1-1-light_switch_example-server</link><description>Hi, I&amp;#39;m having troubles adding PWM in light_switch_proxy_server example in Mesh SDK v. 2.1.1. 
 It seems that the PWM driver and instances are not correctly enabled, looking at the nrfx_pwm.h: 
 And also looking at the nrfx_pwm.c , where everything looks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Sep 2018 07:59:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37931/enable-pwm-in-sdk-mesh-2-1-1-light_switch_example-server" /><item><title>RE: Enable PWM in SDK Mesh 2.1.1 light_switch_example (server)</title><link>https://devzone.nordicsemi.com/thread/148536?ContentTypeID=1</link><pubDate>Thu, 13 Sep 2018 07:59:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4130e1f5-9af5-4afe-83d8-00afc08f7e97</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Paulo,&lt;/p&gt;
&lt;p&gt;Great to hear that you figured it out! I was referring to the sdk_config.h header file from sdk 15. When I used that sdk_config file, I did not receive the same error.&lt;/p&gt;
&lt;p&gt;It is also worth mentioning that there is an &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.2.0/md_examples_experimental_dimming_README.html?cp=4_1_0_4_1"&gt;experimental dimming example&lt;/a&gt; in the mesh sdk v2.2.0 that uses PWM from SDK 15. I was made aware of this today.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable PWM in SDK Mesh 2.1.1 light_switch_example (server)</title><link>https://devzone.nordicsemi.com/thread/148500?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 21:13:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a551bc41-6607-441a-a0fc-e974c60b30e2</guid><dc:creator>Paulo.Zacarias</dc:creator><description>&lt;p&gt;I finally found the solution &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33349/upgrade-to-the-nrfx-api-sdk-v15"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I completely removed code section that as the reference to the legacy driver, PWM_ENABLED, in sdk_config:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;e&amp;gt; PWM_ENABLED - nrf_drv_pwm - PWM peripheral driver - legacy layer
//==========================================================
#ifndef PWM_ENABLED
#define PWM_ENABLED 0
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It seems that for some reason sdk_config.h&amp;nbsp; doesn&amp;#39;t show up in the dependencies of &lt;em&gt;main.c&lt;/em&gt; on Mesh SDK 2.0.1 proxy_server example:&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1536786547616v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;But it does for 2.1.1 and 2.2.0, maybe that&amp;#39;s the reason why this issue only showed up in this newer releases. &lt;br /&gt;&lt;br /&gt;BR,&lt;br /&gt;Paulo Zacarias&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable PWM in SDK Mesh 2.1.1 light_switch_example (server)</title><link>https://devzone.nordicsemi.com/thread/148498?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 20:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1cbd6f9-bb7f-4de7-981c-971403d91808</guid><dc:creator>Paulo.Zacarias</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Today I tried to enable PWM driver in Mesh SDK &lt;strong&gt;2.2.0&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Got exactly the same error: &lt;strong&gt;&amp;#39;NRFX_PWM0_INST_IDX&amp;#39; undeclared here (not in a function)&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable PWM in SDK Mesh 2.1.1 light_switch_example (server)</title><link>https://devzone.nordicsemi.com/thread/148290?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 20:06:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2eeaf38-1ca1-4970-9303-1277f390241c</guid><dc:creator>Paulo.Zacarias</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;To which sdk_config are you referring to?&lt;br /&gt;&lt;br /&gt;Is it the one that is inside: &lt;em&gt;\examples\light_switch\proxy_server\include\&lt;/em&gt; ?&lt;br /&gt;&lt;br /&gt;Because I&amp;nbsp;compared that one from&amp;nbsp;&lt;span&gt;Mesh SDK 2.0.1 and&amp;nbsp;Mesh SDK 2.1.1 and they are identical.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;BR,&lt;br /&gt;Paulo Zacarias&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable PWM in SDK Mesh 2.1.1 light_switch_example (server)</title><link>https://devzone.nordicsemi.com/thread/147792?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 11:53:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebc1b305-fa32-44be-882d-57e5347dfae2</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Paulo,&lt;/p&gt;
&lt;p&gt;I am taking a look at it now. I believe it has something to do with the sdk_config file. I tried copying the sdk_config.h file from sdk 15.0.0 &amp;amp; then the error did not appear anymore. I tried updating the config file from sdk 15 to include all of the mesh related things, but then I received quite a few linking errors. I will update this thread when I have more info.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable PWM in SDK Mesh 2.1.1 light_switch_example (server)</title><link>https://devzone.nordicsemi.com/thread/147725?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 08:20:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7730d94b-98b5-4cf5-a201-0c9608b1a474</guid><dc:creator>Paulo.Zacarias</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thanks for your response.&lt;br /&gt;&lt;br /&gt;I had a look at the new release of Mesh SDK 2.2.0, there seems to be a lot of changes.&lt;/p&gt;
&lt;p&gt;So, if this issue has a simple fix, I would rather keep with 2.1.1 for now as it is closer to 2.0.1.&lt;br /&gt;&lt;br /&gt;Note that I already enabled successfully PWM in Mesh SDK 2.0.1, is on the 2.1.1 that I&amp;#39;m having problems.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Paulo Zacarias&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable PWM in SDK Mesh 2.1.1 light_switch_example (server)</title><link>https://devzone.nordicsemi.com/thread/147390?ContentTypeID=1</link><pubDate>Wed, 05 Sep 2018 13:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ba39dd7-e4ef-4a5f-b248-015501a445c4</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Paulo,&lt;/p&gt;
&lt;p&gt;Very sorry for the delayed response. Do you still want to use mesh sdk v2.1.1 or would you rather use the latest v2.2.0? There have been a few changes that might be useful for you. I will check out what is going wrong as soon as you let me know which mesh sdk you would like to use. Have you already taken a look at the documentation provided here (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.1.1/md_doc_getting_started_how_to_nordicSDK.html?cp=4_1_1_3_6"&gt;v2.1.1&lt;/a&gt; &amp;amp; &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v2.2.0/md_doc_getting_started_how_to_nordicSDK.html?cp=4_1_0_1_7"&gt;v2.2.0&lt;/a&gt;)?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable PWM in SDK Mesh 2.1.1 light_switch_example (server)</title><link>https://devzone.nordicsemi.com/thread/147054?ContentTypeID=1</link><pubDate>Mon, 03 Sep 2018 19:56:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:495aab33-db87-491f-8a07-3d09d1446cf2</guid><dc:creator>Paulo.Zacarias</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I just confirm that this is a problem with Mesh SDK 2.1.1.&lt;br /&gt;&lt;br /&gt;I tried again using a fresh new project to add PWM to the light_switch server and proxy_server on Mesh SDK 2.0.1, both worked fine.&lt;br /&gt;&lt;br /&gt;On 2.1.1 it fails to build due to the issue I described previously, on both server and proxy_server examples!&lt;br /&gt;&lt;br /&gt;Any idea how to fix this?&lt;br /&gt;&lt;br /&gt;Thank you!&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Paulo Zacarias&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>