<?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>In the serial example, how to use the command JumpToBootloader() to enter dfu mode.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81483/in-the-serial-example-how-to-use-the-command-jumptobootloader-to-enter-dfu-mode</link><description>Hi Nordic, 
 I want to send JumpToBootloader() command to nrf52832 module to make it enter dfu mode and update. 
 But I got the following error, can you tell me what is the right way. 
 error : ERROR_REHECTED. 
 
 
 I have successfully updated FW with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Nov 2021 10:07:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81483/in-the-serial-example-how-to-use-the-command-jumptobootloader-to-enter-dfu-mode" /><item><title>RE: In the serial example, how to use the command JumpToBootloader() to enter dfu mode.</title><link>https://devzone.nordicsemi.com/thread/341021?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 10:07:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e32e7d1-aed1-40a4-9eb6-786fb3e73bf6</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hey again Leo!&lt;/p&gt;
&lt;p&gt;Sounds good! :)&lt;/p&gt;
&lt;p&gt;Maybe&amp;nbsp;something along the lines of what is discussed in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/54225/dfu-mode-through-selecting-the-gpregret-register"&gt;this case&lt;/a&gt; would be interesting for you as well.&lt;/p&gt;
&lt;p&gt;Let me know if there is anything else!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In the serial example, how to use the command JumpToBootloader() to enter dfu mode.</title><link>https://devzone.nordicsemi.com/thread/340636?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 06:11:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46369481-b56e-4ac5-9229-e5eb807b8139</guid><dc:creator>Leo Lin</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/81483/in-the-serial-example-how-to-use-the-command-jumptobootloader-to-enter-dfu-mode/340396#340396"]Sorry about that extra comment in Norwegian btw!&amp;nbsp;I didn&amp;#39;t mean to leave it there :)[/quote]
&lt;p&gt;Haha, it&amp;#39;s OK！&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/81483/in-the-serial-example-how-to-use-the-command-jumptobootloader-to-enter-dfu-mode/340396#340396"]Yes, I am quite sure every example can be used along with normal DFU. Though there are other factors such as flash space etc. that might limit you.[/quote]
&lt;p&gt;OK,&amp;nbsp;I want to think about how to integrate normal DFU into my example.&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/81483/in-the-serial-example-how-to-use-the-command-jumptobootloader-to-enter-dfu-mode/340396#340396"]Did you follow the additional steps for that &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_doc_user_guide_modules_dfu_configuring_performing.html"&gt;mentioned here&lt;/a&gt;?&amp;nbsp;[/quote]
&lt;p&gt;I have seen this, but I don&amp;#39;t know the difference in details. But I should not continue to look here at the moment, and I will look at this one again when I have time.&amp;nbsp;If there are any questions, I will raise a ticket to ask questions, thank you！&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/81483/in-the-serial-example-how-to-use-the-command-jumptobootloader-to-enter-dfu-mode/340396#340396"]&lt;p&gt;For mesh? Absolutely.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The node takes a certain batch of that DFU it has received and sends it into the mesh network, with which it also is limited to 10 packets a second. It needs to do this so that the rest of the Mesh network also gets this DFU, though I guess in your case there is no Mesh network. Just this node.&lt;/p&gt;[/quote]
&lt;p&gt;I already know this, thank you, I can use the parameter -i to adjust the data transmission interval.&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/81483/in-the-serial-example-how-to-use-the-command-jumptobootloader-to-enter-dfu-mode/340396#340396"]The question is if you want to update just a couple of devices or an entire network of units. Mesh DFU is a good way updating an entire mesh network. I assume a normal DFU is what you want. If you want it activated without a button maybe a firmware update over the air (FOTA) is what you need? &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf52.html#fota-upgrades"&gt;Take a look here&lt;/a&gt;.[/quote]
&lt;p&gt;I also think nromal DFU is more suitable for my needs.&lt;/p&gt;
&lt;p&gt;I should send a command to enter DFU mode through the serial interface, not using buttons or ota.&lt;br /&gt;But I am still not sure what I want to do.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In the serial example, how to use the command JumpToBootloader() to enter dfu mode.</title><link>https://devzone.nordicsemi.com/thread/340396?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 15:12:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ca79bb4-f1e5-4cb4-b60a-95f1b3ec402e</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hey again Leo!&lt;/p&gt;
[quote user="Leo Lin"]See this &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fble_sdk_app_dfu_bootloader.html"&gt;example&lt;/a&gt;?&amp;nbsp;But are nomal DFU and mesh DFU independent?[/quote]
&lt;p&gt;Yes, that example. And the two types of DFU are somewhat independent: the proprietary mesh DFU and the BLE OTA DFU (Secure Bootloader) from nRF5 SDK. The first kind allows the nodes to be upgraded in parallel, while the latter requires individual separate connections to every node that is to be upgraded. Think of it as a DFU &lt;em&gt;using Mesh&lt;/em&gt;. The Mesh DFU is complex, but is practical if you have a lot of nodes.&lt;/p&gt;
&lt;p&gt;Sorry about that extra comment in Norwegian btw!&amp;nbsp;I didn&amp;#39;t mean to leave it there :)&lt;/p&gt;
[quote user="Leo Lin"]Can I use this example with normal DFU?[/quote]
&lt;p&gt;Yes, I am quite sure every example can be used along with normal DFU. Though there are other factors such as flash space etc. that might limit you.&lt;/p&gt;
[quote user="Leo Lin"]Yes, I have successfully used &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_doc_user_guide_modules_dfu_configuring_performing.html"&gt;Mesh DFU example&lt;/a&gt; to update the A&lt;span&gt;pplication&amp;nbsp;&lt;/span&gt;FW, but the bootloader and softdevice update have not been successful yet.&amp;nbsp;[/quote]
&lt;p&gt;Did you follow the additional steps for that &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_doc_user_guide_modules_dfu_configuring_performing.html"&gt;mentioned here&lt;/a&gt;?&amp;nbsp;&lt;/p&gt;
[quote user="Leo Lin"]However, the transmission speed through serial seems to be a bit slow. It takes more than one hour for me to update an APP FW with a data size of 321KB... Is this normal?[/quote]
&lt;p&gt;For mesh? Absolutely.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The node takes a certain batch of that DFU it has received and sends it into the mesh network, with which it also is limited to 10 packets a second. It needs to do this so that the rest of the Mesh network also gets this DFU, though I guess in your case there is no Mesh network. Just this node.&lt;/p&gt;
[quote user="Leo Lin"]&lt;div&gt;I&amp;#39;m not sure whether I should use normal DFU or mesh DFU, but my purpose is to update the FW of the nRF52832 module through the serial interface. (including bootloader, softdevice and application)&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;The question is if you want to update just a couple of devices or an entire network of units. Mesh DFU is a good way updating an entire mesh network. I assume a normal DFU is what you want. If you want it activated without a button maybe a firmware update over the air (FOTA) is what you need? &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf52.html#fota-upgrades"&gt;Take a look here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In the serial example, how to use the command JumpToBootloader() to enter dfu mode.</title><link>https://devzone.nordicsemi.com/thread/339601?ContentTypeID=1</link><pubDate>Thu, 18 Nov 2021 10:43:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:565422f3-a9d6-46ba-9792-2f26d710bae4</guid><dc:creator>Leo Lin</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;Thank you for your reply&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/81483/in-the-serial-example-how-to-use-the-command-jumptobootloader-to-enter-dfu-mode/339264#339264"]Sure, that can be done. Take a look at the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fble_sdk_app_dfu_bootloader.html"&gt;DFU example for more info about this.&lt;/a&gt;&amp;nbsp;(men spørsmålet er om den har plass til alt det da, da den isåfall må ha enda en partisjon?)[/quote]
&lt;p&gt;See this &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fble_sdk_app_dfu_bootloader.html"&gt;example&lt;/a&gt;?&amp;nbsp;But are nomal DFU and mesh DFU independent?&amp;nbsp;The example I used is &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_examples_serial_README.html&amp;amp;cp=8_2_3_14"&gt;this &lt;/a&gt;and it is placed in the nRF5-SDK-for-Mesh folder.&amp;nbsp;Can I use this example with normal DFU?&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/81483/in-the-serial-example-how-to-use-the-command-jumptobootloader-to-enter-dfu-mode/339264#339264"]Here I am a little bit more uncertain about what you are looking for. At&amp;nbsp;one point you do get to upload the FW using serial with &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_doc_user_guide_modules_dfu_protocol.html"&gt;Mesh DFU&lt;/a&gt;, though the rest happens over the mesh network itself.&amp;nbsp;[/quote]
&lt;p&gt;Yes, I have successfully used &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_doc_user_guide_modules_dfu_configuring_performing.html"&gt;Mesh DFU example&lt;/a&gt; to update the A&lt;span&gt;pplication&amp;nbsp;&lt;/span&gt;FW, but the bootloader and softdevice update have not been successful yet.&amp;nbsp;&lt;br /&gt;However, the transmission speed through serial seems to be a bit slow. It takes more than one hour for me to update an APP FW with a data size of 321KB... Is this normal?&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/81483/in-the-serial-example-how-to-use-the-command-jumptobootloader-to-enter-dfu-mode/339264#339264"]A bit uncertain about what you mean here as well. Using nrfutil and entering DFU mode is necessary with normal DFU, and the steps for Mesh DFU are a bit more complex as you might have seen in its documentation.&amp;nbsp;[/quote]
&lt;p&gt;Okay, so nomal DFU update must first let nrf52832 enter DFU mode, but mesh DFU is not sure.&amp;nbsp;&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/81483/in-the-serial-example-how-to-use-the-command-jumptobootloader-to-enter-dfu-mode/339264#339264"]I see. I&amp;#39;ll look into that and get back to you. Though are you sure that the proprietary Mesh DFU solution is what you are looking for? I got the impression that normal DFU might be sufficient for you as well.[/quote]
&lt;p&gt;I have successfully used this example to update the APP FW, and I think there are two things wrong.&lt;/p&gt;
&lt;p&gt;The process is the same as I posted above, but in the step 1 &amp;quot;### Step 1: Generate a DFU file with nRF Util&amp;quot;&amp;nbsp;I should change it to the following.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;leo@leo-work:~/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh$ nrfutil dfu genpkg --application bin/blinky/blinky_nrf52832_xxAA_s132_7.2.0.hex &lt;span style="color:#00ff00;"&gt;--company-id 0x00000059&lt;/span&gt; --application-id 1 --application-version 2 --key-file private_key.txt &lt;span style="color:#00ff00;"&gt;--sd-req 0x0101&lt;/span&gt; --mesh dfu_test.zip&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;One is that &amp;quot;--company-id&amp;quot; must be the same as the &amp;quot;company-id&amp;quot; in the bootloader_config_default.json file, and&amp;nbsp;the other is --sd-req should be 0x0101. (refer to your file s132_nrf52_7.2.0_release-notes.pdf)&lt;/div&gt;
&lt;div&gt;The value of --sd-req on the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_doc_user_guide_modules_dfu_configuring_performing.html"&gt;website&lt;/a&gt; is wrong?&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I&amp;#39;m not sure whether I should use normal DFU or mesh DFU, but my purpose is to update the FW of the nRF52832 module through the serial interface. (including bootloader, softdevice and application)&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_examples_serial_README.html&amp;amp;cp=8_2_3_14"&gt;The example I used&lt;/a&gt; is under the nRF5-SDK-for-Mesh folder, so should I use mesh DFU?&lt;/div&gt;
&lt;div&gt;If not, I need to use normal DFU and know how to enter DFU mode without a button.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Thank you！&lt;/div&gt;
&lt;div&gt;Leo.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In the serial example, how to use the command JumpToBootloader() to enter dfu mode.</title><link>https://devzone.nordicsemi.com/thread/339264?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 14:29:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93e4f725-db7c-4dd5-a913-fed5e3682ad4</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hey Leo!&lt;/p&gt;
[quote user="Leo Lin"]&lt;p&gt;My goal is to use this example to&amp;nbsp;update the FW of nRF52832 (including bootloader, softdevice and application) through DFU over serial interface.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Sure, that can be done. Take a look at the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fble_sdk_app_dfu_bootloader.html"&gt;DFU example for more info about this.&lt;/a&gt;&lt;/p&gt;
[quote user="Leo Lin"]&lt;p&gt;Q1- Can this example use mesh DFU over serial interface to update FW?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Here I am a little bit more uncertain about what you are looking for. At&amp;nbsp;one point you do get to upload the FW using serial with &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_doc_user_guide_modules_dfu_protocol.html"&gt;Mesh DFU&lt;/a&gt;, though the rest happens over the mesh network itself.&amp;nbsp;&lt;/p&gt;
[quote user="Leo Lin"]&lt;p&gt;Q2-&amp;nbsp;If I want to use the nrfutil tool through serial interface to update the nrf52832 module, the nrf52832 module must first enter the dfu mode, whether it is normal dfu or mesh dfu. right?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;A bit uncertain about what you mean here as well. Using nrfutil and entering DFU mode is necessary with normal DFU, and the steps for Mesh DFU are a bit more complex as you might have seen in its documentation.&amp;nbsp;&lt;/p&gt;
[quote user="Leo Lin"]&lt;p&gt;Q3- Error of mesh DFU example.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I see. I&amp;#39;ll look into that and get back to you. Though are you sure that the proprietary Mesh DFU solution is what you are looking for? I got the impression that normal DFU might be sufficient for you as well.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In the serial example, how to use the command JumpToBootloader() to enter dfu mode.</title><link>https://devzone.nordicsemi.com/thread/338317?ContentTypeID=1</link><pubDate>Wed, 10 Nov 2021 09:01:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b19fd2b4-d6e1-48b3-86cf-85eb73f84437</guid><dc:creator>Leo Lin</dc:creator><description>&lt;p&gt;Hi Ovrebekk,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks you for your reply.&lt;/p&gt;
&lt;p&gt;I use this example nRF5-SDK-for-Mesh/examples/serial/serial_nrf52832_xxAA_s132_7_2_0.emProject.&lt;/p&gt;
&lt;p&gt;My goal is to use this example to&amp;nbsp;update the FW of nRF52832 (including bootloader, softdevice and application) through DFU over serial interface.&lt;/p&gt;
&lt;p&gt;Q1- Can this example use mesh DFU over serial interface to update FW?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Q2-&amp;nbsp;If I want to use the nrfutil tool through serial interface to update the nrf52832 module, the nrf52832 module must first enter the dfu mode, whether it is normal dfu or mesh dfu. right?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Q3- Error of mesh DFU example.&lt;/p&gt;
&lt;p&gt;OK, in order to understand mesh DFU, I did this example &amp;quot;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_doc_user_guide_modules_dfu_configuring_performing.html"&gt;Configuring and performing DFU over Mesh&lt;/a&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;, but I encountered the following problems during the step of &amp;quot;Transferring the DFU archive over serial with nRF Util&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;img height="117" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1636529157498v1.png" width="614" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Can you help me to&amp;nbsp;solve this problem?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here are my steps,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Among them, &lt;span style="background-color:#ffffff;color:#0000ff;"&gt;I skipped step 5 &amp;quot;Flash the first application on all devices&amp;quot;&lt;/span&gt; because I couldn&amp;#39;t find the file build/examples/dfu/dfu_nrf52832_xxAA_s132_7.2.0.hex and I saw the instructions of Note, so I skipped this step, &lt;span style="background-color:#ffffff;color:#0000ff;"&gt;I don&amp;#39;t know if there will be a problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;### gen private key
leo@leo-work:~/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh$ nrfutil keys --gen-key private_key.txt
leo@leo-work:~/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh$ cat private_key.txt
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEILXfxLpB931VNYw8nD3YTEKeucq0YMU4JyHUHWSGftTQoAoGCCqGSM49
AwEHoUQDQgAE+KhRYcdMjpsfdyYNo0c3rY4XxYj7YjQ9vlZTP2NAKauWj7YUU40Y
VriixdEk88IX78T0K9ZzRZ50JWFTfngp6A==
-----END EC PRIVATE KEY-----

