<?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>Trigger PWM using nrf_drv_pwm.h and then go to bootloader without interrupting PWM sequence</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106767/trigger-pwm-using-nrf_drv_pwm-h-and-then-go-to-bootloader-without-interrupting-pwm-sequence</link><description>Hi! 
 Is it possible to trigger a PWM sequence in application and then directly go to bootloader without interrupting the PWM sequence?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Dec 2023 12:53:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106767/trigger-pwm-using-nrf_drv_pwm-h-and-then-go-to-bootloader-without-interrupting-pwm-sequence" /><item><title>RE: Trigger PWM using nrf_drv_pwm.h and then go to bootloader without interrupting PWM sequence</title><link>https://devzone.nordicsemi.com/thread/461278?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2023 12:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddbe59e1-0c69-4ce2-b10b-7e690c2e380d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Olof,&amp;nbsp;&lt;br /&gt;You can find this in the datasheet of the chip:&amp;nbsp;&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/pastedimage1703075726587v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Any kind of reset would reset the peripherals. So there isn&amp;#39;t any option that you can reset&amp;nbsp;the chip without affecting the PWM peripheral.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What you are driving the PWM for ? Is it possible to have a short interrupt when switching to the bootloader from the application ?&amp;nbsp;&lt;br /&gt;You can try to start PWM right at the beginning of the bootloader so that there will be a very short interrupt in the PWM output, should be just a few ms.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s the hard requirement that it should not have any interrupt at all, you may want to think about jumping to the bootloader without doing a reset. But that would be quite more complex to&amp;nbsp;be able to run the bootloader without resetting the chip.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trigger PWM using nrf_drv_pwm.h and then go to bootloader without interrupting PWM sequence</title><link>https://devzone.nordicsemi.com/thread/461216?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2023 08:35:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c33edde-4a49-4a0b-a0c6-3e29bf993b5e</guid><dc:creator>Olof Johnsson</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;nRF5_SDK_17.1.0&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;nrf_drv_pwm_simple_playback&lt;/span&gt;&lt;span&gt;(&amp;amp;m_pwm1, &amp;amp;seq_green, &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;NRF_DRV_PWM_FLAG_STOP&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- nordic bootloader&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-&amp;nbsp;&lt;span class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;&lt;code&gt;&lt;strong&gt;sd_nvic_SystemReset();&lt;/strong&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trigger PWM using nrf_drv_pwm.h and then go to bootloader without interrupting PWM sequence</title><link>https://devzone.nordicsemi.com/thread/461091?ContentTypeID=1</link><pubDate>Tue, 19 Dec 2023 14:14:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74ba3265-b53e-4bdb-8f17-43a2f685a213</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Olof,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you give some more information on:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Which SDK you are using ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- How do you do the PWM sequence in your application now ?&lt;/p&gt;
&lt;p&gt;- Do you use our bootloader or you are writing your own bootloader ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- When&amp;nbsp; you switch from the application to the bootloader, did you do a reset ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>