<?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>Reduce MCUBoot startup time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94929/reduce-mcuboot-startup-time</link><description>We found that it took a long time for the nrfconnect sdk to power on the device to enter the application. Is there any way to reduce the startup time? 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 We have closed the log, and the startup time has reached 1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Dec 2022 09:46:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94929/reduce-mcuboot-startup-time" /><item><title>RE: Reduce MCUBoot startup time</title><link>https://devzone.nordicsemi.com/thread/402054?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2022 09:46:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bed60076-0889-4e97-833e-f605ce72992b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I cannot think of any&amp;nbsp;major drawbacks with selecting RCOSC clock source for this application. The average sleep current will increase slightly since the RCOSC source requires periodic calibration against the HFXO source (~1.5 uA), but I assume the bulb is mains powered. The RCOSC is also less accurate as you can see from the el. spec. here:&amp;nbsp;&lt;a title="Low frequency RC oscillator (LFRC)" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/clock.html?cp=4_0_0_4_3_3_3#unique_1732287760"&gt;Low frequency RC oscillator (LFRC)&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce MCUBoot startup time</title><link>https://devzone.nordicsemi.com/thread/402034?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2022 07:38:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55f841e8-2899-40bf-8497-aaf602d857b4</guid><dc:creator>Yeccc</dc:creator><description>&lt;p&gt;The first configuration, it seems to reduce more startup time.&lt;br /&gt;Does this modify have other effects?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce MCUBoot startup time</title><link>https://devzone.nordicsemi.com/thread/401679?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 11:18:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dcf86e2-0fa2-4d00-beb5-b36f8a249613</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Which configuration did you want to use, the one with LFXO or LFRC?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce MCUBoot startup time</title><link>https://devzone.nordicsemi.com/thread/401660?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 08:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a944ee95-0673-4d07-93e0-553d707dc212</guid><dc:creator>Yeccc</dc:creator><description>&lt;p&gt;Could you confirm it? &lt;br /&gt;Does this modify have other effects?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce MCUBoot startup time</title><link>https://devzone.nordicsemi.com/thread/401461?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 10:11:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8b59355-6ddd-4127-9306-38d3440c1375</guid><dc:creator>Yeccc</dc:creator><description>&lt;p&gt;Thanks for your support.&lt;/p&gt;
&lt;p&gt;Does this have any other impact?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce MCUBoot startup time</title><link>https://devzone.nordicsemi.com/thread/401456?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 09:58:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f67257c1-cd68-4390-b772-dc547d91e170</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thank you for explaining the reason you are looking to reduce the startup time. This is&amp;nbsp;valuable feedback which I will relay to the developers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was able to significantly reduce the startup time now by disabling boot validation that takes place on every reboot by default, and by changing the default clock configuration.&lt;/p&gt;
&lt;p&gt;Here are&amp;nbsp;my results:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;#1 with RCOSC as LF clock source&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Settings added to MCUBoot build:&lt;/p&gt;
&lt;div&gt;&lt;span&gt;- CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;- CONFIG_BOOT_VALIDATE_SLOT0&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;In light bulb app:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;-&amp;nbsp;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&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/pastedimage1671529853186v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;#2 with LFXO as LF clock source&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;
&lt;p&gt;Settings added to MCUBoot build:&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;-&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;CONFIG_SYSTEM_CLOCK_WAIT_FOR_STABILITY&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;- CONFIG_BOOT_VALIDATE_SLOT0&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;In light bulb app:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;-&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;CONFIG_SYSTEM_CLOCK_WAIT_FOR_STABILITY&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&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/pastedimage1671529981556v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;You may also consider using the&amp;nbsp;SYS_INIT() macro for functions that may benefit from being run before main().&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce MCUBoot startup time</title><link>https://devzone.nordicsemi.com/thread/401392?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 00:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60528121-0db8-4eb7-9c3c-6032b2ce12cb</guid><dc:creator>Yeccc</dc:creator><description>&lt;div class="trans-right"&gt;
&lt;div class="output-wrap small-font" data-domain-value="common"&gt;
&lt;div class="output-mod ordinary-wrap"&gt;
&lt;div class="output-bd" style="padding-bottom:0px;" dir="ltr"&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span&gt;The bulb device needs to be on soon after being powered on;&lt;/span&gt;&lt;/p&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;In addition, our bulb device is restored to factory settings through multiple power on/off sequences, and too long startup time will also affect the user experience.&lt;/span&gt;&lt;/p&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;I really hope you can solve this issue. Thanks a lot.&lt;br /&gt;&lt;/span&gt;&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: Reduce MCUBoot startup time</title><link>https://devzone.nordicsemi.com/thread/401268?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 13:05:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c789fadb-606a-47f2-a990-df513632e666</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming. I measure 1.1 second here with the original sample project&amp;nbsp;between systeminit() in MCUBoot and app main(). I am checking internally if there is a way to optimize this.&amp;nbsp;&lt;/p&gt;
&lt;p&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/pastedimage1671455148239v1.jpeg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit:&amp;nbsp;&lt;/strong&gt;for me to better understand the problem, could you say something about how this delay affects your application?&amp;nbsp;For instance, if your app requires&amp;nbsp;frequent reboots?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce MCUBoot startup time</title><link>https://devzone.nordicsemi.com/thread/401196?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 08:55:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62be9211-0d9c-42cb-9b2d-8f4718ce8b14</guid><dc:creator>Yeccc</dc:creator><description>&lt;p&gt;Our project is based on the light_bulb.&lt;br /&gt;It&amp;#39;s a matter over thread project.&lt;br /&gt;&lt;br /&gt;We output GPIO high level in Main application, and then use oscilloscope to check the time difference between 3.3V power supply and GPIO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce MCUBoot startup time</title><link>https://devzone.nordicsemi.com/thread/401182?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 08:08:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0de6793-fb8f-4ba8-ab5a-d024f5f5f951</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What SDK sample is your project based on? Is it Matter, Homekit, or something else? And how do you measure the startup time?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce MCUBoot startup time</title><link>https://devzone.nordicsemi.com/thread/401160?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 01:02:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4667393a-0dc5-4daf-979e-ef8dcacfc90b</guid><dc:creator>Yeccc</dc:creator><description>&lt;p&gt;Thank you for your help.&lt;br /&gt;RNG is set by default in the nrf52840dk_nrf52840.overlay.&lt;/p&gt;
&lt;p&gt;And the signature type is ECDSA_P256, it&amp;#39;s also set by default on the nrfConnect SDK of 2.1.1 version.&lt;/p&gt;
&lt;p&gt;We expect the startup time to be reduced to 500ms,&lt;/p&gt;
&lt;div class="trans-right"&gt;
&lt;div class="output-wrap small-font" data-domain-value="common"&gt;
&lt;div class="output-mod ordinary-wrap"&gt;
&lt;div class="output-bd" style="padding-bottom:0px;" dir="ltr"&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;this is very important for our bulb product. Please help solve it as soon as possible. Thanks a lot.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;# MCUBoot settings
#
# CONFIG_SINGLE_APPLICATION_SLOT is not set
# CONFIG_BOOT_SIGNATURE_TYPE_NONE is not set
# CONFIG_BOOT_SIGNATURE_TYPE_RSA is not set
CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reduce MCUBoot startup time</title><link>https://devzone.nordicsemi.com/thread/401044?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2022 12:21:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c58eef5-c8c7-4201-947c-135c38975054</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please try to select the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/rng.html?cp=4_0_0_5_20"&gt;RNG — Random number generator&lt;/a&gt;&amp;nbsp;as the entropy source instead of using the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/cryptocell.html?cp=4_0_0_5_5"&gt;CRYPTOCELL — ARM TrustZone CryptoCell 310&lt;/a&gt;&amp;nbsp;(default) by adding the following to your board DT file (or in an overlay):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	chosen {
		zephyr,entropy = &amp;amp;rng;
		};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This accounts for about 400 ms of the startup time according to the thread here:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93192/high-current-400ms-startup-delay-ble-beacon-using-rc-oscillator"&gt;High Current 400ms+ Startup Delay BLE Beacon Using RC Oscillator&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What signature type have you selected for MCUBoot, RSA or&amp;nbsp;ECDSA_P256?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>