### gen public key
leo@leo-work:~/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh$ nrfutil keys --show-vk hex private_key.txt 
Verification key Qx: f8a85161c74c8e9b1f77260da34737ad8e17c588fb62343dbe56533f634029ab
Verification key Qy: 968fb614538d1856b8a2c5d124f3c217efc4f42bd673459e742561537e7829e8

### copy Qx and Qy to bootloader_config_default.json
leo@leo-work:~/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh$ vim tools/dfu/bootloader_config_default.json
leo@leo-work:~/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh$ cat tools/dfu/bootloader_config_default.json
{
    &amp;quot;bootloader_config&amp;quot;: {
        &amp;quot;bootloader_id&amp;quot;: 1,
        &amp;quot;bootloader_version&amp;quot;: 1,
        &amp;quot;company_id&amp;quot;: 89,
        &amp;quot;application_id&amp;quot;: 1,
        &amp;quot;application_version&amp;quot;: 1,
        &amp;quot;public_key&amp;quot;:
        &amp;quot;f8a85161c74c8e9b1f77260da34737ad8e17c588fb62343dbe56533f634029ab968fb614538d1856b8a2c5d124f3c217efc4f42bd673459e742561537e7829e8&amp;quot;
    }
}

### Step 1: Generate a DFU file with nRF Util
leo@leo-work:~/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh$ nrfutil dfu genpkg --application bin/blinky/blinky_nrf52832_xxAA_s132_7.2.0.hex --company-id 0x00000089 --application-id 1 --application-version 2 --key-file private_key.txt --sd-req 0x00CB --mesh dfu_test.zip
Key file was given, setting DFU version to 0.8
Zip created at dfu_test.zip

