<?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>The 5340 takes a long time from power-on to code running</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94505/the-5340-takes-a-long-time-from-power-on-to-code-running</link><description>Hi, 
 I recently found that the 5340 has a slow startup time on my custom nRF5340 based hardware, it takes about 3 seconds from power-on to the Main code running. 
 I did the following experiment: 
 1、on the DK development board : the same code took about</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Dec 2022 07:58:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94505/the-5340-takes-a-long-time-from-power-on-to-code-running" /><item><title>RE: The 5340 takes a long time from power-on to code running</title><link>https://devzone.nordicsemi.com/thread/399571?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 07:58:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d770c500-13cf-46d2-baaa-af6358f0e905</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been in touch with someone from Honestar representing you, and have already confirmed that the LF crystal looks good. Do you also have the datasheet for the HF crystal you&amp;#39;re using? As the startup on a DK seems to be much shorter or samples not running BLE starts sooner.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The 5340 takes a long time from power-on to code running</title><link>https://devzone.nordicsemi.com/thread/399310?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 03:47:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d515790-5559-45a3-9fba-52c93e45a90d</guid><dc:creator>GinoWang</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1TJH125DR1A0058_5F00_KDS.pdf"&gt;devzone.nordicsemi.com/.../1TJH125DR1A0058_5F00_KDS.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is the datasheet.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The 5340 takes a long time from power-on to code running</title><link>https://devzone.nordicsemi.com/thread/399174?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 12:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11f4d1ff-4dc7-4a77-bd7e-3d07f97f3499</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Do you have the datasheet of the crystals you&amp;#39;re using so I could take a look? Based on your tests it seems like the 20pF Ccap isn&amp;#39;t optimal, so it might be recommended to change this. Alternatively you can try different internal capacitor values to see if you&amp;#39;re able to tune it somehow, but that&amp;#39;s not promising based on the results you have provided here. It also seems strange that Ccap to 15pF and INT caps to 6pF is so different between CAP_EXTERNAL and Ccap to 20pF. You can alternatively try switching to the internal RC oscillator instead of the LFXO with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC"&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The 5340 takes a long time from power-on to code running</title><link>https://devzone.nordicsemi.com/thread/399080?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 04:14:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bdccb73-555e-41b3-8686-bcab846fc54f</guid><dc:creator>GinoWang</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;In my &lt;span&gt;custom nRF5340 based hardware: Ccap = 20pf&amp;nbsp; &amp;nbsp;CL=12.5&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I did the following test:&lt;/p&gt;
&lt;div&gt;&lt;span&gt;Case1:&amp;nbsp; CONFIG_SOC_ENABLE_LFXO&lt;/span&gt;&lt;span&gt;&lt;span&gt;=y、&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;CONFIG_SOC_LFXO_CAP_INT_6PF&lt;/span&gt;&lt;span&gt;=y&amp;nbsp; 、Ccap=15pf&amp;nbsp; &amp;nbsp;:&amp;nbsp; startup time&amp;asymp; 1.2Sec&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Case2:&amp;nbsp;CONFIG_SOC_ENABLE_LFXO=y、&amp;nbsp;CONFIG_SOC_LFXO_CAP_INT_6PF=y&amp;nbsp; 、Ccap=20pf&amp;nbsp; &amp;nbsp;:&amp;nbsp; startup time&amp;asymp; 2.5Sec&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;Case3:&amp;nbsp;CONFIG_SOC_ENABLE_LFXO=y、CONFIG_SOC_LFXO_CAP_EXTERNAL&lt;/span&gt;&lt;/span&gt;&lt;span&gt;=y&amp;nbsp; 、Ccap=20pf&amp;nbsp; &amp;nbsp;:&amp;nbsp; startup time&amp;asymp; 2.5Sec&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Case4:&amp;nbsp;CONFIG_SOC_ENABLE_LFXO=y、CONFIG_SOC_LFXO_CAP_INT_7PF=y&amp;nbsp; 、Ccap&amp;nbsp; Null&amp;nbsp; &amp;nbsp;:&amp;nbsp; startup time&amp;asymp; 1.2Sec&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;If I continue to use Ccap=20pf, how should I set it to ensure that the boot time is no higher than 1.2 seconds?&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;&lt;span&gt;&lt;span&gt;By the way, we have produced a large number of machines with a 20pf configuration,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;It is not feasible to rework and replace 20pf.&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The 5340 takes a long time from power-on to code running</title><link>https://devzone.nordicsemi.com/thread/398970?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2022 12:53:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:090d5815-df06-48a4-80ef-530a79bfeac2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Since the application has a pretty normal startup time on a DK, my guess is that the crystal oscillator(s) in your design are not loaded optimally and thus takes a while to stabilize for the application to use. Do you have the datasheets of the external crystals you&amp;#39;re using and I can take a look to see what they should optimally be loaded with?&lt;/p&gt;
&lt;p&gt;We generally use the following formula to find the best capacitor values (Ccap) using the load capacitance (CL) in the crystal datasheet.&lt;/p&gt;
&lt;p&gt;Ccap = CL * 2 - 4&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>