<?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>PWM Driver problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39601/pwm-driver-problem</link><description>Dear nordic team 
 I am using SEGGER EMBEDDED STUDIO and nrf52840 DK. I want to add some pwm nrf_drivers like nrf_nvic.c , nrf_soc.c , nrfx_pwm.c to my project. when i added nrfx_pwm.c to nrf_Drivers of my project, the program build correctly and without</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Oct 2018 08:35:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39601/pwm-driver-problem" /><item><title>RE: PWM Driver problem</title><link>https://devzone.nordicsemi.com/thread/153493?ContentTypeID=1</link><pubDate>Thu, 18 Oct 2018 08:35:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:057588ee-da4f-4c06-91f5-95ddd2665f52</guid><dc:creator>D</dc:creator><description>&lt;p&gt;Thank you for helpful advices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Driver problem</title><link>https://devzone.nordicsemi.com/thread/153492?ContentTypeID=1</link><pubDate>Thu, 18 Oct 2018 08:32:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbc9a705-1a97-41c5-a48f-2020285d06fc</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Correct, &lt;strong&gt;nrf_nvic.c &lt;/strong&gt;and &lt;strong&gt;nrf_soc.c&lt;/strong&gt; just contains functions that could be used when the SoftDevice is not used.&lt;/p&gt;
&lt;p&gt;So if you use the SoftDevice you don&amp;#39;t need these files.&lt;/p&gt;
&lt;p&gt;Note: I edited my previous reply (&lt;strong&gt;s132 to s140&lt;/strong&gt;), as I did not see that you used &lt;strong&gt;s140&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Driver problem</title><link>https://devzone.nordicsemi.com/thread/153491?ContentTypeID=1</link><pubDate>Thu, 18 Oct 2018 08:16:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:962d0c47-83de-45b1-94fc-f2e65583a4c6</guid><dc:creator>D</dc:creator><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;thank you for answering. yes you are right,&lt;/p&gt;
&lt;p&gt;I added this pass to the&amp;nbsp;sdk_confige.h of my project. now i deleted it but one question:&lt;/p&gt;
&lt;p&gt;it means project can work withou nrf_nvic.c and nrf_soc.c? and the reason is because we already have the bellow pass:&lt;/p&gt;
&lt;p&gt;../nRF5_SDK_current/components/softdevice/s140/headers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Driver problem</title><link>https://devzone.nordicsemi.com/thread/153490?ContentTypeID=1</link><pubDate>Thu, 18 Oct 2018 08:04:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7698d727-f7af-4f40-8af5-899d1be0a57e</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;br /&gt;&lt;br /&gt;In your include path, do you have both these includes?&lt;br /&gt;&lt;strong&gt;../../../../../../components/drivers_nrf/nrf_soc_nosd&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;../../../../../../components/softdevice/s140/headers&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;components/drivers_nrf/nrf_soc_nosd&lt;/strong&gt; contain a variant of &lt;strong&gt;nrf_error.h&lt;/strong&gt; that is only to be used without a SoftDevice. If you also have included&lt;strong&gt; components/softdevice/s140/headers&lt;/strong&gt; this will cause a problem.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;So if you have both these included remove the&lt;strong&gt; ../../../../../../components/drivers_nrf/nrf_soc_nosd&lt;/strong&gt; include from the Common configuration, as well as for the single file (&lt;strong&gt;nrf_nvic.c&lt;/strong&gt;) where you have edited it. Make sure you use inherited configuration.&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>