### Step 2: Generate a HEX version of device page
leo@leo-work:~/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh/tools/dfu$ python device_page_generator.py -d nrf52832_xxAA -sd &amp;quot;s132_7.2.0&amp;quot;
Wrote device page for nrf52832_xxAA with the s132_7.2.0 SoftDevice to bin/device_page_nrf52832_xxAA_s132_7.2.0.hex.

### Step 3: Erase chip memory and flash SoftDevice on all devices
leo@leo-work:~/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh$ nrfjprog --program bin/softdevice/s132_nrf52_7.2.0_softdevice.hex --chiperase
Parsing image file.
Applying system reset.
Verified OK.

### Step 4: Flash the serial bootloader on all devices
leo@leo-work:~/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh$ nrfjprog --program bin/bootloader/gccarmemb/mesh_bootloader_serial_gccarmemb_nrf52832_xxAA.hex 
Parsing image file.
Applying system reset.
Verified OK.

### Step 6: Flash the device page on all devices and reset the device
leo@leo-work:~/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh$ nrfjprog --program tools/dfu/bin/device_page_nrf52832_xxAA_s132_7.2.0.hex 
Parsing image file.
Applying system reset.
Verified OK.

leo@leo-work:~/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh$ nrfjprog --reset
Applying system reset.
Run.

