<?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>Control PWM in MCUboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116329/control-pwm-in-mcuboot</link><description>To output PWM signal as early as possible after powering on the NRF5340DK, I added the same code in mcuboot/boot/zephy/main.c and mcuboot.overlay as in the app core. This allows the bootloader to generate the PWM signal during its execution. However,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Jan 2025 21:00:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116329/control-pwm-in-mcuboot" /><item><title>RE: Control PWM in MCUboot</title><link>https://devzone.nordicsemi.com/thread/517805?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 21:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d61fa68-4fff-4050-ae4a-45a6c5a11786</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi bf-wei,&lt;/p&gt;
&lt;p&gt;My apologies for the late follow-up. There was a holiday period, and it seems no one was able to look into this case while I was out of office. &lt;br /&gt;I have now returned and will resume helping you.&lt;/p&gt;
&lt;p&gt;Do I understand right that you just need a simple constant PWM signal, no change in duty cycle or period?&lt;/p&gt;
&lt;p&gt;I am not certain it is the netcore that causes the reset there. We might need to reinvestigate the cause.&lt;/p&gt;
&lt;p&gt;Do you mind sharing the modified MCUboot code for me to reproduce the issue? I assume&amp;nbsp;the application can be as simple as Hello World with PWM drivers enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control PWM in MCUboot</title><link>https://devzone.nordicsemi.com/thread/515627?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2024 02:35:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cb0b904-bde1-4092-8c24-ef3395b5be02</guid><dc:creator>bf-wei</dc:creator><description>&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;My goal is to output a PWM signal during the MCUboot stage and have it continue uninterrupted until the app core is initialized. However, it seems that the net core resets the GPIO configuration in the process. Could I do something to avoid it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control PWM in MCUboot</title><link>https://devzone.nordicsemi.com/thread/515526?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 14:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5f4cc7e-ecc5-4084-a17c-0ab784e4bee8</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi bf-wei,&lt;/p&gt;
&lt;p&gt;Could you please give more information on what happen when MCUboot jumps to the application core? What&amp;nbsp;exactly happen when &amp;quot;PWM signal is interrupted?&amp;quot;&lt;/p&gt;
&lt;p&gt;What is the expectation before and after MCUboot pass processing to application?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control PWM in MCUboot</title><link>https://devzone.nordicsemi.com/thread/514956?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2024 17:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7fcd17d-b469-48dd-96d6-3f1270041f0a</guid><dc:creator>bf-wei</dc:creator><description>&lt;div class="flex-shrink-0 flex flex-col relative items-end"&gt;
&lt;div class="pt-0"&gt;
&lt;div class="gizmo-bot-avatar flex h-8 w-8 items-center justify-center overflow-hidden rounded-full"&gt;
&lt;div class="relative p-1 rounded-sm flex items-center justify-center bg-token-main-surface-primary text-token-text-primary h-8 w-8"&gt;
&lt;p&gt;Sorry for the late reply. This method doesn&amp;rsquo;t seem to work, as the netcore is initialized first and the PWM settings have already been reset. So&amp;nbsp;app core set FORCEOFF is&amp;nbsp;already too late. On the other hand, I have tried to set FORCEOFF in mcuboot. But it doesn&amp;#39;t work, either.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Control PWM in MCUboot</title><link>https://devzone.nordicsemi.com/thread/510376?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 21:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55875462-5879-400f-a20d-490ca0223e41</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The temporary disruption might be due to the reconfiguration of shared resources when the net core initializes. Could you try delaying the net core initialization until the app core has fully booted and taken control of the PWM?&lt;/p&gt;
&lt;p&gt;You can do this by using the &lt;code&gt;NETWORK.FORCEOFF&lt;/code&gt; register. Please refer to pages 67 and 71 &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf5340/page/keyfeatures_html5.html"&gt;of the datasheet &lt;/a&gt;for more details.&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110808/race-condition-for-gpio-sharing-between-net-core-and-app-core/481728"&gt; Keep this thread as a reference&lt;/a&gt;, as it discusses the &lt;code&gt;NETWORK.FORCEOFF&lt;/code&gt; configuration.&lt;/p&gt;
&lt;p&gt;Start the PWM in the app core as soon as possible after boot and perform any other necessary initializations required by the app core, ensuring no interference. Once the app core has initialized the PWM and is ready for the net core to start, it can clear the &lt;code&gt;NETWORK.FORCEOFF&lt;/code&gt; register to release the net core.&lt;/p&gt;
&lt;p&gt;I’m not completely certain if this is the right method, but please give it a try and let me know the outcome.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>