<?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 problems</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42107/pwm-driver-problems</link><description>I am having problem with the PWM driver. 
 I need PWM for a very simple application where I need it to drive a buzzer with a series of 50% duty cycle pulses. 
 Trying to set it up gives me problems with the documentation level, so I am trying to guess</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Jan 2019 08:08:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42107/pwm-driver-problems" /><item><title>RE: PWM Driver problems</title><link>https://devzone.nordicsemi.com/thread/163888?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 08:08:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac4e11dc-f048-4cab-b9a3-07e351b6ef99</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;After investigating further I found the reason, it was not related to the pwm driver module but to to bsp button handling. For some strange reason it appeared when I started to use pwm. the button was working previously. I was&amp;nbsp;getting a sleep event from the button module and&amp;nbsp;I have not seen this before so it was really strange..... Anyway case closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Driver problems</title><link>https://devzone.nordicsemi.com/thread/163873?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 05:25:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4790ab8b-fc59-4e7a-8957-b52958fc81fc</guid><dc:creator>Ashish</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think I have ran into similar problem once. Are you using the pwm instance 0? If yes, can you try changing it to instance 1?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrf_drv_pwm_t m_pwm0 = NRF_DRV_PWM_INSTANCE(1);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Driver problems</title><link>https://devzone.nordicsemi.com/thread/163818?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 15:59:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e49d425-bf44-44c8-9d70-3107c0852c6a</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Important information, the error described (processor reset) occurs when running with a SoftDevice (S140).&lt;/p&gt;
&lt;p&gt;After writing the initial post I have tried to make a PWM project without a SoftDevice, mainly to try to debug. In this case the code above runs without error. So it seems that it is related to the SoftDevice. In the original code the playback is initiated by an event from the bsp app_button layer.&lt;/p&gt;
&lt;p&gt;Unfortunately this also means that I am unable to debug the problem as the SoftDevice crashes into&amp;nbsp;app_error_fault_handler as soon as I try to debug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>