<?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 Zephyr: Jump to DFU/bootloader (buttonless)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78750/nrf52840-dongle-zephyr-jump-to-dfu-bootloader-buttonless</link><description>Hi, 
 I&amp;#39;m using nRF52840 dongle and nRF connect SDK 1.6.0 (Zephyr) to create a BLE HID + USB CDC device. Is it possible to jump to bootloader from application code (or ideally have it triggered over USB by nrfutil)? 
 I understand that with old nRF SDK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Dec 2022 10:59:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78750/nrf52840-dongle-zephyr-jump-to-dfu-bootloader-buttonless" /><item><title>RE: nRF52840 Dongle Zephyr: Jump to DFU/bootloader (buttonless)</title><link>https://devzone.nordicsemi.com/thread/402649?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2022 10:59:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c5c8de1-3525-402c-9822-8b12f79f9863</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Great! Thanks for confirming that it worked.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Zephyr: Jump to DFU/bootloader (buttonless)</title><link>https://devzone.nordicsemi.com/thread/402603?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2022 02:47:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca223b8c-e3e7-491a-b017-d47e7f7551c9</guid><dc:creator>vincenttc</dc:creator><description>&lt;p&gt;Thank, it works!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Zephyr: Jump to DFU/bootloader (buttonless)</title><link>https://devzone.nordicsemi.com/thread/402515?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 10:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eabf7a0-d56b-40a1-b1e5-dcc93c556e3a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please try with the function below and see if you get the same result.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;const struct device *gpio_dev = DEVICE_DT_GET(DT_NODELABEL(gpio0));

