<?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>Secure DFU: Isn&amp;#39;t upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59249/secure-dfu-isn-t-upgrading-firmware-with-custom-files</link><description>Hello there, 
 
 I am working on secure dfu. I followed all the steps mentioned in this post and successfully created the secure .zip file. 
 
 Here&amp;#39;s what I did(In this order): 
 
 Loaded Softdevice 6.1.1 
 Flashed &amp;quot;secure_bootloader_ble_s140_pca10056</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Mar 2020 11:02:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59249/secure-dfu-isn-t-upgrading-firmware-with-custom-files" /><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/242075?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 11:02:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccc908d6-fccf-42cb-8025-9e7865cbc5c2</guid><dc:creator>tejaChintalapati</dc:creator><description>&lt;p&gt;Thanks a ton, Amanda. Disabling the Mass Storage helped me solve the problem. &lt;br /&gt;&lt;br /&gt;Now, I could update the firmware using the nRFUtil using default key and created custom key.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I appreciate your help. Thanks a ton.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/242049?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 10:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9c104ac-b89c-4a1b-9922-c42ad4333ce9</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This issue seems very similar to&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/57490/serial-dfu-is-failing-with-invalid-response"&gt;this thread&lt;/a&gt;&lt;span&gt;. Can you try to disable the mass storage device in the onboard debugger using the&amp;nbsp;MSDDisable in&amp;nbsp;JLink Commander, as described&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.zephyrproject.org/1.11.0/tools/nordic_segger.html#disabling-the-mass-storage-device-functionality"&gt;here&lt;/a&gt;&lt;span&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/242019?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 09:10:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7434bde5-fc55-48e2-a5a0-ec212e93fe22</guid><dc:creator>tejaChintalapati</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the response.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Yes. I can see the version number is 6.0.1&lt;/li&gt;
&lt;li&gt;Using the original key, I got the same error:&lt;pre class="ui-code" data-mode="text"&gt;Traceback (most recent call last):
&amp;#160; File &amp;quot;C:\Users\tejac\AppData\Local\Programs\Python\Python37-32\Scripts\nrfutil-script.py&amp;quot;, line 11, in &amp;lt;module&amp;gt;
&amp;#160; &amp;#160; load_entry_point(&amp;#39;nrfutil==6.0.1&amp;#39;, &amp;#39;console_scripts&amp;#39;, &amp;#39;nrfutil&amp;#39;)()
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 829, in __call__
&amp;#160; &amp;#160; return self.main(*args, **kwargs)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 782, in main
&amp;#160; &amp;#160; rv = self.invoke(ctx)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1259, in invoke
&amp;#160; &amp;#160; return _process_result(sub_ctx.command.invoke(sub_ctx))
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1259, in invoke
&amp;#160; &amp;#160; return _process_result(sub_ctx.command.invoke(sub_ctx))
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1066, in invoke
&amp;#160; &amp;#160; return ctx.invoke(self.callback, **ctx.params)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 610, in invoke
&amp;#160; &amp;#160; return callback(*args, **kwargs)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 994, in usb_serial
&amp;#160; &amp;#160; timeout)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 949, in do_serial
&amp;#160; &amp;#160; dfu.dfu_send_images()
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 127, in dfu_send_images
&amp;#160; &amp;#160; self._dfu_send_image(self.manifest.application)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 95, in _dfu_send_image
&amp;#160; &amp;#160; self.dfu_transport.send_init_packet(data)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 255, in send_init_packet
&amp;#160; &amp;#160; self.__stream_data(data=init_packet)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 474, in __stream_data
&amp;#160; &amp;#160; response = self.__calculate_checksum()
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 409, in __calculate_checksum
&amp;#160; &amp;#160; response = self.__get_response(DfuTransportSerial.OP_CODE[&amp;#39;CalcChecSum&amp;#39;])
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 492, in __get_response
&amp;#160; &amp;#160; + &amp;#39;Expected: 0x{:02X} Received: 0x{:02X}&amp;#39;.format(operation, resp[1]))
pc_ble_driver_py.exceptions.NordicSemiException: Unexpected Executed OP_CODE.
Expected: 0x03 Received: 0xF5&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/242003?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 07:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9275d71d-f28c-4d30-81cc-af6e3da5e494</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Yes, I think that might be the issue. You could check by typing&amp;nbsp;&lt;strong&gt;nrfutil version. &lt;/strong&gt;You should see the version number if it is supported. Then, you should use the&amp;nbsp;blinky_mbr.zip under&amp;nbsp;RF5_SDK\examples\dfu\secure_dfu_test_images\uart\nrf52840 before you try to create the new package.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please let me know:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Could you see the nrfutil version with&amp;nbsp;&lt;strong&gt;nrfutil version&lt;/strong&gt;?&lt;/li&gt;
&lt;li&gt;Does the&amp;nbsp;&lt;span&gt;blinky_mbr.zip (under&amp;nbsp;RF5_SDK\examples\dfu\secure_dfu_test_images\uart\nrf52840) work with unmodified pca10056_uart?&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/241763?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 10:04:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1409d9a6-dcce-44c8-ba22-dde15e0c6e28</guid><dc:creator>tejaChintalapati</dc:creator><description>&lt;p&gt;Also, I would like to point-out that the Python Version I have is 3.7, as you can see in the log.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I vaguely remember reading somewhere that nrfutil &lt;em&gt;&lt;strong&gt;ONLY &lt;/strong&gt;&lt;/em&gt;works with Python V2.xx&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you think that&amp;#39;s the issue here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/241761?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 10:02:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79a30d02-65d9-43b0-af47-4889f1dfbb48</guid><dc:creator>tejaChintalapati</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for responding to this. I really appreciate your help during the pandemic like this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I did try with &lt;strong&gt;nrfutil pkg generate --hw-version 52 --application-version 1 --application &lt;i&gt;blinky_mbr.hex&lt;/i&gt; --sd-req &lt;i&gt;0x00 &lt;/i&gt;--key-file private.key &lt;i&gt;blinkyUARTSecure&lt;/i&gt;.zip&lt;/strong&gt;.e&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With the firmware I have, I got this error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate --hw-version 52 --application-version 1 --application Firmware_PD52840V1R1_ParkAssist.hex --sd-req 0x00 --key-file private.key PDFW.zip
Zip created at PDFW.zip

