<?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>GPIOTE + bootloader_secure + SoftDevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38380/gpiote-bootloader_secure-softdevice</link><description>hello, 
 I faced interesting problem which I fortunately solved and would like to share with others because I hadn&amp;#39;t found any information on this. 
 I am using nRF51822 on my custom board. The SoftDevice , secure_bootloader and my custom BLE application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Sep 2018 09:52:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38380/gpiote-bootloader_secure-softdevice" /><item><title>RE: GPIOTE + bootloader_secure + SoftDevice</title><link>https://devzone.nordicsemi.com/thread/148770?ContentTypeID=1</link><pubDate>Fri, 14 Sep 2018 09:52:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:020c6f54-d18a-4571-b694-cf1cf5626527</guid><dc:creator>Timur Beganovic</dc:creator><description>&lt;p&gt;It seems that I solved this issue applying the &lt;em&gt;le_dfu_transport_close()&lt;/em&gt; function in the Bootloader, as I described in the first post. I published this thread in order to help other people who might face the same problem.&lt;/p&gt;
&lt;p&gt;Thank you for your response and your suggestion regarding the PWM library.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Timur&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE + bootloader_secure + SoftDevice</title><link>https://devzone.nordicsemi.com/thread/148340?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 08:19:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b25fab67-1d44-4bf4-8d1f-8383624729c1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is quite complex, and there has been a lot of&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/search?q=PWM%20inversion"&gt;DevZone treads&lt;/a&gt; about it earlier. I suggest you use the&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/lib_pwm.html?cp=4_0_7_3_24"&gt;PWM library&lt;/a&gt;&amp;nbsp;from the SDK as it has been designed to avoid this issue. It essentially does the same thing as you, using a TIMER and GPIOTE.&lt;/p&gt;
&lt;p&gt;(Note that this is not an issue on the nRF52, as there the GPIOTE peripheral has a set and clear task in addition to a toggle task. There is also a separate PWM peripheral in the nRF52).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE + bootloader_secure + SoftDevice</title><link>https://devzone.nordicsemi.com/thread/148224?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 13:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1249083d-8e84-4ae4-a734-e90dd4ca8db2</guid><dc:creator>Timur Beganovic</dc:creator><description>&lt;p&gt;Well, it really&amp;nbsp; seems like some events get lost but I am wondering why it happens. I am using GPIOTE channels and NRF_TIMERs which are open when SoftDevice enabled.&lt;/p&gt;
&lt;p&gt;I am using SDK 12.3 secure_bootloader.&amp;nbsp; I handle the PWM myself using GPIOTE channels.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE + bootloader_secure + SoftDevice</title><link>https://devzone.nordicsemi.com/thread/148212?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 13:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dfe93da-a2db-4eff-a142-bc830e756255</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The only thing I can think of is that the PWM signal might be reverted. This is a known issue on the nRF51 series, as GPIOTE only has a toggle task. If you lose an event for some reason, so that a single toggle does not occur, the result is that the output PWM signal is reverted, giving you a different LED intensity.&lt;/p&gt;
&lt;p&gt;Which SDK version are you using? And do you handle the PWM generation yourself, or do you use the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/lib_pwm.html?cp=4_0_7_3_24"&gt;PWM library&lt;/a&gt;? The PWM library in SDK 12.3 has been designed to mitigate the risk for actually triggering this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>