<?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>nRF5340 takes too long from Power ON to start executing the main application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118101/nrf5340-takes-too-long-from-power-on-to-start-executing-the-main-application</link><description>Hi, we have a custom nRF5340 based device. Has NISB and MCUBoot Enabled. It takes about 2.5 seconds to get into the application and BLE advertisement to start. Wanted to know how do we go about narrowing down the cause and potential solutions. We are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Jan 2025 09:55:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118101/nrf5340-takes-too-long-from-power-on-to-start-executing-the-main-application" /><item><title>RE: nRF5340 takes too long from Power ON to start executing the main application</title><link>https://devzone.nordicsemi.com/thread/520526?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2025 09:55:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb40208e-86eb-40e7-99d6-b80c0df03845</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Could you try disabling the external flash on the board, to see if that makes a difference?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 takes too long from Power ON to start executing the main application</title><link>https://devzone.nordicsemi.com/thread/520253?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 18:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c094b27-0302-4871-bcf4-6f3340721359</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;No we don&amp;#39;t use SD Card. We use QSPI with an encrypted external flash.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 takes too long from Power ON to start executing the main application</title><link>https://devzone.nordicsemi.com/thread/520151?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 11:46:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89cccc25-b3b6-431c-a58b-3cb364d33095</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Have you tried this on more than one board and nRF?&lt;/p&gt;
&lt;p&gt;There are things that can make the boot-up take longer, like eg.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/102410/nrf-connect-sdk-lazy-sd-card-initialize-to-startup-as-fast-as-possible"&gt;SD card initialization&lt;/a&gt;, or a &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/92774/hang-with-nrf5-sdk-17-1-0-bootloader-and-nrf-connect-sdk-2-1-0-application"&gt;missing&amp;nbsp;&lt;span&gt;DC/DC Converter.&lt;/span&gt;&lt;/a&gt;&amp;nbsp;But if what you are running on the custom board is exactly that same as what is running quickly on the DK, and the two are otherwise the same then I guess that&amp;#39;s not the problem.&amp;nbsp;&lt;/p&gt;
[quote user="neo_here"]seems like it&amp;#39;s MCU boot which is taking quite a while to find the image and jump to the image. This is on our board with the production firmware.&amp;nbsp;[/quote]
&lt;p&gt;I assume you are not using SD card for MCUBoot? And everything regarding MCUBoot was the same on the DK?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 takes too long from Power ON to start executing the main application</title><link>https://devzone.nordicsemi.com/thread/520060?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2025 23:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24513455-0f58-4bee-9d96-696fee0c2f89</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;I added some more timestamps in MCUBoot and seems like it spends more than a second just in mcuboot main()&lt;br /&gt;&lt;br /&gt;uart:~$ *** Booting NSIB v3.5.99-ncs1-1 ***&lt;br /&gt;Attempting to boot slot 0.&lt;br /&gt;Attempting to boot from address 0x8000.&lt;br /&gt;Verifying signature against key 0.&lt;br /&gt;Hash: 0x40...26&lt;br /&gt;Firmware signature verified.&lt;br /&gt;Firmware version 1&lt;br /&gt;�*** Booting mcuboot v3.5.99-ncs1-1 ***&lt;br /&gt;I: 12 Sectors of 4096 bytes&lt;br /&gt;I: alloc wra: 0, f58&lt;br /&gt;I: data wra: 0, d0&lt;br /&gt;I: qspi_encryption_config&lt;br /&gt;I: qspi_encr_setup OK&lt;br /&gt;&lt;strong&gt;I: Entering MCUBoot Main uptime -&amp;gt; 289&lt;/strong&gt;&lt;br /&gt;I: Starting bootloader&lt;br /&gt;I: Image index: 0, Swap type: none&lt;br /&gt;I: Image index: 1, Swap type: none&lt;br /&gt;I: Bootloader chainload address offset: 0x28000&lt;br /&gt;I: Jumping to the first image slot&lt;br /&gt;&lt;strong&gt;�: Till Before do_boot&amp;nbsp; uptime -&amp;gt; 1429&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 takes too long from Power ON to start executing the main application</title><link>https://devzone.nordicsemi.com/thread/520058?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2025 22:45:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfe91aca-a288-4b66-bdd2-0bb95e536aa5</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/elfving"&gt;Elfving&lt;/a&gt;&amp;nbsp; &amp;nbsp;Did some more experiments and I see this for time taken at each of the stages. NSIB starts executing immediately and seems like it&amp;#39;s MCU boot which is taking quite a while to find the image and jump to the image. This is on our board with the production firmware.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;*** Booting NSIB v3.5.99-ncs1-1 ***&lt;br /&gt;Attempting to boot slot 0.&lt;br /&gt;Attempting to boot�*** Booting NSIB v3.5.99-ncs1-1 ***&lt;br /&gt;Attempting to boot slot 0.&lt;br /&gt;Attempting to boot from address 0x8000.&lt;br /&gt;Verifying signature against key 0.&lt;br /&gt;Hash: 0x40...26&lt;br /&gt;&lt;strong&gt;&amp;lt;&amp;lt;&amp;lt;Above loads within 16ms of power ON&amp;gt;&amp;gt;&amp;gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Firmware signature verified.&lt;br /&gt;Firmware version 1&lt;br /&gt;�Booting (0x8000)&lt;br /&gt;&lt;strong&gt;&amp;lt;&amp;lt; +150ms &amp;gt;&amp;gt;&amp;gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;*** Booting mcuboot v3.5.99-ncs1-1 ***&lt;br /&gt;I: 12 Sectors of 4096 bytes&lt;br /&gt;I: alloc wra: 0, f40&lt;br /&gt;I: data wra: 0, f4&lt;br /&gt;I: qspi_encryption_config &lt;br /&gt;I: qspi_encr_setup OK&lt;br /&gt;I: Starting bootloader&lt;br /&gt;I: Image index: 0, Swap type: none&lt;br /&gt;I: Image index: 1, Swap type: none&lt;br /&gt;&lt;strong&gt;&amp;lt;&amp;lt; +600ms &amp;gt;&amp;gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I: Bootloader chainload address offset: 0x28000&lt;br /&gt;I: Jumping to the first image slot&lt;br /&gt;&lt;strong&gt;&amp;lt;&amp;lt; +1100ms &amp;gt;&amp;gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;[00:00:00.002,349] &amp;lt;dbg&amp;gt; qspi_nor: configure_chip: RDSR 40 QE 1 need 1: no-change&lt;br /&gt;*** Booting application v3.5.99-ncs1-1 ***&lt;br /&gt;[00:00:00.010,620] &amp;lt;inf&amp;gt; fs_nvs: 12 Sectors of 4096 bytes&lt;br /&gt;[00:00:00.010,620] &amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, f40&lt;br /&gt;[00:00:00.010,650] &amp;lt;inf&amp;gt; fs_nvs: data wra: 0, f4 &lt;br /&gt;[00:00:00.011,840] &amp;lt;inf&amp;gt; qspi_encr: qspi_encr_setup OK&lt;br /&gt;&lt;strong&gt;&amp;lt;&amp;lt; +512ms &amp;gt;&amp;gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 takes too long from Power ON to start executing the main application</title><link>https://devzone.nordicsemi.com/thread/520038?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2025 18:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c091dfc-f2b9-446c-9399-747013db8ad6</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;Yes, the HW hasn&amp;#39;t changed after this point.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 takes too long from Power ON to start executing the main application</title><link>https://devzone.nordicsemi.com/thread/519974?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2025 13:34:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0391d3f8-140e-44ec-830a-e9d76186f4a2</guid><dc:creator>Elfving</dc:creator><description>[quote user="neo_here"]GPIO Toggle at different stages[/quote]
&lt;p&gt;Yes, try this.&lt;/p&gt;
[quote user="neo_here"]I was able to find the Devzone case used by the HW team.&amp;nbsp;[/quote]
&lt;p&gt;And your HW was not changed after this point?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 takes too long from Power ON to start executing the main application</title><link>https://devzone.nordicsemi.com/thread/519640?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 19:10:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef03f69e-256e-4e7f-9015-3867eecfbf7d</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;I was able to find the Devzone case used by the HW team.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/support/312445"&gt;devzone.nordicsemi.com/.../312445&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Also, what would you suggest to investigate SW Delays, especially NISB and MCUBoot ? GPIO Toggle at different stages ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 takes too long from Power ON to start executing the main application</title><link>https://devzone.nordicsemi.com/thread/519463?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 08:32:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8a0f1db-7f27-4abf-bec1-caf2887fd6a8</guid><dc:creator>Elfving</dc:creator><description>[quote user="neo_here"]Yes, it&amp;#39;s a default sample. It does not react the same way on the DK vs our PCB.&amp;nbsp;[/quote]
&lt;p&gt;In that case it seems like there is something odd/wrong/different on the PCB. Could you find the devzone case in which this was reviewed?&lt;/p&gt;
&lt;p&gt;If not, could you upload the schematics here so it can be reviewed here? I can put the case to private so that only you/whoever you wish to and nordic will be able to see what is shared in it.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 takes too long from Power ON to start executing the main application</title><link>https://devzone.nordicsemi.com/thread/519393?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 17:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1a3e764-c1db-4d3c-9e59-e46553f175cc</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;Yes, it&amp;#39;s a default sample. It does not react the same way on the DK vs our PCB.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the DK it takes less than 100ms vs about 1.3seconds on our PCB&lt;br /&gt;&lt;br /&gt;I believe the HW team did get the review on devzone.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 takes too long from Power ON to start executing the main application</title><link>https://devzone.nordicsemi.com/thread/519004?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2025 09:17:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b9fac11-c8ed-4282-99a2-8d8d42312d0e</guid><dc:creator>Elfving</dc:creator><description>[quote user="neo_here"]2) Same Sample on our board, seems to consistently take about 1 second or more to first advertisement. This is much lower than 2.5 seconds but I&amp;#39;m guessing the bootloaders also add some overhead in that scenario.&amp;nbsp;&lt;br /&gt;[/quote]
&lt;p&gt;I see that I could&amp;#39;ve been clearer there. In case there were any misunderstanding - I was wanting to try a default sample on your custom PCB.&amp;nbsp;Is this a default one you just tried (ie. one directly from the SDK)? Does it react the same way on your board and the DK, chances are that your PCB is okay.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you gotten your HW reviewed by us on DevZone?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 takes too long from Power ON to start executing the main application</title><link>https://devzone.nordicsemi.com/thread/518926?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2025 22:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53470179-f4fe-4846-b976-a4369da879c4</guid><dc:creator>neo_here</dc:creator><description>&lt;p&gt;&lt;br /&gt;Was able to test a sample on the DK and our board&lt;/p&gt;
&lt;p&gt;1) DK, Pretty quick most of the time, did see a couple instances where it took about 500ms but that was about 1 in 10 times. Most times it was pretty quick&lt;br /&gt;&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/pastedimage1737150926290v2.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2) Same Sample on our board, seems to consistently take about 1 second or more to first advertisement. This is much lower than 2.5 seconds but I&amp;#39;m guessing the bootloaders also add some overhead in that scenario.&amp;nbsp;&lt;br /&gt;&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/pastedimage1737150525960v1.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Do you think the Power/Clock subsystems are taking much longer to stabilize on our board? Also how to lower the time taken by the bootloaders themselves?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Also does the current draw pattern suggest anything for our board for why it&amp;#39;s taking so much longer.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 takes too long from Power ON to start executing the main application</title><link>https://devzone.nordicsemi.com/thread/518814?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2025 10:21:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f403237d-5382-42cc-bb51-5c7f065c57e9</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The first two things from the top of my head of things to try, is to see if you get the same results with the same sw&amp;nbsp;on a nRF5340DK, and if you get the same with a default sw on your board. Do you have a DK? And could you &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.8.0/page/zephyr/samples/bluetooth/periodic_adv/README.html"&gt;try a sample&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>