C:\Users\tejac&amp;gt;nrfutil dfu usb-serial -pkg PDFW.zip -p COM4

Traceback (most recent call last):
&amp;#160; File &amp;quot;C:\Users\tejac\AppData\Local\Programs\Python\Python37-32\Scripts\nrfutil-script.py&amp;quot;, line 11, in &amp;lt;module&amp;gt;
&amp;#160; &amp;#160; load_entry_point(&amp;#39;nrfutil==6.0.1&amp;#39;, &amp;#39;console_scripts&amp;#39;, &amp;#39;nrfutil&amp;#39;)()
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 829, in __call__
&amp;#160; &amp;#160; return self.main(*args, **kwargs)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 782, in main
&amp;#160; &amp;#160; rv = self.invoke(ctx)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1259, in invoke
&amp;#160; &amp;#160; return _process_result(sub_ctx.command.invoke(sub_ctx))
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1259, in invoke
&amp;#160; &amp;#160; return _process_result(sub_ctx.command.invoke(sub_ctx))
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1066, in invoke
&amp;#160; &amp;#160; return ctx.invoke(self.callback, **ctx.params)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 610, in invoke
&amp;#160; &amp;#160; return callback(*args, **kwargs)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 994, in usb_serial
&amp;#160; &amp;#160; timeout)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 949, in do_serial
&amp;#160; &amp;#160; dfu.dfu_send_images()
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 127, in dfu_send_images
&amp;#160; &amp;#160; self._dfu_send_image(self.manifest.application)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 95, in _dfu_send_image
&amp;#160; &amp;#160; self.dfu_transport.send_init_packet(data)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 255, in send_init_packet
&amp;#160; &amp;#160; self.__stream_data(data=init_packet)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 474, in __stream_data
&amp;#160; &amp;#160; response = self.__calculate_checksum()
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 409, in __calculate_checksum
&amp;#160; &amp;#160; response = self.__get_response(DfuTransportSerial.OP_CODE[&amp;#39;CalcChecSum&amp;#39;])
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 492, in __get_response
&amp;#160; &amp;#160; + &amp;#39;Expected: 0x{:02X} Received: 0x{:02X}&amp;#39;.format(operation, resp[1]))
pc_ble_driver_py.exceptions.NordicSemiException: Unexpected Executed OP_CODE.
Expected: 0x03 Received: 0x0D&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With Blinky_mdr.hex, I got this error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate --hw-version 52 --application-version 1 --application blinky_mbr.hex --sd-req 0x00 --key-file private.key blinkyUARTSecure.zip
Zip created at blinkyUARTSecure.zip

C:\Users\tejac&amp;gt;nrfutil dfu usb-serial -pkg blinkyUARTSecure.zip -p COM4

