<?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>Why does it take so long to run from the end of SystemInit() to the beginning of main()?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103506/why-does-it-take-so-long-to-run-from-the-end-of-systeminit-to-the-beginning-of-main</link><description>SDK: nRF5_SDK_15.3.0_59ac345 
 COMPILER: gcc-arm-none-eabi-9-2019-q4-major 
 
 Our firmware takes more than 20ms to run from the end of SystemInit() to the beginning of main(). 
 Tested the example project: nRF5_SDK_15.3.0_59ac345/examples/ble_peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Sep 2023 15:51:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103506/why-does-it-take-so-long-to-run-from-the-end-of-systeminit-to-the-beginning-of-main" /><item><title>RE: Why does it take so long to run from the end of SystemInit() to the beginning of main()?</title><link>https://devzone.nordicsemi.com/thread/446938?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 15:51:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f49a2f5f-f5a8-4e10-aefb-9ef95c40d993</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;So you don&amp;#39;t see this with any examples in the SDK?&lt;/p&gt;
&lt;p&gt;How can I reproduce this ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why does it take so long to run from the end of SystemInit() to the beginning of main()?</title><link>https://devzone.nordicsemi.com/thread/445511?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 03:38:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c032cc89-df0b-423f-9df0-e09cf7476d9c</guid><dc:creator>Dale_J</dc:creator><description>&lt;p&gt;What&amp;#39;s going on in&amp;nbsp;_mainCRTStartup and&amp;nbsp;__libc_init_array?&lt;/p&gt;
&lt;p&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/pastedimage1694489783919v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why does it take so long to run from the end of SystemInit() to the beginning of main()?</title><link>https://devzone.nordicsemi.com/thread/445504?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 02:11:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c68a4a60-7066-4351-887d-2a22c962cdbb</guid><dc:creator>Dale_J</dc:creator><description>&lt;p&gt;Tested on PCA10056 1.1.0.&lt;/p&gt;
&lt;p&gt;The time consumption is the same as our custom board.&lt;/p&gt;
&lt;p&gt;And I disabled the bootloader from our firmware, the time consumption&amp;nbsp;did not&amp;nbsp;change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why does it take so long to run from the end of SystemInit() to the beginning of main()?</title><link>https://devzone.nordicsemi.com/thread/445057?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 07:05:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27e2af26-f4fa-4a22-8bcc-efe1fae0877d</guid><dc:creator>Dale_J</dc:creator><description>&lt;p&gt;Our firmware has a bootloader, and the example project does not.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m talking about application-&amp;gt;SystemInit() to application-&amp;gt;main().&lt;/p&gt;
&lt;p&gt;Do you think it&amp;nbsp;has anything to do with the&amp;nbsp; MBR&amp;nbsp;or Bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why does it take so long to run from the end of SystemInit() to the beginning of main()?</title><link>https://devzone.nordicsemi.com/thread/444994?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 15:47:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cec24dd-e686-42fd-8d9c-c7a808a2054f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you have a bootloader flashed to the device? is the main() you are referring to the bootloader or the application main()? If you have a bootloader present, the device will reset-&amp;gt; go to the MBR -&amp;gt; Bootloader -&amp;gt; and then the application main(), so this takes time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why does it take so long to run from the end of SystemInit() to the beginning of main()?</title><link>https://devzone.nordicsemi.com/thread/444809?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 01:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa9be741-adb9-4ed8-97be-380080f6b06f</guid><dc:creator>Dale_J</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;1) Tested on a custom board. Our DK is broken, will test and get back to you when we find a new DK.&lt;/p&gt;
&lt;p&gt;2) It always takes this long.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why does it take so long to run from the end of SystemInit() to the beginning of main()?</title><link>https://devzone.nordicsemi.com/thread/444694?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 11:03:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c519581d-8452-46f0-98ca-45377476dd41</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;1) Are you testing on the nRF52840-DK or a custom board? If you are testing on a custom board, can you check with the DK, and see if you see the same behavior there?&lt;/p&gt;
&lt;p&gt;2) Does it always take this long, or does is it only take this long the very first time after programming the firmware to the chip ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>