<?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>Issue downloading the nrfutil software</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94040/issue-downloading-the-nrfutil-software</link><description>Hello, 
 I am having an issue with trying to install the nrfutil program from this Nordic download page . When I click on the download for the Linux(x64) version of the nrfutil, I get the following pop up instead of downloading the nrfutil program: 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Dec 2022 18:52:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94040/issue-downloading-the-nrfutil-software" /><item><title>RE: Issue downloading the nrfutil software</title><link>https://devzone.nordicsemi.com/thread/398629?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 18:52:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ef52c52-929a-43a8-b93e-6275a63670a0</guid><dc:creator>jspear</dc:creator><description>&lt;p&gt;I think I have figured the issue. While trying to use the USB transport protocol, I was using the USB&amp;nbsp;adapter on the short side of the nRF52840 Dev Kit, which&amp;nbsp;apparently does not work. After attaching my USB cable to the&amp;nbsp;long side, the&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil nrf5sdk-tools dfu usb-serial -pkg dfu_img.zip -p /dev/ttyACM1
  [####################################]  100%          
Device programmed.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;command actually worked to upload the firmware! So this is an interesting fact, which is that if using the USB DFU to upload new firmware, the device needs to be hooked up to the USB port connected to the nRF itself (port on the long side of the board), not the port connected to the interface MCU (port on the short side of the board).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think from here, I should be able to close this ticket, as I have a solution to the original post problem, and the subsequent problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue downloading the nrfutil software</title><link>https://devzone.nordicsemi.com/thread/398601?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 15:41:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:387dc6ca-6385-43d2-a734-3e28d50e28e3</guid><dc:creator>jspear</dc:creator><description>&lt;p&gt;Hi Sigurd, thanks for getting with me.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/94040/issue-downloading-the-nrfutil-software/398511"]Can you list the steps you followed to create blinky_mbr.zip?[/quote]
&lt;p&gt;The blinky_mbr.zip was a test package which came from the &amp;lt;NRF_SDK_15_0_ROOT&amp;gt;/examples/dfu/secure_dfu_images/uart/nrf52840/ directory. I have since been working with using the pkg generate command of the nrfutil program to create packages from the ble_app_blinky example, but I still get similar issues.&lt;/p&gt;
&lt;p&gt;Joseph&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue downloading the nrfutil software</title><link>https://devzone.nordicsemi.com/thread/398511?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 11:23:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:468fac78-b77d-470e-8134-5bfb4692fad9</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Elfing is out of office now, so I will continue handling the case in the meantime.&lt;/p&gt;
&lt;p&gt;Can you list the steps you followed to create blinky_mbr.zip?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue downloading the nrfutil software</title><link>https://devzone.nordicsemi.com/thread/397919?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 14:37:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc2dce6f-e455-48eb-9c9d-aa8634b7c56a</guid><dc:creator>jspear</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;Apologies for the delay, yes I was able to get it saved with ctrl + s. I gave it executable permissions using&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;chmod +x nrfutil&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and it appears to be working as I am able to use the newer commands such as installing the nrf5sdk-tools command. I seem to be running into a new problem. Following the same procedures I used above, I change the last line where I use the nrfutil and insert the nrf5sdk-tools command (seen at the top of the following code)&amp;nbsp;and now I get a new error as shown here:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;./nrfutil nrf5sdk-tools dfu serial -pkg blinky_mbr.zip -p /dev/ttyACM0
  [------------------------------------]    0%
Traceback (most recent call last):
  File &amp;quot;nordicsemi/__main__.py&amp;quot;, line 1555, in &amp;lt;module&amp;gt;
  File &amp;quot;click/core.py&amp;quot;, line 1137, in __call__
  File &amp;quot;click/core.py&amp;quot;, line 1062, in main
  File &amp;quot;click/core.py&amp;quot;, line 1668, in invoke
  File &amp;quot;click/core.py&amp;quot;, line 1668, in invoke
  File &amp;quot;click/core.py&amp;quot;, line 1404, in invoke
  File &amp;quot;click/core.py&amp;quot;, line 763, in invoke
  File &amp;quot;nordicsemi/__main__.py&amp;quot;, line 1073, in serial
  File &amp;quot;nordicsemi/__main__.py&amp;quot;, line 988, in do_serial
  File &amp;quot;nordicsemi/dfu/dfu.py&amp;quot;, line 127, in dfu_send_images
  File &amp;quot;nordicsemi/dfu/dfu.py&amp;quot;, line 95, in _dfu_send_image
  File &amp;quot;nordicsemi/dfu/dfu_transport_serial.py&amp;quot;, line 255, in send_init_packet
  File &amp;quot;nordicsemi/dfu/dfu_transport_serial.py&amp;quot;, line 474, in __stream_data
  File &amp;quot;nordicsemi/dfu/dfu_transport_serial.py&amp;quot;, line 409, in __calculate_checksum
  File &amp;quot;nordicsemi/dfu/dfu_transport_serial.py&amp;quot;, line 491, in __get_response
pc_ble_driver_py.exceptions.NordicSemiException: Unexpected Executed OP_CODE.
Expected: 0x03 Received: 0x55
[7195] Failed to execute script &amp;#39;__main__&amp;#39; due to unhandled exception!&lt;/pre&gt; Before attempting this I did an nrfutil upgrade to make sure I had the latest version, and I freshly installed the nrf5sdk-tools.&lt;/p&gt;
&lt;p&gt;It seems I am using the correct, most updated program now, I am just running into this issue now.&lt;/p&gt;
&lt;p&gt;Thanks for all of the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue downloading the nrfutil software</title><link>https://devzone.nordicsemi.com/thread/396957?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 14:03:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c10538a-c34f-4c4e-b31b-b8d6bccaada7</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;First of all, I believe there is some standard set in your browser that makes it open files without an extension as a text file in the browser instead of downloading them. I guess you&amp;#39;d want this fixed, but for now you can circumvent this by saving the text that is being opened by eg. pressing ctrl+s.&lt;/p&gt;
&lt;p&gt;Does this fix the version issues you ran into later on?&lt;/p&gt;
&lt;p&gt;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: Issue downloading the nrfutil software</title><link>https://devzone.nordicsemi.com/thread/396722?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2022 15:15:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15eb1318-3ca4-43e2-bc33-e4dd9a76abf9</guid><dc:creator>jspear</dc:creator><description>&lt;p&gt;Thank you. In the meantime I have a little bit more information regarding the pip3 installation of the nrfutil program:&lt;/p&gt;
&lt;p&gt;I figured out that the &amp;quot;usb_serial&amp;quot; is actually &amp;quot;usb-serial&amp;quot; and overlooked this at first. However, I am still running into an issue with the nrfutil command giving the following error (in the following example I tried using UART. A very similar thing occurs when I&amp;#39;m using USB):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil dfu serial -pkg blinky_mbr.zip -p /dev/ttyACM0
  [------------------------------------]    0%
Traceback (most recent call last):
  File &amp;quot;/home/jspear/.local/bin/nrfutil&amp;quot;, line 8, in &amp;lt;module&amp;gt;
    sys.exit(cli())
  File &amp;quot;/usr/lib/python3/dist-packages/click/core.py&amp;quot;, line 1128, in __call__
    return self.main(*args, **kwargs)
  File &amp;quot;/usr/lib/python3/dist-packages/click/core.py&amp;quot;, line 1053, in main
    rv = self.invoke(ctx)
  File &amp;quot;/usr/lib/python3/dist-packages/click/core.py&amp;quot;, line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File &amp;quot;/usr/lib/python3/dist-packages/click/core.py&amp;quot;, line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File &amp;quot;/usr/lib/python3/dist-packages/click/core.py&amp;quot;, line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File &amp;quot;/usr/lib/python3/dist-packages/click/core.py&amp;quot;, line 754, in invoke
    return __callback(*args, **kwargs)
  File &amp;quot;/home/jspear/.local/lib/python3.10/site-packages/nordicsemi/__main__.py&amp;quot;, line 1073, in serial
    do_serial(package, port, connect_delay, flow_control, packet_receipt_notification, baud_rate, serial_number, True,
  File &amp;quot;/home/jspear/.local/lib/python3.10/site-packages/nordicsemi/__main__.py&amp;quot;, line 988, in do_serial
    dfu.dfu_send_images()
  File &amp;quot;/home/jspear/.local/lib/python3.10/site-packages/nordicsemi/dfu/dfu.py&amp;quot;, line 127, in dfu_send_images
    self._dfu_send_image(self.manifest.application)
  File &amp;quot;/home/jspear/.local/lib/python3.10/site-packages/nordicsemi/dfu/dfu.py&amp;quot;, line 95, in _dfu_send_image
    self.dfu_transport.send_init_packet(data)
  File &amp;quot;/home/jspear/.local/lib/python3.10/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;/home/jspear/.local/lib/python3.10/site-packages/nordicsemi/dfu/dfu_transport_serial.py&amp;quot;, line 474, in __stream_data
    response = self.__calculate_checksum()
  File &amp;quot;/home/jspear/.local/lib/python3.10/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;/home/jspear/.local/lib/python3.10/site-packages/nordicsemi/dfu/dfu_transport_serial.py&amp;quot;, line 491, in __get_response
    raise NordicSemiException(&amp;#39;Unexpected Executed OP_CODE.\n&amp;#39; \
pc_ble_driver_py.exceptions.NordicSemiException: Unexpected Executed OP_CODE.
Expected: 0x03 Received: 0x55&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Not sure if this is something caused by me not using the official release which is on the aforementioned Nordic webpage download (side not, I&amp;#39;m not sure if that download is even different from the pip3 install) or if there is another issue going on.&lt;/p&gt;
&lt;p&gt;My overall goal is install a DFU bootloader and then an example application to test functionality. I am using an nRF52840-DK and some files from the dfu example in the nRF5 SDK v15. Here are the steps I am following to try and get them installed on the device:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Erase the whole flash using the following command:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog -e&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;From /examples/dfu/secure_bootloader/pca10056_uart_debug/hex I install the secure_bootloader_uart_mbr_pca10056_debug.hex file onto the DK using the following command:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --reset --program secure_bootloader_uart_mbr_pca10056_debug.hex --verify&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;From /examples/dfu/secure_dfu_test_images/uart/nrf52840 I install the&amp;nbsp;blinky_mbr.zip file onto the DK using the following command:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil dfu serial -pkg blinky_mbr.zip -p /dev/ttyACM0&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;At this point I get the error described above.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Is there any steps I am missing? I&amp;#39;ve been trying to follow various guides on how to&amp;nbsp;&lt;a title="program the bootloader" href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Flib_bootloader.html" rel="noopener noreferrer" target="_blank"&gt;program the bootloader&lt;/a&gt;&amp;nbsp;and how to&amp;nbsp;&lt;a title="install FW using DFU over Serial" href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Fexamples_bootloader.html&amp;amp;cp=8_1_4_4" rel="noopener noreferrer" target="_blank"&gt;install FW using DFU over Serial&lt;/a&gt;, so if there are better/updated guides that I should follow, it would be wonderful to know.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue downloading the nrfutil software</title><link>https://devzone.nordicsemi.com/thread/396711?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2022 14:51:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f984924-1845-4510-8250-8a9d9bea0563</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Joseph,&lt;/p&gt;
&lt;p&gt;I am looking into it, and will get back to you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>