<?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>nRF52832 DFU over UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88481/nrf52832-dfu-over-uart</link><description>Hello, 
 I&amp;#39;m using nRF52832 and the SDK version is &amp;quot;nRF5_SDK_17.0.2_d674dde&amp;quot; , 
 First I tried DFU over UART using \examples\dfu\secure_dfu_test_images\uart\nrf52832, and it worked fine 
 but when I tried to rebuild the source code \examples\dfu\secure_bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Jun 2022 12:20:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88481/nrf52832-dfu-over-uart" /><item><title>RE: nRF52832 DFU over UART</title><link>https://devzone.nordicsemi.com/thread/371661?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2022 12:20:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0706092-0bb2-486c-b87a-f510dfa5f60b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Testing just an example on my side I do not see the same delay (it takes a couple of seconds though). There is no verbose logging for the serial dfu in nrfutil so if you want more information about what is happening I suggest you&amp;nbsp;dump the UART traffic and inspect it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DFU over UART</title><link>https://devzone.nordicsemi.com/thread/371531?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2022 03:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ba3f1dc-661b-4cf3-9693-575d3564e95c</guid><dc:creator>PiKa PiKa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve finally done DFU over UART, but have some questions I&amp;#39;d like to know,&lt;/p&gt;
&lt;p&gt;after&amp;nbsp;I&amp;nbsp;&lt;span&gt;using the &amp;quot;nrfutil dfu serial -pkg 1234567.zip -p COM4 -fc 0 -b 115200&amp;quot; command, it takes at least 20 seconds before the DFU process starts, no log is displayed during these 20 seconds,I want to know why it takes so long to wait 20 seconds?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DFU over UART</title><link>https://devzone.nordicsemi.com/thread/370736?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 14:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:101c9f00-6b15-4782-8025-4fb2e52b08ff</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This log shows that the devices entered DFU mode, but it doe snot show that a DFU operation has been started. You write that you attempted to update&amp;nbsp;using the &amp;quot;nrfutil dfu serial -pkg 1234567.zip -p COM4 -fc 0 -b 115200&amp;quot; command, but there is no trace of it in the log. Can you try again, and make sure you do it after you see in the log that the nRF is in DFU mode? What happens then? And what is the output you get from nrfutil?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DFU over UART</title><link>https://devzone.nordicsemi.com/thread/370565?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2022 06:05:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11ffc18f-3f3e-41d5-9c32-5858e146cd9a</guid><dc:creator>PiKa PiKa</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I decided to test the next step with the debug version first,&lt;/p&gt;
&lt;p&gt;I have a problem......&lt;/p&gt;
&lt;p&gt;Here are my test steps&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;&lt;span&gt;Generate boot&lt;/span&gt;&lt;span&gt;loader setting&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;&lt;span&gt;Merge bootloader with bootloader_setting and the application and the softdevice&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp;&lt;span&gt;Flash the device&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;4.&amp;nbsp;&lt;span&gt;Send command to return in the bootloader and to switch in DFU mode&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;5.&amp;nbsp;&lt;span&gt;Enter the following command to start the DFU process over the serial link&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;nrfutil dfu serial -pkg 1234567.zip -p COM4 -fc 0 -b 115200&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;here is the log&lt;/p&gt;
&lt;p&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Inside main&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: In nrf_bootloader_init&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Using settings page.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Copying forbidden parts from backup page.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: No firmware to activate.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: App is valid&lt;br /&gt;00&amp;gt; &amp;lt;warning&amp;gt; nrf_dfu_settings: No additional &amp;lt;info&amp;gt; app: Inside main&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: In nrf_bootloader_init&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Using settings page.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Copying forbidden parts from backup page.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: No firmware to activate.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: App is valid&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: DFU mode requested via GPREGRET.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: timer_stop (0x20000024)&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: timer_activate (0x20000024)&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Entering DFU mode.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Initializing transports (found: 1)&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_serial_uart: serial_dfu_transport_init()&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_serial_uart: serial_dfu_transport_init() completed&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Enter main loop&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After the fifth step I got nothing until device&amp;nbsp;auto leaves DFU mode&lt;/p&gt;
&lt;p&gt;Did I miss something?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DFU over UART</title><link>https://devzone.nordicsemi.com/thread/370400?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 10:42:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d64e50b4-d83e-41d6-9ae4-bdcddb2cf80c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you flash SoftDevice or MBR? I ask because I did not notice before that you were using BLE in the application, but as you are using nRF connect mobile App and cannot find it there, I assume that is the application using BLE. If so, you need to flash the SoftDevice. The debug project and &amp;quot;normal&amp;quot; project should be more or less the same except for logging, so please double check that. If it does not work, perhaps you can explain in detail step by step how you build, program and test everything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DFU over UART</title><link>https://devzone.nordicsemi.com/thread/370382?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 09:27:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea2a75c4-fbea-4c2b-917c-3aeffa2cd235</guid><dc:creator>PiKa PiKa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;it does not work when I build&amp;nbsp;&lt;span&gt;\examples\dfu\secure_bootloader\pca10040_uart\ses&amp;nbsp;, I can not found my device in nRF connect mobile App.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and then I tried to build \examples\dfu\secure_bootloader\pca10040_uart_debug\ses, it worked&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I don&amp;#39;t know what happened&amp;nbsp;to the bootloader project without debug&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DFU over UART</title><link>https://devzone.nordicsemi.com/thread/370373?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 09:03:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcfa001a-aec7-4e9c-9f12-65ecf9938f86</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. Can you say more about how it does not work? Please test with the debug bootloader project (\examples\dfu\secure_bootloader\pca10040_uart\_debug), which has RTT logging. As long as you program this and a SoftDevice or MBR, you should get RTT logs from the bootloader which hopefully gives some clues about what is going on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DFU over UART</title><link>https://devzone.nordicsemi.com/thread/370372?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 09:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96d25612-de88-42e5-8eae-01b7ec92c548</guid><dc:creator>PiKa PiKa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;as you said ,&amp;nbsp;what I&amp;#39;m using now is&amp;nbsp;s&lt;span&gt;egger embedded studio bootloader projects but after rebuild source code , then i mergeing application , softdevice , bootloader together ,and program into my device , it&amp;nbsp;doesn&amp;#39;t work.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;and I also have tried to merging&amp;nbsp;&lt;span&gt;MBR from&amp;nbsp;\components\softdevice\mbr\hex\mbr_nrf52_2.4.1_mbr.hex into hex,then program ,&amp;nbsp;it&amp;nbsp;doesn&amp;#39;t work too&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 DFU over UART</title><link>https://devzone.nordicsemi.com/thread/370364?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2022 08:44:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:583732db-ab88-43c2-8a5c-98194c3d4060</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The pre-built example projects (including bootloader) also includes the SoftDevice or MBR hex if needed, and the serial bootloader depends on the MBR. This has been accomplished by merging all the needed hex files. In this case, in addition to the bootloader you built you also need the MBR from &amp;lt;SDK&amp;gt;\components\softdevice\mbr\hex\. You can either program them separately, or merge them together using mergehex (from &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools/download"&gt;nRF Command Line Tools&lt;/a&gt;) and then program.&lt;/p&gt;
&lt;p&gt;PS: The Segger embedded studio bootloader projects has the MBR as an additional load file, so if you program from Segger Embedded Studio the MBR will be programmed automatically. This is also the case for projects that depend on the SoftDevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>