<?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 do a frimware update which includes SD and app?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58058/how-to-do-a-frimware-update-which-includes-sd-and-app</link><description>I tried to update SD + APP at the same time but it only uploads the SD. I create the zip file like this nrfutil pkg generate --hw-version 52 --application-version 1 --application app.hex --sd-req 0xC1 --sd-id 0xCA --softdevice s140_nrf52_7.0.1_softdevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Feb 2020 19:00:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58058/how-to-do-a-frimware-update-which-includes-sd-and-app" /><item><title>RE: How to do a frimware update which includes SD and app?</title><link>https://devzone.nordicsemi.com/thread/235571?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 19:00:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99edf7aa-24e5-4c1f-b61e-545e419a4864</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Excellent! Glad to hear that things are working as intended. Happy to help and a good evening to you as well!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do a frimware update which includes SD and app?</title><link>https://devzone.nordicsemi.com/thread/235540?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 15:57:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d28ee6fb-ee6a-4f2d-bb23-53110f20676b</guid><dc:creator>Streitler</dc:creator><description>&lt;p&gt;So I created everything again with mergehex and built everything new. now it worked!&lt;/p&gt;
&lt;p&gt;Thank you for competent help and wish you a nice evening&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do a frimware update which includes SD and app?</title><link>https://devzone.nordicsemi.com/thread/235536?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 15:45:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:520cbc4e-13f5-4a61-9830-a24a2a3a68d9</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hmm, thats weird. If you flash the USB bootloader only, does the COM port disappear if you manually reset the nRF52840?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do a frimware update which includes SD and app?</title><link>https://devzone.nordicsemi.com/thread/235528?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 15:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:600253fa-8e99-4dc1-8c12-4d94b5eb4183</guid><dc:creator>Streitler</dc:creator><description>&lt;p&gt;i chanced it in the sdk_config.h like this :&lt;/p&gt;
&lt;p&gt;#ifndef NRF_BL_DFU_CONTINUATION_TIMEOUT_MS&lt;br /&gt;#define NRF_BL_DFU_CONTINUATION_TIMEOUT_MS 100000&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;now i have 100 sec but it still doesn&amp;#39;t work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After the chance the COM11&amp;nbsp;disappears immediately after restart&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do a frimware update which includes SD and app?</title><link>https://devzone.nordicsemi.com/thread/235514?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 14:58:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01b8a64c-c3c2-43e7-a8f6-189a723629ca</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Ok, what is&amp;nbsp;NRF_BL_DFU_CONTINUATION_TIMEOUT_MS set to in the bootloader you are using? It by default set to 10 seconds I think.&amp;nbsp; You could try to increase this to see if this allows nRFutil to send the application image after the SD has been updated.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do a frimware update which includes SD and app?</title><link>https://devzone.nordicsemi.com/thread/235507?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 14:42:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cb391da-f81f-4c1f-a578-973d9e87ae6e</guid><dc:creator>Streitler</dc:creator><description>&lt;p&gt;after the reset the nrf52840 is still in the bootloader for about 30 seconds and after that it changes to the serial interface com12 (which is the old application)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do a frimware update which includes SD and app?</title><link>https://devzone.nordicsemi.com/thread/235503?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 14:33:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15d78a7b-0610-4859-84e7-e4c99a781ae4</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Thanks for the log file and log output. So it seems that nrfutil cant find COM11, can you check in your Device Manager that the nRF52840 is still enumerated as COM11 after the reset between the SD and APP transfer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do a frimware update which includes SD and app?</title><link>https://devzone.nordicsemi.com/thread/235494?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 14:19:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa490f38-dd07-48fb-ac9a-08361c370a3d</guid><dc:creator>Streitler</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrfutil_5F00_logfile.txt"&gt;devzone.nordicsemi.com/.../nrfutil_5F00_logfile.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do a frimware update which includes SD and app?</title><link>https://devzone.nordicsemi.com/thread/235491?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 14:18:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:137eeb32-77c3-425a-a775-829983aaf21f</guid><dc:creator>Streitler</dc:creator><description>&lt;p&gt;so i did it and here is the output-file and i add the things what are not in the file:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Traceback (most recent call last):&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 198, in open&lt;br /&gt; self.serial_port = Serial(port=self.com_port,&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\serial\serialwin32.py&amp;quot;, line 31, in __init__&lt;br /&gt; super(Serial, self).__init__(*args, **kwargs)&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\serial\serialutil.py&amp;quot;, line 240, in __init__&lt;br /&gt; self.open()&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\serial\serialwin32.py&amp;quot;, line 62, in open&lt;br /&gt; raise SerialException(&amp;quot;could not open port {!r}: {!r}&amp;quot;.format(self.portstr, ctypes.WinError()))&lt;br /&gt;serial.serialutil.SerialException: could not open port &amp;#39;COM11&amp;#39;: FileNotFoundError(2, &amp;#39;Das System kann die angegebene Datei nicht finden.&amp;#39;, None, 2)&lt;/p&gt;
&lt;p&gt;During handling of the above exception, another exception occurred:&lt;/p&gt;
&lt;p&gt;Traceback (most recent call last):&lt;br /&gt; File &amp;quot;C:\Users\stlu\AppData\Local\Programs\Python\Python38-32\Scripts\nrfutil-script.py&amp;quot;, line 11, in &amp;lt;module&amp;gt;&lt;br /&gt; load_entry_point(&amp;#39;nrfutil==6.0.1&amp;#39;, &amp;#39;console_scripts&amp;#39;, &amp;#39;nrfutil&amp;#39;)()&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py&amp;quot;, line 764, in __call__&lt;br /&gt; return self.main(*args, **kwargs)&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py&amp;quot;, line 717, in main&lt;br /&gt; rv = self.invoke(ctx)&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py&amp;quot;, line 1137, in invoke&lt;br /&gt; return _process_result(sub_ctx.command.invoke(sub_ctx))&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py&amp;quot;, line 1137, in invoke&lt;br /&gt; return _process_result(sub_ctx.command.invoke(sub_ctx))&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py&amp;quot;, line 956, in invoke&lt;br /&gt; return ctx.invoke(self.callback, **ctx.params)&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py&amp;quot;, line 555, in invoke&lt;br /&gt; return callback(*args, **kwargs)&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 1034, in serial&lt;br /&gt; do_serial(package, port, connect_delay, flow_control, packet_receipt_notification, baud_rate, serial_number, True,&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\nordicsemi\__main__.py&amp;quot;, line 951, in do_serial&lt;br /&gt; dfu.dfu_send_images()&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 127, in dfu_send_images&lt;br /&gt; self._dfu_send_image(self.manifest.application)&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\nordicsemi\dfu\dfu.py&amp;quot;, line 88, in _dfu_send_image&lt;br /&gt; self.dfu_transport.open()&lt;br /&gt; File &amp;quot;c:\users\stlu\appdata\local\programs\python\python38-32\lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py&amp;quot;, line 202, in open&lt;br /&gt; raise NordicSemiException(&amp;quot;Serial port could not be opened on {0}&amp;quot;&lt;br /&gt;pc_ble_driver_py.exceptions.NordicSemiException: Serial port could not be opened on COM11. Reason: None&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do a frimware update which includes SD and app?</title><link>https://devzone.nordicsemi.com/thread/235482?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 13:59:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:000b1f56-7d87-42f8-8cf1-b08be01e9ee6</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;span&gt;Can you try to add -o after the -vvvv option? I think that should solve the issue with the no such option -o error&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfutil -vvvv &amp;nbsp;-o&amp;nbsp;nrfutil_logfile dfu serial -pkg app_dfu_package_softdevice.zip -p COM11 -o&amp;nbsp;nrfutil_logfile&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do a frimware update which includes SD and app?</title><link>https://devzone.nordicsemi.com/thread/235481?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 13:55:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52c0c6bd-d73e-4bab-97fb-291ea12e87ac</guid><dc:creator>Streitler</dc:creator><description>&lt;p&gt;Hey&amp;nbsp;&lt;span&gt;Bj&amp;oslash;rn,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I messed it up with the output file but with nrfutil dfu serial there is no -o. I tried the command from you but it did not generate an output file is there another way to generate such a file?&lt;/p&gt;
&lt;p&gt;Greetings and thanks for the quick reply&lt;br /&gt;Lukas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to do a frimware update which includes SD and app?</title><link>https://devzone.nordicsemi.com/thread/235396?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 10:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df37385c-f888-4c73-b735-96542a9af696</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Streitler,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;when performing a combined SD+ APP update, the DFU process will be done in two consecutive updates, where the nRF will reset in between.&amp;nbsp; This is stated under&amp;nbsp;&lt;a title="DFU package combinations" href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/dfu_package_combinations.html?cp=8_5_3_0"&gt;DFU package combinations&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;sup&gt;4&lt;/sup&gt;The SD (+ BL) + APP update is done with two consecutive connections, unless a custom bootloader is used. First the SD (+ BL) is updated, then the bootloader will disconnect and the (new) BL will start advertising. Then the second connection to the bootloader will update the APP.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So the fact that the nRF52840 is resetting is expected, but the second transfer should start after the reset. Could you run nrfutil with maximum verbosity and log the output to a file using the -v and -o options, i.e.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfutil -vvvv dfu serial -pkg app_dfu_package_softdevice.zip -p COM11 -o&amp;nbsp;nrfutil_logfile&lt;/p&gt;
&lt;p&gt;and then upload the&amp;nbsp;&lt;span&gt;nrfutil_logfile.log file?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regars&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>