<?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>Feature request: Please allow APP+BL DFU upgrades in nrfutil</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84879/feature-request-please-allow-app-bl-dfu-upgrades-in-nrfutil</link><description>Hi! I have mentioned this already 9 month ago in another ticket ( https://devzone.nordicsemi.com/f/nordic-q-a/75331/dfu-upgrade-of-only-bootloader-not-softdevice ) but it was mixed up with another topic, so I would like to open a specific ticket for my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Mar 2022 12:01:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84879/feature-request-please-allow-app-bl-dfu-upgrades-in-nrfutil" /><item><title>RE: Feature request: Please allow APP+BL DFU upgrades in nrfutil</title><link>https://devzone.nordicsemi.com/thread/356278?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 12:01:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bec96bd-f357-4b0a-aeca-42359117a864</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Thanks Bruno. Seems to be very simple. The question is if R&amp;amp;D have someone to look into this :) I&amp;#39;m still waiting for their update.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Feature request: Please allow APP+BL DFU upgrades in nrfutil</title><link>https://devzone.nordicsemi.com/thread/355521?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 11:46:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:600be7cb-cfb1-473e-af50-9d08350222e0</guid><dc:creator>Bruno Randolf</dc:creator><description>&lt;p&gt;See &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/pull/371"&gt;github.com/.../371&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Feature request: Please allow APP+BL DFU upgrades in nrfutil</title><link>https://devzone.nordicsemi.com/thread/355518?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 11:38:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6091909b-15ec-4e3c-9121-c77d3b37a9b1</guid><dc:creator>Bruno Randolf</dc:creator><description>&lt;p&gt;In the mean time I have modified pc-nrfutil, and it was easier than expected:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;diff --git a/nordicsemi/__main__.py b/nordicsemi/__main__.py&lt;/code&gt;&lt;br /&gt;&lt;code&gt;index f9697c1..be2afcb 100755&lt;/code&gt;&lt;br /&gt;&lt;code&gt;--- a/nordicsemi/__main__.py&lt;/code&gt;&lt;br /&gt;&lt;code&gt;+++ b/nordicsemi/__main__.py&lt;/code&gt;&lt;br /&gt;&lt;code&gt;@@ -664,7 +664,7 @@ def generate(zipfile,&lt;/code&gt;&lt;br /&gt; &lt;br /&gt;&lt;code&gt; * BL + SD: Supported.&lt;/code&gt;&lt;br /&gt; &lt;br /&gt;&lt;code&gt;- * BL + APP: Not supported (use two packages instead).&lt;/code&gt;&lt;br /&gt;&lt;code&gt;+ * BL + APP: Supported.&lt;/code&gt;&lt;br /&gt; &lt;br /&gt;&lt;code&gt; * BL + SD + APP: Supported.&lt;/code&gt;&lt;br /&gt; &lt;br /&gt;&lt;code&gt;@@ -672,10 +672,6 @@ def generate(zipfile,&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &amp;quot;&amp;quot;&amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt; zipfile_path = zipfile&lt;/code&gt;&lt;br /&gt; &lt;br /&gt;&lt;code&gt;- # Check combinations&lt;/code&gt;&lt;br /&gt;&lt;code&gt;- if bootloader is not None and application is not None and softdevice is None:&lt;/code&gt;&lt;br /&gt;&lt;code&gt;- raise click.UsageError(&amp;quot;Invalid combination: use two .zip packages instead.&amp;quot;)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;-&lt;/code&gt;&lt;br /&gt;&lt;code&gt; if debug_mode is None:&lt;/code&gt;&lt;br /&gt;&lt;code&gt; debug_mode = False&lt;/code&gt;&lt;br /&gt; &lt;br /&gt;&lt;code&gt;diff --git a/nordicsemi/dfu/init_packet_pb.py b/nordicsemi/dfu/init_packet_pb.py&lt;/code&gt;&lt;br /&gt;&lt;code&gt;index ad72202..7cc0b82 100644&lt;/code&gt;&lt;br /&gt;&lt;code&gt;--- a/nordicsemi/dfu/init_packet_pb.py&lt;/code&gt;&lt;br /&gt;&lt;code&gt;+++ b/nordicsemi/dfu/init_packet_pb.py&lt;/code&gt;&lt;br /&gt;&lt;code&gt;@@ -132,10 +132,6 @@ class InitPacketPB:&lt;/code&gt;&lt;br /&gt;&lt;code&gt; raise RuntimeError(&amp;quot;sd_size is not set. It must be set when type is SOFTDEVICE&amp;quot;)&lt;/code&gt;&lt;br /&gt;&lt;code&gt; elif self.init_command.type == pb.BOOTLOADER and self.init_command.bl_size == 0:&lt;/code&gt;&lt;br /&gt;&lt;code&gt; raise RuntimeError(&amp;quot;bl_size is not set. It must be set when type is BOOTLOADER&amp;quot;)&lt;/code&gt;&lt;br /&gt;&lt;code&gt;- elif self.init_command.type == pb.SOFTDEVICE_BOOTLOADER and \&lt;/code&gt;&lt;br /&gt;&lt;code&gt;- (self.init_command.sd_size == 0 or self.init_command.bl_size == 0):&lt;/code&gt;&lt;br /&gt;&lt;code&gt;- raise RuntimeError(&amp;quot;Either sd_size or bl_size is not set. Both must be set when type &amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;- &amp;quot;is SOFTDEVICE_BOOTLOADER&amp;quot;)&lt;/code&gt;&lt;br /&gt; &lt;br /&gt;&lt;code&gt; if self.init_command.fw_version &amp;lt; 0 or self.init_command.fw_version &amp;gt; 0xffffffff or \&lt;/code&gt;&lt;br /&gt;&lt;code&gt; self.init_command.hw_version &amp;lt; 0 or self.init_command.hw_version &amp;gt; 0xffffffff:&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;```&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Feature request: Please allow APP+BL DFU upgrades in nrfutil</title><link>https://devzone.nordicsemi.com/thread/354276?ContentTypeID=1</link><pubDate>Tue, 22 Feb 2022 08:27:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fa4b36e-d72c-4a32-85c8-310f5e5bc516</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Bruno,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have reported&amp;nbsp;the request to the team internally. Hope that it would be updated soon.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the meantime maybe you can just write a script to do the task of editing the .bin and .dat file automatically ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Feature request: Please allow APP+BL DFU upgrades in nrfutil</title><link>https://devzone.nordicsemi.com/thread/353935?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 17:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abbdb6be-4a13-4564-92ed-0f08dc005198</guid><dc:creator>Bruno Randolf</dc:creator><description>&lt;p&gt;Yes, the update is actually done in two phases: first the BL and then the APP, just like with APP+SD+BL updates. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Feature request: Please allow APP+BL DFU upgrades in nrfutil</title><link>https://devzone.nordicsemi.com/thread/353798?ContentTypeID=1</link><pubDate>Fri, 18 Feb 2022 10:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40acc015-4592-43d9-a01d-a9e6018c7269</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Bruno,&amp;nbsp;&lt;br /&gt;Thanks for the information.&amp;nbsp;&lt;br /&gt;I just want to clarify here that after you have manipulated and created the .zip file containing APP+BL, when you do DFU update, did it perform in one go or under the hood it&amp;#39;s actually 2 phases: The BL got updated first and then nrfutil sends the app after that ? Or both the app and the bootloader were sent at the same time ? (You may need to use a sniffer or use the log on the bootloader to detect that). As far as I know the bootloader doesn&amp;#39;t support APP+BL in one image.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But even if it&amp;#39;s sent in 2 phases or not, for the end customer it&amp;#39;s still transparent, which is important. So I think your information is very useful and the request is legit. I will forward your request to the team.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>