<?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>Encrypted DFU NCS 2.5.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107500/encrypted-dfu-ncs-2-5-0</link><description>Hello, 
 I previously had posted a ticket (about 1 year ago) in which I was inquiring about encrypted DFU with MCUBoot or mcumgr. ( devzone.nordicsemi.com/.../encrypted-dfu-nrf5340-in-ncs). 
 I am now running ncs v2.5.0 and I am curious if encrypted DFU</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Feb 2024 17:01:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107500/encrypted-dfu-ncs-2-5-0" /><item><title>RE: Encrypted DFU NCS 2.5.0</title><link>https://devzone.nordicsemi.com/thread/471108?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 17:01:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9239dd9c-6024-4196-9abc-214c9687e6a5</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Robert de Brum"]As I understand your response, it is safe to DFU the network core because BLE will still work - the protocol for communication between cores for BLE activity does not change.[/quote]
&lt;p&gt;Yep. &lt;/p&gt;
[quote user="Robert de Brum"]&lt;a href="https://devzone.nordicsemi.com/support/321509"&gt;In a ticket here&lt;/a&gt;, it is recommended that I do not use sysbuild yet as it is rather new still.&amp;nbsp;Do you see this being a better route in the future to accomplish what I am trying? The child_image is working for me now as long as I can eventually DFU both cores.[/quote]
&lt;p&gt;Sysbuild will be a more clean way to do custom child images.&lt;br /&gt;However, as they say &amp;quot;if it works dont fix it&amp;quot;. If it was me, I would stick to &amp;quot;multi-image builds&amp;quot; until NCS deprecates this system, or you need some feature only they provide.&lt;/p&gt;
[quote user="Robert de Brum"]It seems to me that the safest and most expedient option will be to DFU 2 separate images.&amp;nbsp;As I continue to learn an understand this, I should be generating an application core first and running that DFU first. When this is in place, I can DFU a network image that will be placed in the correct slot at which point I will have the complete firmware. Does this sound correct in theory?[/quote]
&lt;p&gt;Yep. I think you should be able to do that with a &amp;quot;normal&amp;quot; SMP Server example, and just upload net_core_app_update.bin to it and tag it as &amp;quot;confirm&amp;quot;. Then the system should detect that this is a network core image, and swap it to the network core instead of the application core.&lt;br /&gt;At least it did that &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/nrf5340/mcuboot_smp_ble_nonsimultaneous"&gt;last time&lt;/a&gt; I tried.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypted DFU NCS 2.5.0</title><link>https://devzone.nordicsemi.com/thread/470957?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 09:04:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44b1395c-aa7d-4902-a808-9a01012fdb45</guid><dc:creator>Robert de Brum</dc:creator><description>&lt;p&gt;Thanks for the detailed response I appreciate it.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/107500/encrypted-dfu-ncs-2-5-0/470641"]&lt;p&gt;The main reason for simultaneous DFU is to be able to update the interface between the net and app cores. If you update the network core first, and it can not talk with the app core any more, you can no longer receive the new app core image. Did that make sense?&lt;/p&gt;
&lt;div class="quote-header"&gt;&lt;/div&gt;&lt;blockquote class="quote"&gt;&lt;div class="quote-user"&gt;&lt;/div&gt;&lt;/blockquote&gt;[/quote]
&lt;p&gt;The network core I plan to flash is based on the hci_rpmsg. I am not sure if it is mentioned here but it will maintain all of the same code as the hci_rpmsg sample, with the addition of some logic that will synchronize timers on both cores. As I understand your response, it is safe to DFU the network core because BLE will still work - the protocol for communication between cores for BLE activity does not change.&lt;/p&gt;
[quote userid="106736" url="~/f/nordic-q-a/107500/encrypted-dfu-ncs-2-5-0/470641"]&lt;p&gt;However, that sample is removed in v2.5.0. Instead, v2.5.0 has a multi-core sample using sysbuild.&lt;/p&gt;
&lt;div class="quote-header"&gt;&lt;/div&gt;&lt;blockquote class="quote"&gt;&lt;div class="quote-user"&gt;&lt;/div&gt;&lt;/blockquote&gt;[/quote]
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/support/321509"&gt;In a ticket here&lt;/a&gt;, it is recommended that I do not use sysbuild yet as it is rather new still.&amp;nbsp;Do you see this being a better route in the future to accomplish what I am trying? The child_image is working for me now as long as I can eventually DFU both cores.&lt;/p&gt;
&lt;p&gt;It seems to me that the safest and most expedient option will be to DFU 2 separate images.&amp;nbsp;As I continue to learn an understand this, I should be generating an application core first and running that DFU first. When this is in place, I can DFU a network image that will be placed in the correct slot at which point I will have the complete firmware. Does this sound correct in theory?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypted DFU NCS 2.5.0</title><link>https://devzone.nordicsemi.com/thread/470641?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 09:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5f864c1-2014-4ac9-890c-879d47bd355e</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi again Robert,&lt;/p&gt;
&lt;p&gt;With the clarity of Monday morning I see that I answered your previous comments a bit too hastily. Likely I just saw your following quote on friday and thought &amp;quot;that is debugging, not questions&amp;quot;:&lt;/p&gt;
[quote user="Robert de Brum"]I need to DFU both application and network core on my custom board with an nrf5340 and I am unable to.[/quote]
&lt;p&gt;If you have specific errors that you want help looking into, the best approach is still to create a new ticket for that and we&amp;#39;ll help you look into it.&lt;/p&gt;
&lt;p&gt;However, you also asked general questions about DFU here, which &lt;strong&gt;do &lt;/strong&gt;fit the theme of this ticket very much. And I will answer them now. Sorry for the inconvenience.&lt;/p&gt;
[quote user="Robert de Brum"] it is suggested to perform updates simultaneously so that the images get placed in the right order.[/quote]
&lt;p&gt;The main reason for simultaneous DFU is to be able to update the interface between the net and app cores. If you update the network core first, and it can not talk with the app core any more, you can no longer receive the new app core image. Did that make sense?&lt;/p&gt;
[quote user="Robert de Brum"]Can you confirm if there is still a patch I need for multi-image DFU for SDK version 2.5.0?[/quote]
&lt;p&gt;The patch is specifically if you run a custom network core image with the multi-image builds multi-core sample. If you want to use that method, you will still need a patch as far as I know. I discussed the topic in &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/87391/nrf53-custom-b0n-build/366631"&gt;RE: nRF53 Custom b0n Build&lt;/a&gt; some time ago; I think the fix should be in there somewhere.&lt;br /&gt;However, that sample is removed in v2.5.0. Instead, v2.5.0 has a multi-core sample using sysbuild.&lt;/p&gt;
[quote user="Robert de Brum"] Can you also comment on any known shortcomings of Multi-image DFU?[/quote]
&lt;p&gt;The one that comes to mind is that if you do simultaneous DFU, you can not use the revert functionality of MCUboot. From&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#simultaneous-multi-image-dfu"&gt;Simultaneous multi-image DFU&lt;/a&gt;:&amp;nbsp;&lt;br /&gt;&amp;quot; The simultaneous update of multiple images does not support network core image reversion, so you need to disable application image reversion.&amp;quot;&lt;/p&gt;
&lt;p&gt;Other than that, you could argue that &amp;quot;increased complexity&amp;quot; is a shortcoming.&lt;/p&gt;
[quote user="Robert de Brum"]Any help on this is great. The situation that I am in is that I have devices in the field running code on version v2.3.0 with&amp;nbsp;custom cpu_net code and no multi-image DFU. I want to know that I can DFU them in a particular order such that application and network image get updated.[/quote]
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;The only reason to do simultaneous multi-image DFU for the nRF5340 is that you want the ability to update the communication interface between the cores.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;As long as you do not change this, you should be fine with not doing simultaneous multi-image DFU.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="Robert de Brum"]I am also finding that to DFU both cores simultaneously I need to use external flash - on the DK it is using the mx264f?[/quote]
&lt;p&gt;It is technically possible to do this using only internal flash. However, since you need to DFU for both cores at the same time, you need an extra secondary slot to keep the network core image in, taking up even more flash space.&lt;br /&gt;So you might face some flash space problems.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Setting external flash would automatically fix some stuff needed for simultaneous multi image DFU. There is a couple of PRs to fix this, but they are not merged yet.&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/10060"&gt;https://github.com/nrfconnect/sdk-nrf/pull/10060&lt;/a&gt;&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/pull/235"&gt;https://github.com/nrfconnect/sdk-mcuboot/pull/235&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="Robert de Brum"]urthermore, for simultaneous DFU, I am not seeing the net_core_update.bin files generated at all. I have tried the unofficial DFU samples with no success on our custom board, nor the DK. How can I ensure that the network core update binaries are generated, and that the firmware will accept them&amp;nbsp;OTA?[/quote]
&lt;p&gt;You should have those files generated.&lt;br /&gt;But this is on &amp;quot;I have build errors&amp;quot; and not &amp;quot;systemic questions&amp;quot;, we could take that in a new ticket if you need debug help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypted DFU NCS 2.5.0</title><link>https://devzone.nordicsemi.com/thread/470182?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2024 09:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e64e7c78-d7b5-492f-9356-477b86f5e575</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Robert,&lt;/p&gt;
&lt;p&gt;Your new queries are a bit aside from the original topic in this ticket.&lt;/p&gt;
&lt;p&gt;To help us keep DevZone tidy, could you create a new ticket for these, and link to this ticket in the new one?&lt;br /&gt;If you still need to use encryption with the multi-core DFU, make sure to mention that specifically&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypted DFU NCS 2.5.0</title><link>https://devzone.nordicsemi.com/thread/470108?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 19:59:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e076168-fe2c-430b-8556-31cd72d495b9</guid><dc:creator>Robert de Brum</dc:creator><description>&lt;p&gt;I am also finding that to DFU both cores simultaneously I need to use external flash - on the DK it is using the mx264f? This is not&amp;nbsp;possible for us because our custom hardware does not use that flash chip. Furthermore, for simultaneous DFU, I am not seeing the net_core_update.bin files generated at all. I have tried the unofficial DFU samples with no success on our custom board, nor the DK. How can I ensure that the network core update binaries are generated, and that the firmware will accept them&amp;nbsp;OTA?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypted DFU NCS 2.5.0</title><link>https://devzone.nordicsemi.com/thread/470088?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 16:42:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a355057-e370-4206-a9c5-49f80bfd2843</guid><dc:creator>Robert de Brum</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;I need to DFU both application and network core on my custom board with an nrf5340 and I am unable to. It does not need to be a simultaneous but I read &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/100068/net-core-update-via-smp-server-via-nrfconnect-on-android/428540"&gt;on this ticket&lt;/a&gt; that it is suggested to perform updates simultaneously so that the images get placed in the right order.&lt;/p&gt;
&lt;p&gt;Can you confirm if there is still a patch I need for multi-image DFU for SDK version 2.5.0? Can you also comment on any known shortcomings of Multi-image DFU? I know one already that you mentioned will affect me - having a custom cpu_net application messes with the build order so it will not generate a net_core_update.bin. I have gone around this by injecting my code into the hci_rpmsg sample and enabling&amp;nbsp;CONFIG_NCS_INCLUDE_RPMSG_CHILD_IMAGE.&lt;/p&gt;
&lt;p&gt;Any help on this is great. The situation that I am in is that I have devices in the field running code on version v2.3.0 with&amp;nbsp;custom cpu_net code and no multi-image DFU. I want to know that I can DFU them in a particular order such that application and network image get updated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypted DFU NCS 2.5.0</title><link>https://devzone.nordicsemi.com/thread/464955?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2024 08:31:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf0a39dc-4568-47f7-8d97-14a1b9ebdad4</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Yes and no.&lt;/p&gt;
&lt;p&gt;If we are thinking of the same limitation, the old custom network core sample had some build order issues when mcuboot was built at the same time. &lt;br /&gt;There are several workarounds to that I think. First, there was a workaround patch you could apply to fix it I think. Or you could edit the hci_rpmsg(or other) sample in the NCS directly to add your custom features. Not the cleanest of workarounds, but still they work.&lt;/p&gt;
&lt;p&gt;However, in newer versions of the nRF Connect SDK, we have a new multicore sample for adding custom network core images, using &amp;quot;Sysbuild&amp;quot; instead of the old &amp;quot;Multi-image build&amp;quot; method.&lt;br /&gt;I have not tried to do this with MCUboot yet, but I have not heard about any issues either, so that is a good sign.&lt;br /&gt;I should mention that Sysbuild does not yet have automatically generated files for DFU such as app_update.bin, so you would have to manually sign images with &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/imgtool.html"&gt;imgtool.py&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypted DFU NCS 2.5.0</title><link>https://devzone.nordicsemi.com/thread/464898?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2024 17:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07486d0a-d991-4c14-b4b3-4ccc015ffc34</guid><dc:creator>Robert de Brum</dc:creator><description>&lt;p&gt;I appreciate this answer, though I feared this would be so. I will have to use the sample you provided and see if I can leverage that in my projects.&lt;/p&gt;
&lt;p&gt;On a separate note but similar, I also have a need for multi-image FOTA. There is a running sample for this for the nrf5340 that I remember, but&amp;nbsp;I remember that the limitations of this was that the multi-image DFU is not supportive of projects with custom network core code.&lt;/p&gt;
&lt;p&gt;Are there any updates on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Encrypted DFU NCS 2.5.0</title><link>https://devzone.nordicsemi.com/thread/464731?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2024 08:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1070d2e0-caf5-42b1-a11c-5daf2b625cea</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user=""]I am now running ncs v2.5.0 and I am curious if encrypted DFU is released yet or not.[/quote]
&lt;p&gt;Not officially supported yet, no.&lt;/p&gt;
[quote user=""]If not, have there been any successful custom examples[/quote]
&lt;p&gt;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/keys_and_signatures/mcuboot_smp_encryption"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/keys_and_signatures/mcuboot_smp_encryption&lt;/a&gt;&lt;/p&gt;
[quote user=""]are there plans to officially support?[/quote]
&lt;p&gt;I generally can not comment on timeline questions. &lt;a href="https://www.nordicsemi.com/About-us/Contact-Us"&gt;Contact sales&lt;/a&gt; for that. That has the added benefit that sales gets a better overview over demand for features.&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></channel></rss>