<?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>DFU internal and external flash used</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82729/dfu-internal-and-external-flash-used</link><description>Hi everyone, 
 I work with an nrf52840 and SDK15.3.0 and SD 140-6.1.1 
 I have a board with two micro controler, one nrf52840 and one STM32. 
 I want to know if it is possible to use the internal flash to update the nrf application during DFU and an external</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Dec 2021 15:09:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82729/dfu-internal-and-external-flash-used" /><item><title>RE: DFU internal and external flash used</title><link>https://devzone.nordicsemi.com/thread/343717?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 15:09:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6d6825a-0feb-4e09-8cc8-e26c4d03bcb6</guid><dc:creator>Etienne</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your response. I will look into those functions.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Etienne&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU internal and external flash used</title><link>https://devzone.nordicsemi.com/thread/343565?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 09:15:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f11cdc9-4328-4605-b888-42703a093817</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you for the explanation. I think this should indeed be possible, although some changes will be necessary to make in our bootloader to make the external image write to the SPI flash.&amp;nbsp;I&amp;#39;d suggest that you do a check in update_data_addr_get() in the nrf_dfu_validation.c to make sure that DFU_FW_TYPE_EXTERNAL_APPLICATION is written to external flash instead of to the internal flash.&lt;/p&gt;
&lt;p&gt;Moving the image to the STM from the application in the nRF52 should be possible as well.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU internal and external flash used</title><link>https://devzone.nordicsemi.com/thread/343410?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 13:12:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35272200-6b30-450c-b63d-a73c37d54d24</guid><dc:creator>Etienne</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;/p&gt;
&lt;p&gt;Thank for your response.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I havent explain myself weel I presume.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The scheme we wanted to use to update the STM is the following: We put the nrf52840 in DFU mode, we transfert the STM firmware over BLE to the external flash and after that the bootloader return to the application and make the transfert to the STM.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But we have others devices which dodn&amp;#39;t have external flash and we want to keep the nrf52840 application download into the internal flash of the NRF during DFU process over BLE.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it possible to do that ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Etienne&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU internal and external flash used</title><link>https://devzone.nordicsemi.com/thread/343407?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 13:04:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4696b969-4197-4821-a36c-efd2dafee870</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Etienne&lt;/p&gt;
&lt;p&gt;Unfortunately we&amp;#39;re not experts on the STM32 series devices, so I can&amp;#39;t guarantee that you can do DFU from an external flash onto it, but I don&amp;#39;t see a reason it should&amp;nbsp;&lt;strong&gt;not&amp;nbsp;&lt;/strong&gt;work. We don&amp;#39;t have an example doing something similar to this either unfortunately, but you can use the&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_dfu_transport_ble.html"&gt; DFU protocol &lt;/a&gt;in the nRF5 SDK and &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;UART DFU master example&lt;/a&gt; for reference.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>