<?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>nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14335/nrf52-pwm-glitch-error</link><description>I have an implementation that is using a PWM output to drive a LED. It has been observed that when the LED is on in a constant drive state, fixed PWM output train, the LED will &amp;quot;flash&amp;quot;. i.e. change intensity for a short period, and then return to the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Jun 2022 10:54:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14335/nrf52-pwm-glitch-error" /><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/374867?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2022 10:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:361cc73d-8a7d-4987-838f-223e8abafef4</guid><dc:creator>Alex@harmoniumLED</dc:creator><description>&lt;p&gt;Didrik,&lt;br /&gt;&lt;br /&gt;I have solved the issue with the help and hints of the old ticket, so, may be, it does not worth to make new? Your advice?&lt;br /&gt;&lt;br /&gt;I have edited my reply, added this note - &amp;quot;solved&amp;quot;.&lt;br /&gt;&lt;br /&gt;Alex.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/374864?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2022 10:41:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff7de6f0-4296-451c-af29-2034b5c999a1</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/alex"&gt;Alex&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Please open a new ticket, rather than replying to one that is old.&lt;/p&gt;
&lt;p&gt;That way, it is easier for us to help you with your problem.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/374859?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2022 10:26:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:163336d6-5b12-4493-9af7-68369c19063c</guid><dc:creator>Alex@harmoniumLED</dc:creator><description>&lt;p&gt;I have same issue.&lt;br /&gt;&lt;br /&gt;I use one PWM module, two channels of it.&lt;br /&gt;I tried two chips from different lots. NRF52832 QFAA E0 2041 NU &amp;amp;&amp;nbsp;&lt;span&gt;NRF52832 QFAA E0 2132 UU.&lt;br /&gt;It glitches unpredictably and in two ways. The simplest way is as described above, just the running frequency of my PWN is&amp;nbsp;higher.&lt;br /&gt;Yes, looks like DMA reads 0 instead of the value, needed.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt="Glitch type 1" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_20220630_5F00_125511.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;The other case is not so easy, because whole sequence is almost totally destroyed.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_20220630_5F00_132122.jpg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And this moment, zoomed:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_20220630_5F00_132139.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;Interesting, that it happens 100%, when you do not use DEBUG tool, and does not happen, if you are running DEBUG session.&lt;br /&gt;&lt;br /&gt;Alex.&lt;br /&gt;&lt;br /&gt;P.S. I&amp;#39;ve switched this on in sdk_config.h:&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1656586184508v1.png" alt=" " /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And both types of issue are gone.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54751?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2017 16:32:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1100e8ef-8dc3-4785-81b5-1343e75817e1</guid><dc:creator>Marc</dc:creator><description>&lt;p&gt;Following the suggestion of nRF52832 Errata Attachment, Anomaly 109 Addendum, DMA access transfers might be corrupted (&lt;a href="http://infocenter.nordicsemi.com/pdf/nRF52_PAN_109_add_v1.1.pdf)"&gt;infocenter.nordicsemi.com/.../nRF52_PAN_109_add_v1.1.pdf)&lt;/a&gt; section 3.5.1 ONLY USE 3 CHANNELS, So I split my leds on 2 PWM instead of one and it solved my problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54749?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2017 08:18:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc8bdda7-288f-4ed5-8fd9-457c5a79200a</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;@Marc: This might be related to this product anomaly: &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev1.errata/anomaly_832_109.html?cp=2_2_1_0_1_31"&gt;[109] DMA: DMA access transfers might be corrupted&lt;/a&gt;. The case in Ole&amp;#39;s link turned out to be a simple oscilloscope aliasing issue. The measurements shown in the images were done at a low sampling rate which happened to produce a visible waveform when the clock was running on the RC oscillator with poor accuracy. When the clock switched to the HF external crystal with high accuracy the scope produced an aliased signal. Notice user &amp;#39;grow mane&amp;#39;s comment from June 4th 2016.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54750?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2017 08:05:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49e48b37-5f4a-408a-a35b-6495d6b4df40</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;We have seen some similar cases which so far have had one of two solutions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;This particular case is probably caused by this product anomaly: &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev1.errata/anomaly_832_109.html?cp=2_2_1_0_1_31"&gt;[109] DMA: DMA access transfers might be corrupted&lt;/a&gt;. In general, if you e.g. are using PWM to fade an LED and you see noticeable flickering then this might be the cause.&lt;/li&gt;
&lt;li&gt;It can be a simple issue of measurement error. In the case linked to by Ole June 7th 2016, &lt;a href="https://devzone.nordicsemi.com/question/82472/nrf52-pwm-glitch-error/"&gt;nRF52 PWM Glitch Error&lt;/a&gt;, I believe the issue turned out to be an oscilloscope aliasing issue. The measurements shown in the images were done at a low sampling rate which happened to produce a visible waveform when the clock was running on the RC oscillator with poor accuracy. When the clock switched to the HF external crystal with high accuracy the scope produced an aliased signal. If this is the issue, you should not see any visible flickering when fading an LED. It is only visible on a poorly configured oscilloscope.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54748?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2017 16:26:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fbcef32-20dc-4bae-9fe5-caa83b34d74f</guid><dc:creator>Marc</dc:creator><description>&lt;p&gt;I have the same problem. sd_clock_hfclk_request().didn&amp;#39;t work for me. I have 4 leds connected to PWM0 (nrf52) and it is only when I change (fade in/out 1 sec) NRF_PWM-&amp;gt;OUT[2] (connected to P0.27) that I see glitches at NRF_PWM-&amp;gt;OUT[0] (P0.3)&lt;/p&gt;
&lt;p&gt;As a workaround, I set bit 31 of NRF_PWM0-&amp;gt;PSEL.OUT[0] to disconnect it while I&amp;#39;m not using it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54747?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2016 17:53:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7672f8d3-2c83-4c9d-ae97-cad9bd8009d9</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;Daniel,&lt;/p&gt;
&lt;p&gt;We have seen the same thing here but this only works on the DK board.  When we do this in our custom application on our hardware it doesn&amp;#39;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54746?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2016 17:32:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2eb9f6f-37f1-4b24-8489-5a651969e968</guid><dc:creator>Daniel Veilleux</dc:creator><description>&lt;p&gt;And if I comment out the call to sd_app_evt_wait in the firmware that I have been using to test for the glitch then the glitch goes away. Not calling sd_app_evt_wait is the only workaround that I have seen so far that works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54745?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 16:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d02e1b6-1bc7-4115-86c4-bd7e45627a51</guid><dc:creator>Daniel Veilleux</dc:creator><description>&lt;p&gt;I have also seen it while using the synthesized LFCLK source and on an nRF52 Rev 1 DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54744?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2016 23:06:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2a35c14-9e55-4420-8f88-690c5984e9c0</guid><dc:creator>Daniel Veilleux</dc:creator><description>&lt;p&gt;Furthermore, the glitch happens when using constant latency mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54743?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2016 19:55:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c77ec7d6-ba27-45f3-800c-b32426d311da</guid><dc:creator>Daniel Veilleux</dc:creator><description>&lt;p&gt;I can confirm that the glitch still happens even if sd_clock_hfclk_request() is used. I am able to reproduce the glitch consistently on my nRF52 Rev C DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54742?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2016 03:28:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de8c5b87-eb7d-437e-88fe-7883f3862e91</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;Ole, we don&amp;#39;t have the option of using the high frequency clock since it consumes to much current.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54741?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 18:23:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82995479-9986-48cd-936f-284dc91fc0d7</guid><dc:creator>Michael Dierks</dc:creator><description>&lt;p&gt;Ole, have you seen the updated comments from grow mane on the linked case, from 06 June?  They relate to possible phase shift issues between the 32kHz and the high freq clock.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54740?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 17:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ece0f7a-184d-467d-ba19-9e837c123133</guid><dc:creator>Michael Dierks</dc:creator><description>&lt;p&gt;The chip is the nRF52832, variant QFAA BB.  I will update the question with the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54737?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 09:38:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0768d25f-cf8a-47b2-a1f8-810c934fd79d</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Could you also attach the code you use to set up the pwm?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54738?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 08:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc8431c4-26ac-4f46-a824-2eda3bbef0de</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Which chip revision do you have? &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/compatibility_matrix/ic_revision_overview.html?cp=2_1_0"&gt;infocenter.nordicsemi.com/.../ic_revision_overview.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 PWM Glitch Error</title><link>https://devzone.nordicsemi.com/thread/54739?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 08:51:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c59314cf-f8e7-4775-ba1a-ff3c49d21531</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;We have seen similar issues, but I have not been able to reproduce it here. It looks like the problem is related to the HFCLK switching from RC to XTAL, which happens every time the SoftDevice uses the radio. Try to use XTAL all the time by calling &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html#ga3e5afb495a1b0307c749cc268df94a74"&gt;sd_clock_hfclk_request()&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/70756/high-frequency-pwm-shifts-phase-when-radio-is-active/?answer=82188#post-id-82188"&gt;Here&lt;/a&gt; is the link for the other case.&lt;/p&gt;
&lt;p&gt;I will investigate this further here. Hopefully I will be able to reproduce it (I believe it only happens on some chips, and that is why I have not been able to reproduce it yet).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>