static inline void reset_to_bootloader()
{
    int err;
	err = gpio_pin_configure(gpio_dev, 19, GPIO_OUTPUT | GPIO_OUTPUT_INIT_LOW);
	if (err) {
		LOG_ERR(&amp;quot;Failed to configure P0.19&amp;quot;);
	}
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Zephyr: Jump to DFU/bootloader (buttonless)</title><link>https://devzone.nordicsemi.com/thread/402509?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 10:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9765882b-e114-47df-88b8-c802f9342639</guid><dc:creator>vincenttc</dc:creator><description>&lt;p&gt;Yes, I do not change the bootloader code and yes, the dongle will stay in DFU mode after press the reset button.&lt;br /&gt;FYI, I am using ncs version 2.1.2 if helpful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Zephyr: Jump to DFU/bootloader (buttonless)</title><link>https://devzone.nordicsemi.com/thread/402507?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 09:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c37a9acf-dc99-40a2-9c20-00368aa172ea</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t think of any obvious reasons for why it would exit DFU mode after a pin reset. Are you using the original pre-programmed bootloader on this dongle? And does it stay in DFU mode when you press the reset button?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Zephyr: Jump to DFU/bootloader (buttonless)</title><link>https://devzone.nordicsemi.com/thread/402503?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 09:50:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:480e0a1a-a9ff-4a0d-9405-6ed69177bc4f</guid><dc:creator>vincenttc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;My fault. The dongle can be reset after pull down GPIO on P0.19, but the dongle will not hold on bootloader (blinking red led) but enter app instead. Is&amp;nbsp;this under expectation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Zephyr: Jump to DFU/bootloader (buttonless)</title><link>https://devzone.nordicsemi.com/thread/402502?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 09:39:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e0e6e24-bb6d-4dd7-92f1-8e2528b55d38</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems like the&amp;nbsp;pull down on P0.19 is not strong enough to drive the reset line low. I suggest you configure P0.19 as an output instead.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Zephyr: Jump to DFU/bootloader (buttonless)</title><link>https://devzone.nordicsemi.com/thread/402498?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 09:33:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c69f9556-0732-4cf9-8a86-928c7219e4ba</guid><dc:creator>vincenttc</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry that I also have the same problem and my dongle will not able to enable dfu mode after pull down P0.19&lt;/p&gt;
&lt;p&gt;Would you help to check if any wrong with my code?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define RESET_PIN    DT_GPIO_PIN(DT_ALIAS(resetpin), gpios)

static inline void reset_to_bootloader()
{
    gpio_pin_configure(dev, BIT(RESET_PIN), GPIO_INPUT | GPIO_PULL_DOWN);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;dts:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;buttons {
		compatible = &amp;quot;gpio-keys&amp;quot;;
		button0: button_0 {
			gpios = &amp;lt;&amp;amp;gpio1 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Push button switch 0&amp;quot;;
		};
        button1: button_1 {
			gpios = &amp;lt;&amp;amp;gpio0 19 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Push button switch 1&amp;quot;;
		};
		...
	};
	
	aliases {
		sw0 = &amp;amp;button0;
		resetpin = &amp;amp;button1;
		...
		};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Zephyr: Jump to DFU/bootloader (buttonless)</title><link>https://devzone.nordicsemi.com/thread/325814?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 20:33:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cca6286-d918-4a69-8ac3-9c2e1030e3a4</guid><dc:creator>Sasa Karanovic</dc:creator><description>&lt;p&gt;Thank you!&lt;br /&gt;Just confirming that pulling the GPIO P0.19 LOW sends the dongle into bootloader mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Zephyr: Jump to DFU/bootloader (buttonless)</title><link>https://devzone.nordicsemi.com/thread/325807?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 17:19:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c70b0b08-0a37-45df-9514-8ac3eb14b467</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Sasa,&lt;/p&gt;
[quote userid="106385" url="~/f/nordic-q-a/78750/nrf52840-dongle-zephyr-jump-to-dfu-bootloader-buttonless/325794#325794"]Can you clarify in version of the datasheet/product guide was this note added?[/quote]
&lt;p&gt;Forgot to include the link:&amp;nbsp; &lt;span class="item"&gt;&lt;a class="" title="Buttons and LEDs" href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dongle/UG/nrf52840_Dongle/hw_button_led.html?cp=4_0_5_5_3"&gt;Buttons and LEDs&lt;/a&gt;, sorry. This links to a chapter in the 52840 Dongle user guide.&lt;/span&gt;&lt;/p&gt;
[quote userid="106385" url="~/f/nordic-q-a/78750/nrf52840-dongle-zephyr-jump-to-dfu-bootloader-buttonless/325794#325794"]Is this feature (P0.19, P0.21, P0.23 and P.025 connected to RESET) available on all revisions of the nRF52840 dongle?[/quote]
&lt;p&gt;Yes, it should be the same for all revisions. The schematic and layout files are available for download on the &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF52840-Dongle/Download"&gt;product page&lt;/a&gt; and there is no mention of these pins in the change log. But you can use P0.19 to be absolutely sure. This is the same pin we used in our DFU trigger library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Zephyr: Jump to DFU/bootloader (buttonless)</title><link>https://devzone.nordicsemi.com/thread/325794?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 15:20:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49ab1ba2-5907-4dfb-b1f1-125e66c42c0f</guid><dc:creator>Sasa Karanovic</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you for clarifying this. Pulling the GPIO low seems like the easiest solution to implement.&lt;/p&gt;
&lt;p&gt;Can you clarify in version of the datasheet/product guide was this note added? Is this feature (P0.19, P0.21, P0.23 and P.025 connected to RESET) available on all revisions of the nRF52840 dongle?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
&lt;p&gt;Sasa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle Zephyr: Jump to DFU/bootloader (buttonless)</title><link>https://devzone.nordicsemi.com/thread/325759?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 13:22:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33952cb1-288f-4bb3-a147-1c216fd9f0fa</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The &lt;span&gt;&lt;a title="DFU Trigger Library (USB)" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_dfu_trigger_usb.html?cp=8_1_3_5_3"&gt;DFU Trigger Library (USB)&lt;/a&gt;&lt;/span&gt; has not been ported to Zephyr, unfortunately. However, it should be fairly straight forward to put the dongle in DFU mode from the app, all you have you do is to pull either &lt;span&gt;P0.19&lt;/span&gt;, &lt;span&gt;P0.21&lt;/span&gt;, &lt;span&gt;P0.23&lt;/span&gt;, or &lt;span&gt;P0.25 low. These pins are connected toghether with the PINRESET pin (P0.18) so it should have the same effect as phyiscally pressing the reset button.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1629379027881v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>