<?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>nrf5340 DFU using serially connected WIFI module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102667/nrf5340-dfu-using-serially-connected-wifi-module</link><description>Hello, 
 I am able to do DFU for nrf5340 using BLE and mcuboot, 
 My device is having wifi and the device will be installed in field. 
 I need to update the firmware for the device via WIFI. I can get the encrypted binary data into the nrf5340 via the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Aug 2023 08:03:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102667/nrf5340-dfu-using-serially-connected-wifi-module" /><item><title>RE: nrf5340 DFU using serially connected WIFI module</title><link>https://devzone.nordicsemi.com/thread/440414?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2023 08:03:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d31971f6-26fd-47dd-a49a-c2bbcc15dbba</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""] I can get the encrypted binary data into the nrf5340 via the serial wifi module but how can I flash it to the appropriate half in the memory the same way the BLE DFU does ?[/quote]
&lt;ol&gt;
&lt;li&gt;Can you explain some more about how you transfer the encrypted binary data to the nrf5340? Where do you put the new image? Is it in the secondary mcuboot slot? Is it located on an arbitrary location on the external flash not allocated to MCUBOOT/DFU/The application?&lt;br /&gt;&lt;br /&gt;You should be able to use the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/device_mgmt/smp_protocol.html"&gt;SMP Protocol&lt;/a&gt;&amp;nbsp;with any communication protocol as it is protocol agnostic, but we don&amp;#39;t have any samples or guides for how to combine SMP with wifi.&amp;nbsp;(Some unofficial samples written by a colleague can be seen here:&amp;nbsp;&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp"&gt;https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/smp&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Do note that although MCUBoot supports encrypted DFU, we don&amp;#39;t have any samples or guides on how to do this, but it is possible to do with the components in the SDK. Do also note that this is not something we test either. However if you&amp;#39;ve already implemented your own solution for this, you may disregard this item&lt;br /&gt;&lt;br /&gt;You should be able to run, sign and encrypt the update image using the imgtool:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/mcuboot/imgtool.html#signing-images"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/mcuboot/imgtool.html#signing-images&lt;/a&gt;. So using the imgtool with -E key_to_encrypt should technically encrypt the image.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;I recommend you to have a look at these public Devzone tickets with related information for how to do encrypted DFU:&lt;br /&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/91331/nrf52840-ncs-mcuboot-cc310-enabled-image-encryption"&gt;nRF52840 + NCS + MCUBoot, CC310-enabled image encryption?&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/92587/mcuboot-with-serial-uart-and-image-encryption"&gt;MCUBoot with serial UART and image encryption&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Some of these tickets may be using older NCS releases so some differences may occur w.r.t. project configurations.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>