Traceback (most recent call last):
&amp;#160; File &amp;quot;C:\Users\tejac\AppData\Local\Programs\Python\Python37-32\Scripts\nrfutil-script.py&amp;quot;, line 11, in &amp;lt;module&amp;gt;
&amp;#160; &amp;#160; load_entry_point(&amp;#39;nrfutil==6.0.1&amp;#39;, &amp;#39;console_scripts&amp;#39;, &amp;#39;nrfutil&amp;#39;)()
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 829, in __call__
&amp;#160; &amp;#160; return self.main(*args, **kwargs)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 782, in main
&amp;#160; &amp;#160; rv = self.invoke(ctx)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1259, in invoke
&amp;#160; &amp;#160; return _process_result(sub_ctx.command.invoke(sub_ctx))
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1259, in invoke
&amp;#160; &amp;#160; return _process_result(sub_ctx.command.invoke(sub_ctx))
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1066, in invoke
&amp;#160; &amp;#160; return ctx.invoke(self.callback, **ctx.params)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 610, in invoke
&amp;#160; &amp;#160; return callback(*args, **kwargs)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 994, in usb_serial
&amp;#160; &amp;#160; timeout)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 949, in do_serial
&amp;#160; &amp;#160; dfu.dfu_send_images()
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 127, in dfu_send_images
&amp;#160; &amp;#160; self._dfu_send_image(self.manifest.application)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 95, in _dfu_send_image
&amp;#160; &amp;#160; self.dfu_transport.send_init_packet(data)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 255, in send_init_packet
&amp;#160; &amp;#160; self.__stream_data(data=init_packet)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 474, in __stream_data
&amp;#160; &amp;#160; response = self.__calculate_checksum()
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 409, in __calculate_checksum
&amp;#160; &amp;#160; response = self.__get_response(DfuTransportSerial.OP_CODE[&amp;#39;CalcChecSum&amp;#39;])
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 492, in __get_response
&amp;#160; &amp;#160; + &amp;#39;Expected: 0x{:02X} Received: 0x{:02X}&amp;#39;.format(operation, resp[1]))
pc_ble_driver_py.exceptions.NordicSemiException: Unexpected Executed OP_CODE.
Expected: 0x03 Received: 0xF5&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not sure what&amp;#39;s causing this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/241752?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 09:39:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14605827-2fea-4e8b-907d-576be9d6d7d1</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Teja,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="tejaChintalapati"]Create a secure package using &lt;strong&gt;nrfutil pkg generate --hw-version 52 --application-version 1 --application &lt;i&gt;blinky_mbr.hex&lt;/i&gt; --sd-req &lt;i&gt;0xB6 &lt;/i&gt;--key-file private.key &lt;i&gt;blinkyUARTSecure&lt;/i&gt;.zip&lt;/strong&gt;. Please note that I created a custom keys and I did update the bootloader code with the created public key.[/quote]
&lt;p&gt;&amp;nbsp;You should use&lt;/p&gt;
&lt;p&gt;nrfutil pkg generate --hw-version 52 --application-version 1 --application blinky_mbr.hex --sd-req &lt;strong&gt;0x00&lt;/strong&gt; --key-file private.key blinkyUARTSecure.zip&lt;/p&gt;
&lt;p&gt;&lt;span&gt;An empty&amp;nbsp;&lt;/span&gt;&lt;code&gt;sd_req&lt;/code&gt;&lt;span&gt;&amp;nbsp;list is equivalent to an&amp;nbsp;&lt;/span&gt;&lt;code&gt;sd_req&lt;/code&gt;&lt;span&gt;&amp;nbsp;list containing a single 0x00. Please see&amp;nbsp;&lt;a title="Updates without a SoftDevice" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader_dfu_validation.html?cp=7_1_3_5_1_1_2_1_0#sd_independent_update"&gt;Updates without a SoftDevice&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/241728?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 07:56:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:947da751-64b2-411b-a331-f0f391e5cbd2</guid><dc:creator>tejaChintalapati</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/amanda"&gt;Amanda Hsieh&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the process I follow:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Get the .hex file from:\SDK\nRF5_SDK_16.0.0_98a08e2\examples\peripheral\xxxxxxxxxxxxt\pca10056\blank\ses\Output\Release\Exe&lt;/li&gt;
&lt;li&gt;Create a secure package using &lt;strong&gt;nrfutil pkg generate --hw-version 52 --application-version 1 --application &lt;i&gt;blinky_mbr.hex&lt;/i&gt; --sd-req &lt;i&gt;0xB6 &lt;/i&gt;--key-file private.key &lt;i&gt;blinkyUARTSecure&lt;/i&gt;.zip&lt;/strong&gt;. Please note that I created a custom keys and I did update the bootloader code with the created public key.&lt;/li&gt;
&lt;li&gt;Send the created package using &lt;strong&gt;nrfutil dfu usb-serial -pkg &lt;i&gt;blinkyUARTSecure&lt;/i&gt;.zip -p COM4 &lt;/strong&gt;command. Where &lt;strong&gt;COM4&lt;/strong&gt; is &lt;strong&gt;JLink CDC UART Port&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I tried with&lt;strong&gt; blinky_mbr.hex. &lt;/strong&gt;from nRF5_SDK\examples\dfu\secure_dfu_test_images\uart\nrf52840 However, I got a similar error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Traceback (most recent call last):
&amp;#160; File &amp;quot;C:\Users\tejac\AppData\Local\Programs\Python\Python37-32\Scripts\nrfutil-script.py&amp;quot;, line 11, in &amp;lt;module&amp;gt;
&amp;#160; &amp;#160; load_entry_point(&amp;#39;nrfutil==6.0.1&amp;#39;, &amp;#39;console_scripts&amp;#39;, &amp;#39;nrfutil&amp;#39;)()
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 829, in __call__
&amp;#160; &amp;#160; return self.main(*args, **kwargs)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 782, in main
&amp;#160; &amp;#160; rv = self.invoke(ctx)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1259, in invoke
&amp;#160; &amp;#160; return _process_result(sub_ctx.command.invoke(sub_ctx))
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1259, in invoke
&amp;#160; &amp;#160; return _process_result(sub_ctx.command.invoke(sub_ctx))
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1066, in invoke
&amp;#160; &amp;#160; return ctx.invoke(self.callback, **ctx.params)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 610, in invoke
&amp;#160; &amp;#160; return callback(*args, **kwargs)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 994, in usb_serial
&amp;#160; &amp;#160; timeout)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 949, in do_serial
&amp;#160; &amp;#160; dfu.dfu_send_images()
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 127, in dfu_send_images
&amp;#160; &amp;#160; self._dfu_send_image(self.manifest.application)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 95, in _dfu_send_image
&amp;#160; &amp;#160; self.dfu_transport.send_init_packet(data)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 255, in send_init_packet
&amp;#160; &amp;#160; self.__stream_data(data=init_packet)
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 474, in __stream_data
&amp;#160; &amp;#160; response = self.__calculate_checksum()
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 409, in __calculate_checksum
&amp;#160; &amp;#160; response = self.__get_response(DfuTransportSerial.OP_CODE[&amp;#39;CalcChecSum&amp;#39;])
&amp;#160; File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 492, in __get_response
&amp;#160; &amp;#160; + &amp;#39;Expected: 0x{:02X} Received: 0x{:02X}&amp;#39;.format(operation, resp[1]))
pc_ble_driver_py.exceptions.NordicSemiException: Unexpected Executed OP_CODE.
Expected: 0x03 Received: 0xCD&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/241317?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 10:24:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b647f17e-a857-4d84-852e-cc46885b3d54</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How did you generate the&amp;nbsp;&lt;span&gt;PDFW.zip? Do you see this issue if you use a precompiled bootloader example and example .zip file under nRF5_SDK\examples\dfu\secure_dfu_test_images\uart\nrf52840?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/240819?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 10:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bea03b09-5cc7-49c0-9158-78f6c52139d0</guid><dc:creator>tejaChintalapati</dc:creator><description>&lt;p&gt;Thanks Amanda.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried updating the firmware using secure UART DFU and I am getting an error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;COM Port:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Ports.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrfUtil Command:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;nrfutil dfu serial -pkg PDFW.zip -p COM4&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Error:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="text"&gt;Traceback (most recent call last):
  File &amp;quot;C:\Users\tejac\AppData\Local\Programs\Python\Python37-32\Scripts\nrfutil-script.py&amp;quot;, line 11, in &amp;lt;module&amp;gt;
    load_entry_point(&amp;#39;nrfutil==6.0.1&amp;#39;, &amp;#39;console_scripts&amp;#39;, &amp;#39;nrfutil&amp;#39;)()
  File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 829, in __call__
    return self.main(*args, **kwargs)
  File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 782, in main
    rv = self.invoke(ctx)
  File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\click\core.py&amp;quot;, line 610, in invoke
    return callback(*args, **kwargs)
  File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 1035, in serial
    timeout)
  File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 949, in do_serial
    dfu.dfu_send_images()
  File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 127, in dfu_send_images
    self._dfu_send_image(self.manifest.application)
  File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 95, in _dfu_send_image
    self.dfu_transport.send_init_packet(data)
  File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 255, in send_init_packet
    self.__stream_data(data=init_packet)
  File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 474, in __stream_data
    response = self.__calculate_checksum()
  File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 409, in __calculate_checksum
    response = self.__get_response(DfuTransportSerial.OP_CODE[&amp;#39;CalcChecSum&amp;#39;])
  File &amp;quot;c:\users\tejac\appdata\local\programs\python\python37-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 492, in __get_response
    + &amp;#39;Expected: 0x{:02X} Received: 0x{:02X}&amp;#39;.format(operation, resp[1]))
pc_ble_driver_py.exceptions.NordicSemiException: Unexpected Executed OP_CODE.
Expected: 0x03 Received: 0xF0&lt;/pre&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Can you help me understand what&amp;#39;s causing this and how I can fix this?&lt;strong&gt; &lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/240801?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 10:10:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e896dc5-4a9e-4743-b574-7196715ab7e4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think you are testing&amp;nbsp;&lt;span&gt;secure_bootloader_ble, then you only can update the ble application like&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_blinky.html"&gt;BLE Blinky Application&lt;/a&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to update the application like&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/gpio_example.html"&gt;Blinky Example&lt;/a&gt;, you should use&amp;nbsp;&lt;span&gt;the UART DFU.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/240763?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 08:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1149e783-e927-4935-9b36-571edeed6cc1</guid><dc:creator>tejaChintalapati</dc:creator><description>&lt;p&gt;I think I get what you&amp;#39;re saying.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I believe, I am not creating &amp;quot;Application&amp;quot; file. Creating the zip files using the .hex file from &lt;strong&gt;nRF5_SDK_16.0.0_98a08e2\examples\peripheral\&lt;em&gt;projectName&lt;/em&gt;\pca10056\blank\ses\Output\Release\Exe&lt;/strong&gt;, is not the right way to creating &amp;quot;Application&amp;quot; which bootloader is expecting.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If my understanding is correct, can you please help me create a right application file to be used in secure USB and/or secure BLE bootloaders?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/240761?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 07:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b7f59e6-2c96-4a57-b2b7-c199cfa958ca</guid><dc:creator>tejaChintalapati</dc:creator><description>&lt;p&gt;Here are the steps I currently follow:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Erase the MCU using SES&lt;/li&gt;
&lt;li&gt;Load softdevice by going to &lt;strong&gt;Target -&amp;gt; Download File -&amp;gt; Download Intel Hex File -&amp;gt;&lt;/strong&gt; and selecting the file from&lt;strong&gt; \SDK\Components\softdevice\s140\hex&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Open &lt;strong&gt;secure_bootloader_ble_s140_pca10056 &lt;/strong&gt;project and loading into DK by clicking on&lt;strong&gt; F5&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Create the package using nrfutil after matching the softdevice version&lt;/li&gt;
&lt;li&gt;Load the package on nRFConnect App on my phone&lt;/li&gt;
&lt;li&gt;Connecting to the device, goto Update tab and then click on &amp;quot;&lt;strong&gt;Start&lt;/strong&gt;&amp;quot;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/240760?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 07:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca25e620-8d41-44f7-a524-6b3b90dac375</guid><dc:creator>tejaChintalapati</dc:creator><description>&lt;p&gt;Hi, Amanda,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for responding to my question. I have my own project(Without BLE) and I want to understand how to use DFU to update the application.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As you know already, Everytime I &amp;quot;build&amp;quot; the application using SES, a new .hex file will be created in:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nRF5_SDK_16.0.0_98a08e2\examples\peripheral\&lt;em&gt;projectName&lt;/em&gt;\pca10056\blank\ses\Output\Release\Exe&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Can you please tell me what should I do, apart from creating update package using nrfutil, to update this application using nRFCOnnect app on my phone?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Isn't upgrading firmware with custom files</title><link>https://devzone.nordicsemi.com/thread/240759?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 07:36:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ed73d9e-be16-4363-a74f-aab0cbd51146</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]If I use the .hex file from &lt;strong&gt;/project/pca10056/blank/ses/Output/Debug/Exe &lt;/strong&gt;and create a secure .zip file with nrfutil and try to upgrade the application, the upgrade is complete on nRF Connect App. Then LEDs will be off and nothing happens. On restart, nothing boots up - neither BLE nor new App code.[/quote]
&lt;p&gt;&amp;nbsp;You should use&amp;nbsp;ble_app_blinky_pca10056_s140.hex under&amp;nbsp;nRF5_SDK\examples\ble_peripheral\ble_app_blinky\hex to create the .zip file to run the BLE application.&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>