<?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>I want to use a UART DFU Bootloader in 52840, I uploaded a app by nrfutil, If I want to enter the DFU mode again in the app, I should press button 1 and then press button 4, I want to know the mechanism?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74539/i-want-to-use-a-uart-dfu-bootloader-in-52840-i-uploaded-a-app-by-nrfutil-if-i-want-to-enter-the-dfu-mode-again-in-the-app-i-should-press-button-1-and-then-press-button-4-i-want-to-know-the-mechanism</link><description>Hi guys: 
 a. I use a uart dfu bootloader(loacation: SDK-location\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\examples\dfu\secure_bootloader\pca10056_uart) in 52840 soc. 
 b.I flashed the bootloader and SoftDevice by nrfjprog firstly.(cmd: nrfjprog</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Apr 2021 09:27:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74539/i-want-to-use-a-uart-dfu-bootloader-in-52840-i-uploaded-a-app-by-nrfutil-if-i-want-to-enter-the-dfu-mode-again-in-the-app-i-should-press-button-1-and-then-press-button-4-i-want-to-know-the-mechanism" /><item><title>RE: I want to use a UART DFU Bootloader in 52840, I uploaded a app by nrfutil, If I want to enter the DFU mode again in the app, I should press button 1 and then press button 4, I want to know the mechanism?</title><link>https://devzone.nordicsemi.com/thread/307408?ContentTypeID=1</link><pubDate>Thu, 29 Apr 2021 09:27:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02fe758b-e2a3-480e-9d73-0b3601f33e77</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is not expected. Have you been able to reproduce this? Can you explain in detail which difference you see with and without the bootloader? Generally speaking, the presence of a bootloader should not have any effect on the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to use a UART DFU Bootloader in 52840, I uploaded a app by nrfutil, If I want to enter the DFU mode again in the app, I should press button 1 and then press button 4, I want to know the mechanism?</title><link>https://devzone.nordicsemi.com/thread/307404?ContentTypeID=1</link><pubDate>Thu, 29 Apr 2021 09:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35fefb7c-9f27-402d-8336-75faab24e015</guid><dc:creator>oplinux</dc:creator><description>&lt;p&gt;Thanks for your reply.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I found a stranger phenomeno:&lt;/p&gt;
&lt;p&gt;A: If i only flashed&amp;nbsp; the ble_app_uart and SoftDevice. the button 1 is used to sleep and disconnect, depending on state (see &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/examples_bsp.html"&gt;BSP BLE Button Assignments&lt;/a&gt;).&amp;nbsp; It works well.&lt;/p&gt;
&lt;p&gt;B: However. When I flashed ble_app_uart 、SoftDevice and Bootloader，the button 1 is not worked. you can test it in your convenience. It&amp;#39;s a bug?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to use a UART DFU Bootloader in 52840, I uploaded a app by nrfutil, If I want to enter the DFU mode again in the app, I should press button 1 and then press button 4, I want to know the mechanism?</title><link>https://devzone.nordicsemi.com/thread/307360?ContentTypeID=1</link><pubDate>Thu, 29 Apr 2021 06:44:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d43ec9fe-e970-4727-b7ac-1b43d63a3263</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;These buttons are handled very differently in this case. The ble_app_uart sample only use Button 1 and button 2 (referred to as 0 and 1 in code), where button 1 is used to sleep and disconnect, depending on state (see &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/examples_bsp.html"&gt;BSP BLE Button Assignments&lt;/a&gt;). This sleep is system off, and wakeup here will be in form of a reset.&lt;/p&gt;
&lt;p&gt;When the device wakes up from system off mode the bootloader runs, and checks if button 4 is pressed, as&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN is set to 25 in the example bootloader project for the nRF52840 DK. If it is, it enters DFU mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to use a UART DFU Bootloader in 52840, I uploaded a app by nrfutil, If I want to enter the DFU mode again in the app, I should press button 1 and then press button 4, I want to know the mechanism?</title><link>https://devzone.nordicsemi.com/thread/307349?ContentTypeID=1</link><pubDate>Thu, 29 Apr 2021 03:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eacd073f-2ddd-48af-8f5b-054eff835d11</guid><dc:creator>oplinux</dc:creator><description>&lt;p&gt;A: I hadn&amp;#39;t edit the Bootloader(SDK-location\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\examples\dfu\secure_bootloader\pca10056_uart) and the APP(SDK-location\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\examples\ble_peripheral\ble_app_uart) project. they all come come the SDK example.I just flashed them.&lt;/p&gt;
&lt;p&gt;B: I made an experiment: If my program run in app, I can press button 1 to stop the app run, then i press button 4 will enter dfu mode.&lt;/p&gt;
&lt;p&gt;C:I can&amp;#39;t understand the mechanism.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to use a UART DFU Bootloader in 52840, I uploaded a app by nrfutil, If I want to enter the DFU mode again in the app, I should press button 1 and then press button 4, I want to know the mechanism?</title><link>https://devzone.nordicsemi.com/thread/307347?ContentTypeID=1</link><pubDate>Thu, 29 Apr 2021 02:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14f898af-0b41-4e33-a280-a5a26ac765a6</guid><dc:creator>oplinux</dc:creator><description>&lt;p&gt;Thank you very much Thorsrud.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I want to use a UART DFU Bootloader in 52840, I uploaded a app by nrfutil, If I want to enter the DFU mode again in the app, I should press button 1 and then press button 4, I want to know the mechanism?</title><link>https://devzone.nordicsemi.com/thread/307240?ContentTypeID=1</link><pubDate>Wed, 28 Apr 2021 12:03:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07fa0866-859e-4cbf-8501-1829b43d0480</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;ble_app_uart example application does not include any way of entering the bootloader. So without modifying it, the typical way to enter the bootloader would be to press the reset button while pressing button 16. This is because if you look at the bootloader, you can see that it&amp;#39;s sdk_config.h (examples\dfu\secure_bootloader\pca10040_uart\config\sdk_config.h) have set&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_BUTTON to 1 and&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN to 16, which is the GPIO used by botton 4 on the nRF52 DK. If you now look at the bootloder implementation you can see the code that checks&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN to decide if DFU mode should be entered in&amp;nbsp;dfu_enter_check() in&amp;nbsp;components\libraries\bootloader\nrf_bootloader.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>