<?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 dongle sometimes goes to the DFU mode at power-on</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96844/nrf52840-dongle-sometimes-goes-to-the-dfu-mode-at-power-on</link><description>Hi, 
 I have two nRF52840 dongles. Both configured to use external power source (SB2 cut, SB1 soldered). 
 The first one goes always to my nRF program on power on (battery connected). The second one often goes to the DFU mode on power-on (red LED pulsating</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 26 Feb 2023 21:15:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96844/nrf52840-dongle-sometimes-goes-to-the-dfu-mode-at-power-on" /><item><title>RE: nRF52840 dongle sometimes goes to the DFU mode at power-on</title><link>https://devzone.nordicsemi.com/thread/412116?ContentTypeID=1</link><pubDate>Sun, 26 Feb 2023 21:15:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:369658e8-af43-48da-8211-6e568258dc61</guid><dc:creator>RadoK</dc:creator><description>&lt;p&gt;Just a quick update. I added 10uF capacitor to the VDD rail. As addition to the original 1uF. It helped but not 100% time. Still sometimes it powers on to the DFU mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle sometimes goes to the DFU mode at power-on</title><link>https://devzone.nordicsemi.com/thread/411682?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 14:05:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0734786e-ffbf-4436-aeaf-2e86045e2f68</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Rado,&lt;/p&gt;
&lt;p&gt;That is sound reasoning. You need to do something externally to handel this, as there is no configurable startup delay.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle sometimes goes to the DFU mode at power-on</title><link>https://devzone.nordicsemi.com/thread/411399?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2023 14:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1610c03-2630-449e-90ea-4705ed5f9de6</guid><dc:creator>RadoK</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;no modification of the dongle except the SW1/SW2 points configuration for external VDD. According documentation.&lt;/p&gt;
&lt;p&gt;The version on the sticker is&lt;br /&gt;2.1.1&lt;br /&gt;2022.17&lt;br /&gt;F5:22:E5&lt;br /&gt;95:A0:31&lt;br /&gt;&lt;br /&gt;The RC element on the reset line behaves as designed according the resistor and capacitor values.&lt;br /&gt;I quickly checked in an online simulator. It rises few milliseconds.&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/Simulation.png" /&gt;&lt;/p&gt;
&lt;p&gt;Maybe the working configuration for my second board was saved by much larger output filtering capacitor on the LDO output. It is 10uF vs 1uF on the problematic configuration (still within LDO manufacturer recommendation).&lt;br /&gt;The working one has slower VDD rise thanks to this and probably the nRF is longer in hold by the power-on logic. Giving more time to the reset line to be in high state.&lt;/p&gt;
&lt;p&gt;I would try to replace the dongle reset capacitor to a smaller value but it is physically too small for me to try :-) I will rather try to increase the filtering capacitor on VDD line to 10uF.&lt;br /&gt;To see if it helps.&lt;/p&gt;
&lt;p&gt;Rado&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle sometimes goes to the DFU mode at power-on</title><link>https://devzone.nordicsemi.com/thread/411381?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2023 13:35:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18cde9c1-fec2-43d8-85ca-788c6294605e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The VDD rise time is not the issue here. However, the reset pin seems to be held low for so long that this will be a pin reset, and when the RESETREAS indicate a pin reset, the bootloader will enter DFU mode instead of starting the application.&lt;/p&gt;
&lt;p&gt;I have not seen any other reports of this being an issue with the dongle though, so I wonder if you did any modifications that can have affected this? If not, can you check the versions? That is printed on the white sticker on the back-side, on the second line (below &amp;quot;PCA10059&amp;quot;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle sometimes goes to the DFU mode at power-on</title><link>https://devzone.nordicsemi.com/thread/411210?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 21:30:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81b57399-1f06-4700-b9b4-2f829fcbf081</guid><dc:creator>RadoK</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;sorry for the above confusing description.&lt;/p&gt;
&lt;p&gt;Yes, the dongles are two Nordic nRF52840 dongles. Nothing from the other HW connected to the dongles is important, we can consider it just as an external VDD power source for the dongles.&lt;br /&gt;Both the dongles have stock bootloader. Not sure how to find the dongles version. I can see following codes on PCB: 400250, 0379RUBR.&lt;/p&gt;
&lt;p&gt;I am attaching screenshots from oscilloscope.&lt;br /&gt;Measurement was done in two channels. Connected to both ends of the R2 resistor. (Red: VDD nRF, Yellow: Reset line).&lt;/p&gt;
&lt;p&gt;The problematic configuration that has 3.3V LDO rises fast. 55 us to full 3.3V. I was expecting slower rise time here.&lt;br /&gt;The OK configuration that has 3.0V LDO rises fast in first half (50 us) but it takes 1 ms to the full 3.0V.&lt;br /&gt;Still should be ok. The max VDD rise time in the documentation is much higher.&lt;/p&gt;
&lt;p&gt;Can the slow voltage rise on the RESET line (caused by C27 and R2 on the nRF52840 dongle) be the problem?&lt;br /&gt;Is it possible that the nRF chip power-on logic switches the chip to an active state while the reset voltage is still under a threshold?&lt;/p&gt;
&lt;p&gt;Does the nRF52840 SOC have a register for a startup delay definition?&lt;/p&gt;
&lt;p&gt;Thanks for help.&lt;br /&gt;Rado&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/Measurement.png" /&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/Board-A-_2D00_-NOK-_2D00_-3.3V.png" /&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/Board-B-_2D00_-OK-_2D00_-3.0V.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 dongle sometimes goes to the DFU mode at power-on</title><link>https://devzone.nordicsemi.com/thread/410909?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 13:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7997dd5-07b7-4d90-8d22-ddd6fe62ceb2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Rado,&lt;/p&gt;
&lt;p&gt;The rise time of VDD must&amp;nbsp; not be too slow, if not there&amp;nbsp;may not be a power-on-reset. This is documented under &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/power.html?cp=5_0_0_4_2"&gt;POWER&lt;/a&gt;. I do not immediately see how this should be related to the device staying in DFU mode, though.&lt;/p&gt;
&lt;p&gt;I am not sure which HW you are using, as you are referring to some regulators and caps, but at the same time you are referring to solder bridges on the dongle. Assuming these are our dongles, which versions are they? Also, are you using the stock bootloader, or have you flashed your own bootloader?&lt;/p&gt;
&lt;p&gt;If the board has the open bootloader it will enter reset mode after a pin reset. If there is no pin reset, the bootloader will always start the application provided a valid application is present. So I would first of all double check that there is nothing on the HW that causes the reset pin to be asserted for some reason. scoping the RESET pin as you suggest would be very sensible. (Scoping VDD also would not hurt)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>