<?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>how to upgrade nrf52840 application with OTBR</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65514/how-to-upgrade-nrf52840-application-with-otbr</link><description>Hi, I am working on an OTBR, nrf52840 connects to the router through SPI, I want to know how to upgrade 52840 through the router. The router use OpenWRT. p lease give me some suggestions .thank you.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Sep 2020 08:54:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65514/how-to-upgrade-nrf52840-application-with-otbr" /><item><title>RE: how to upgrade nrf52840 application with OTBR</title><link>https://devzone.nordicsemi.com/thread/268675?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 08:54:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e01c3838-3c9f-450b-9e9e-db821c08e68e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There are a few traps here. I actually recommend you to try to follow &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader" rel="noopener noreferrer" target="_blank"&gt;this guide&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, in your case, if you want to test the prebuilt images:&lt;/p&gt;
&lt;p&gt;There is something called the MBR, which is responsible for moving around the application images when the DFU is complete. The MBR is included as a part of the softdevice, but also exists as a standalone .hex file found in SDK\components\softdevice\mbr\hex\*.hex&lt;/p&gt;
&lt;p&gt;So when you are working with bootloaders, you need to either program the softdevice you intend to use, or the MBR. In your case, since you are trying to update the application to an application that uses the softdevice, I suggest you program the softdevice (which also includes the MBR).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After you program the [SoftDevice or MBR], and the bootloader, and reset the device, you should see two LEDs turned on on the DK. This indicates that the device is in bootloader mode.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not sure exactly what bootloader hex file you are using. I can&amp;#39;t find any prebuilt bootloader in:&lt;/p&gt;
&lt;p&gt;SDK\examples\dfu\secure_bootloader\pca10056_uart\secure_bootloader_uart_mbr_pca10056.hex.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you built the bootloader yourself, then the test image will not work, because it doesn&amp;#39;t use a matching key set (private and public keys). To generate a matching key set, please see the guide in the link in the top of this reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you want to only test the transfer, you can do the following: First, make sure that no other programs are using the COM port for your DK (power cycle it to be sure, and close all programs that uses the DK. Then open a terminal:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cd &amp;lt;SDK&amp;gt;\examples\dfu\secure_dfu_test_images\uart\nrf52840
nrfjprog -e
nrfjprog --program ..\..\..\..\..\components\softdevice\s140\hex\s140_nrf52_7.0.1_softdevice.hex --verify
nrfjprog --program bootloader_secure_uart_debug_without_bonds_mbr.hex --verify
nrfjprog --reset
nrfutil dfu serial -pkg hrs_application_s140.zip -p COM4&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After the last command, it will take some time, and then LED1 should start blinking, indicating that the application is running, and the DK is advertising.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The guide above is aiming for a BLE bootloader, but the method is very similar in the serial bootloader. It is just a matter of changing the DFU transport from nRF Connect on a phone to the &amp;quot;nrfutil dfu serial ...&amp;quot; that you are already using.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to upgrade nrf52840 application with OTBR</title><link>https://devzone.nordicsemi.com/thread/268612?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 01:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f00641c-b4ea-4704-8b6b-30c3725a0aac</guid><dc:creator>taoyinzhou</dc:creator><description>&lt;div&gt;&lt;span class="text-only "&gt;Thank you so much for your kind reply. Follow your suggestions, I found the corresponding Nordic documents, which instructed us to use the UART-DFU interface to upgrade the nRF SoC (&lt;/span&gt;&lt;a class="link" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/sdk_app_serial_dfu_bootloader.html" rel="noopener noreferrer" target="_blank"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/sdk_app_serial_dfu_bootloader.html&lt;/a&gt;&lt;span class="text-only "&gt;). &lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt;So I want to try the DFU upgrade with UART first, which mentioned DFU mode to use the bootloader. I updated the module with the HEX compiled from the SDK (&amp;lt;InstallFolder&amp;gt;\examples\dfu\secure_bootloader\pca10056_uart)， &lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt;with command:&lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt;nrfjprog --reset --program examples\dfu\secure_bootloader\pca10056_uart\secure_bootloader_uart_mbr_pca10056.hex --family NRF52 --sectoranduicrerase&lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt;Then use the nrfutil command to upgrade:&lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt;nrfutil dfu serial -pkg hrs_application_s140.zip -p COM4&lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt;The result prompts &amp;#39;No ping Response after opening COM Port&amp;#39;. I am very confused. I did according to the documentation, whether I burned the wrong bootloader or the wrong command to upgrade?&lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt;Any suggestions would be highly appreciated.&lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt;Best,&lt;/span&gt;&lt;span class="text-only "&gt; &lt;/span&gt;&lt;span class="text-only "&gt;Tao&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class="text-only "&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Lark20200909_2D00_091214.png" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to upgrade nrf52840 application with OTBR</title><link>https://devzone.nordicsemi.com/thread/267836?ContentTypeID=1</link><pubDate>Thu, 03 Sep 2020 12:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c89fdf2-c6b3-498e-9259-00e055016f4c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;There are no upgrade options in OpenWRT/NCP (Network Co Processor) itself, as far as I know. One solution could be to use a serial bootloader (needs to be ported from UART to SPI), and then use the nRF5 SDK&amp;#39;s serial bootloader. You must use nrfutil to generate the FW image, and you can use nrfutil to transfer the image (nrfutil uses USB-&amp;gt;UART, so this would also need to be ported.).&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what your PCB looks like. If you have a large main CPU, perhaps it is easier to add an SWD connection, and program it manually?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>