<?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 from internal RAM nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99198/dfu-from-internal-ram-nrf52840</link><description>Hi, 
 I would like to transfer FW from an HTTP server, so we have some LTE modules for doing that, then pass the FW to the nRF52840 storing data in internal RAM, then DFU from RAM, below my questions: 
 
 1. Is there any example where I can DFU from RAM</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Apr 2023 12:18:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99198/dfu-from-internal-ram-nrf52840" /><item><title>RE: DFU from internal RAM nRF52840</title><link>https://devzone.nordicsemi.com/thread/422976?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2023 12:18:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:583ded71-89d9-466b-b71f-821e203cf0a9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]1. Is there any example where I can DFU from RAM?[/quote]
&lt;p&gt;If I understand you correctly, you want to store the entire new image in flash (so that it acts like a temporary secondary slot)? If so, we do not have any bootloader or DFU solution that supports that, and it does not seem like a good idea. I do not know which SDK you are using, but for both SDK&amp;#39;s we provide, activation of the image happens after performing a reset into the bootloader. And the RAM content cannot be guaranteed during a reset. Moreover, if something happens during activation, then you could end up in a situation where you have deleted the old application and started to copy in the new one, but not completed it. Normally, the bootloader would detect this upton the next reset and continue to copy the new image in place. However, if it was in RAM it might be corrupted or lost.&lt;/p&gt;
[quote user=""]2. Is it possible to be DFU per blocks of data? or I need to have the complete FW on the RAM and then DFU?[/quote]
&lt;p&gt;You need to have the whole new FW. You need a working application to transfer the image, and so you need to transfer the whole image before you activate it.&lt;/p&gt;
&lt;p&gt;Note that is your device is flash constrained and option can be to put the secondary slot on external flash (See&amp;nbsp;U&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/app_dev/bootloaders_and_dfu/bootloader_external_flash.html"&gt;sing external flash memory partitions&lt;/a&gt; if using the nRF Connect SDK).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>