### Transferring the DFU archive over serial with nRF Util
leo@leo-work:~/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh$ ls /dev/ttyACM1 
/dev/ttyACM1
leo@leo-work:~/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh$ nrfutil dfu serial -pkg dfu_test.zip -p /dev/ttyACM1 -b 115200 -fc --mesh
Upgrading target on /dev/ttyACM1 with DFU package /home/leo/Nordic_bluetooth_52832/nRF5-SDK-for-Mesh/dfu_test.zip. Flow control is enabled.


Failed to upgrade target. Error is: Device returned status code ERROR_INVALID_PARAMETER (133) on a DFU data packet.

Possible causes:
- bootloader, SoftDevice or application on target does not match the requirements in the DFU package.
- baud rate or flow control is not the same as in the target bootloader.
- target is not in DFU mode. If using the SDK examples, press Button 4 and RESET and release both to enter DFU mode.
- if the error is ERROR_BUSY at the beginning of the DFU process,increase the value of PAGE_ERASE_TIME_MAX by few milliseconds.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My environment is as follows:&lt;/p&gt;
&lt;p&gt;One computer and one NRF52832-DK are connected with usb cable.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Operating System: Ubuntu18.04&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nRF5 SDK for Mesh v5.0.0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nRF5 SDK v17.0.2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SoftDevice :&amp;nbsp;SoftDevice S132 version 7.2.0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;board: PCA10040.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Python version: Python 2.7.17 and &lt;span style="background-color:#ffffff;color:#000000;"&gt;Python &lt;/span&gt;3.6.9&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfutil tool version: 0.3.0.0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfjprog version: 10.15.0 external&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks in advance.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Leo Lin.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: In the serial example, how to use the command JumpToBootloader() to enter dfu mode.</title><link>https://devzone.nordicsemi.com/thread/338142?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 11:48:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e25e6572-b326-4a3e-b80a-30c8c91df821</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Leo&lt;/p&gt;
&lt;p&gt;Which example are you running on the nRF device when you try to use PyACI to update your application?&lt;/p&gt;
&lt;p&gt;The mesh stack has its own DFU mechanism, which is completely separate from the normal DFU in the SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The mesh DFU is described &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.1.0/md_doc_user_guide_modules_dfu_protocol.html?cp=8_6_1_2_4_0"&gt;here&lt;/a&gt;, and is a unique DFU solution designed to handle&amp;nbsp;DFU in a distributed way that slowly sends an update over the mesh network without having to stop the application in the mean time. This is very different from the normal DFU that requires you to suspend the application, but will run much faster.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The PyACI tool will not work with the standard nRF5 SDK DFU mechanism, and requires the right mesh example to be flashed into the device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>