<?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>NRF52840: VDD ramp-up to main() time.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52435/nrf52840-vdd-ramp-up-to-main-time</link><description>Hi, 
 How much is the expected time period from the time VDD goes above 1.75V to main()? I am using a custom bootloader and am seeing a ~4.5s (yes seconds!) delay in getting to bootloader main(). When the debugger is connected this time is in the 100s</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Sep 2019 20:53:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52435/nrf52840-vdd-ramp-up-to-main-time" /><item><title>RE: NRF52840: VDD ramp-up to main() time.</title><link>https://devzone.nordicsemi.com/thread/212145?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 20:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4eb2c4c2-fc2f-4a5d-9c6b-4bae25d03434</guid><dc:creator>Hrishi</dc:creator><description>&lt;p&gt;On the UICR, I did read out the UICR content after power-up. As I described above most locations are FFs except for some of the &amp;#39;reserved for Nordic firmware design&amp;#39; locations below:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1569531212475v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think sending&amp;nbsp;hardware is possible.I am working on something else for now but will come back to this in 2 weeks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: VDD ramp-up to main() time.</title><link>https://devzone.nordicsemi.com/thread/211925?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 21:16:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11138f9c-3f55-4a5e-9491-5ecccffcb4fd</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Looks good.&lt;/p&gt;
&lt;p&gt;Is there any way you can send hardware here we may use to recreate it?&lt;/p&gt;
&lt;p&gt;Is there any way you may try with 2V?&lt;/p&gt;
&lt;p&gt;Can you read out content of uicr (run nrfjprog --readuicr dump.hex)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: VDD ramp-up to main() time.</title><link>https://devzone.nordicsemi.com/thread/211924?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 20:55:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85db61bd-8b0b-4c31-9680-5d59be5ad593</guid><dc:creator>Hrishi</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a part of the relevant schematic, &lt;span&gt;which shows how the BMD-340 power pins are connected&lt;/span&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1569444748136v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the waveform seen at&amp;nbsp;pin 39 (MCU_RSTn) along with the VDD_1V8 bus&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1569444826473v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Also for completeness my previous scope capture with the VDD_1V8 rail and the GPIO that gets toggled at the start of the bootloader main.c.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1569444968792v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Hrishi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: VDD ramp-up to main() time.</title><link>https://devzone.nordicsemi.com/thread/211602?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 15:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2b36137-ed0e-4817-9b9b-39e7063244a7</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi, Is there any way you can send hardware here we may use to recreate it?&lt;/p&gt;
&lt;p&gt;Is there any way you may try with 2V?&lt;/p&gt;
&lt;p&gt;How have you electrically connected the&amp;nbsp;&lt;span&gt;BMD-340? Do you have a table that show pin connections for the module?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;Were you able to try:&amp;nbsp;...&lt;span&gt;open the module to find the exact chip markings?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="Hrishi"]I guess you are saying that from&amp;nbsp;the time nrf52840 VDD gets above 1.75V (according to the datasheet)&amp;nbsp;to the time the PC enters main.c of the bootloader I should&amp;nbsp;see a time delay muc much less than 4s, correct?[/quote]
&lt;p&gt;That is correct! Starting up an external 32kHz may be in the hundreds of ms, but in your case I assume you are toggling that LED in the beginning of main() so that should not apply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: VDD ramp-up to main() time.</title><link>https://devzone.nordicsemi.com/thread/211596?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 15:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3b999c5-cfd4-4aea-94ca-505166742490</guid><dc:creator>Hrishi</dc:creator><description>&lt;p&gt;The BMD-340 module is getting that 1.8V VDD bus I shared in the scope shot earlier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: VDD ramp-up to main() time.</title><link>https://devzone.nordicsemi.com/thread/211593?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 15:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d30cb0e-da3b-44cf-9cb6-2a9fa58bc466</guid><dc:creator>Hrishi</dc:creator><description>&lt;p&gt;I guess you are saying that from&amp;nbsp;the time nrf52840 VDD gets above 1.75V (according to the datasheet)&amp;nbsp;to the time the PC enters main.c of the bootloader I should&amp;nbsp;see a time delay muc much less than 4s, correct?&lt;/p&gt;
&lt;p&gt;Hmm this is strange.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: VDD ramp-up to main() time.</title><link>https://devzone.nordicsemi.com/thread/211415?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 05:58:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab975df3-e848-4fd7-a873-cd3e80645d49</guid><dc:creator>Kenneth</dc:creator><description>[quote user="Hrishi"]Could there be something in the boot-up process that may cause a long delay?[/quote]
&lt;p&gt;The below text you write that it takes ~4.5 to enter main(), so it must be electrical. I do not see how software can have anything to do with this no, since it doesn&amp;#39;t start running any code here before you enable LED. My best suggestion is to check if VDD = 2V solve the issue (even if that will mean you have to modify the the hardware).&lt;/p&gt;
[quote user=""]seeing a ~4.5s (yes seconds!) delay in getting to bootloader main()[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: VDD ramp-up to main() time.</title><link>https://devzone.nordicsemi.com/thread/211371?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 17:45:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fd6d88b-f86b-4d69-9ec1-24d11ad1db55</guid><dc:creator>Hrishi</dc:creator><description>&lt;p&gt;These modules are using nrF52840-QIAA production release 1 silicon. BMD-340 doesn&amp;#39;t have anything that would slow the VCC down by 3-4 secs.&lt;/p&gt;
&lt;p&gt;I am sure I am missing something somewhere. Could there be something in the boot-up process that may cause a long delay? Although as I mentioned earlier if I use the debugger and run the bootloader project, I do not see this huge a delay.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: VDD ramp-up to main() time.</title><link>https://devzone.nordicsemi.com/thread/211370?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 17:32:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:856ca2c2-7164-428a-a2bd-d02736c979b9</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The only explanation I have is that something is charging up, e.g. that even if you supply 1.8V, you have some series resistor/diode that limit the current going to the nRF52840 thereby keep it in some kind of reset state. That is why I wanted you try to tweak up the VDD voltage a bit to see what happens. I assume you are not able to open the module to find the exact chip markings?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: VDD ramp-up to main() time.</title><link>https://devzone.nordicsemi.com/thread/211357?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 16:10:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59af7e84-045f-4f80-b29d-76940640fbe0</guid><dc:creator>Hrishi</dc:creator><description>&lt;p&gt;I am using a BMD-340 module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: VDD ramp-up to main() time.</title><link>https://devzone.nordicsemi.com/thread/211356?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 16:07:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:247691ea-33eb-458e-af05-c2235207f6fc</guid><dc:creator>Hrishi</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;I can not try&amp;nbsp;with 2V because this is in a system powered with a 1.8V regulator. As seen in my scope shot the bus looks clean.&lt;/p&gt;
&lt;p&gt;I checked the UICR after power-up most locations are FFs except for some of the &amp;#39;reserved for Nordic firmware design&amp;#39; locations below:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1569254761502v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Does this tell you anything?&amp;nbsp;Where else could I be looking to debug this issue?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840: VDD ramp-up to main() time.</title><link>https://devzone.nordicsemi.com/thread/211236?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 12:08:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02d4da24-6332-4f96-a790-2e837b1d0bb2</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you see the same problem if you are using VDD = 2.0V?&lt;/p&gt;
&lt;p&gt;Is this measured close to the VDD pin?&lt;/p&gt;
&lt;p&gt;What is the content of UICR after power up? Type: &amp;#39;nrfjprog --readuicr dump_uicr.hex&amp;#39;&lt;/p&gt;
&lt;p&gt;Any schematic to share?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>