<?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>nRF52811 OTA/DFU Feasibility</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123897/nrf52811-ota-dfu-feasibility</link><description>Background 
 I&amp;#39;m working on a BLE application for the nRF52811 and facing significant flash memory constraints when trying to implement OTA/DFU functionality. 
 From my understanding and research on DevZone, it would be difficult to do OTA with BLE on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Aug 2025 14:18:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123897/nrf52811-ota-dfu-feasibility" /><item><title>RE: nRF52811 OTA/DFU Feasibility</title><link>https://devzone.nordicsemi.com/thread/546794?ContentTypeID=1</link><pubDate>Tue, 26 Aug 2025 14:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:582efc45-c43b-4b09-869d-0fc859bfa7cb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;They can initiate the DFU process by reusing the init command from a valid update (an init command signed with your key). They will not be able to update to another firmware, but they can use this to erase the current application.&lt;/p&gt;
[quote user="Purvesh patel"]However, I am wondering about other possibilities — for example, what happens if the firmware data itself gets corrupted during transfer?[/quote]
&lt;p&gt;The integrity of the received FW is validated against the hash in the init command. The bootloader will fall back to dfu mode if the validation fails.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52811 OTA/DFU Feasibility</title><link>https://devzone.nordicsemi.com/thread/546758?ContentTypeID=1</link><pubDate>Tue, 26 Aug 2025 12:43:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c170b43-ebce-4852-b247-fc23ec55c8cf</guid><dc:creator>Purvesh patel</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-from-2025_2D00_08_2D00_26-14_2D00_02_2D00_12.png" /&gt;&lt;br /&gt;&lt;br /&gt;text:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;// &amp;lt;q&amp;gt; NRF_DFU_SINGLE_BANK_APP_UPDATES&amp;nbsp; - Place the application and the SoftDevice directly where they are supposed to be.&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;// &amp;lt;i&amp;gt; Note that this creates security concerns when signing and&amp;nbsp; version checks&lt;br /&gt;// &amp;lt;i&amp;gt; are enabled. An attacker will be able to delete (but not replace)&lt;br /&gt;// &amp;lt;i&amp;gt; the current app or SoftDevice without knowing the signature key.&lt;br /&gt;&lt;br /&gt;#ifndef NRF_DFU_SINGLE_BANK_APP_UPDATES&lt;br /&gt;#define NRF_DFU_SINGLE_BANK_APP_UPDATES 1&lt;br /&gt;#endif&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1j3j60qle0" class="text-xl font-bold text-text-100 mt-1 -mb-0.5"&gt;Testing Results [currently testing for nrf52840 on nrf52840 dk with old nrf5sdk]&lt;/h2&gt;
&lt;p class="whitespace-normal break-words"&gt;&lt;strong&gt;Wrongly signed file test:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li class="whitespace-normal break-words"&gt;Transfer immediately stopped with log: &lt;code&gt;[DFU] Remote DFU error: invalid object&lt;/code&gt;&lt;/li&gt;
&lt;li class="whitespace-normal break-words"&gt;Upon reset/timeout, device behaves normally&lt;/li&gt;
&lt;li class="whitespace-normal break-words"&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48034/invalid-object-error-with-ota-dfu-using-both-example-and-self-generated-packages"&gt;Invalid Object error with OTA DFU using both example and self generated packages.&lt;/a&gt;&amp;nbsp;points it is due to key&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="mcetoc_1j3j60qle1" class="text-xl font-bold text-text-100 mt-1 -mb-0.5"&gt;Questions&lt;/h2&gt;
&lt;ol&gt;
&lt;li class="whitespace-normal break-words"&gt;&lt;strong&gt;Security concern confirmation:&lt;/strong&gt; Can you confirm the actual security risk? Based on my testing, wrongly signed files are rejected immediately - I cannot successfully perform the attack described in the warning.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;Also&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="147580" url="~/f/nordic-q-a/123897/nrf52811-ota-dfu-feasibility"]&lt;strong&gt;3) Single slot DFU reliability - Recovery mechanism&lt;/strong&gt; If it will be single slot DFU, what happens if there&amp;#39;s an error during firmware transfer (power loss, connection drop, corrupted data)? Can the device be recovered thereafter using OTA, or would it require physical access/JTAG programming?[/quote]
&lt;p data-start="76" data-end="305"&gt;I tried disconnecting my Bluetooth connection midway during the DFU process, and I observed that the device gets stuck in &lt;strong data-start="198" data-end="210"&gt;DFU mode&lt;/strong&gt;, advertising as &lt;strong data-start="227" data-end="238"&gt;DFUTARG&lt;/strong&gt;. It can only be recovered by performing a successful OTA update.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p data-start="307" data-end="430"&gt;However, I am wondering about other possibilities &amp;mdash; for example, what happens if the firmware data itself gets corrupted during transfer?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Can you confirm me this two things?&lt;/p&gt;
&lt;p data-start="307" data-end="430"&gt;&lt;br /&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;Testing for nr52811 on nr52840 dk&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;I got the same error as this&amp;nbsp;&lt;/p&gt;
&lt;p data-start="307" data-end="430"&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74074/peer_manager_pds-could-not-initialize-flash-storage-fds_init-returned-0x860a"&gt;peer_manager_pds: Could not initialize flash storage. fds_init() returned 0x860A&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-start="307" data-end="430"&gt;but i can&amp;#39;t access many links given in the solution&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52811 OTA/DFU Feasibility</title><link>https://devzone.nordicsemi.com/thread/546615?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2025 11:32:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00169930-308d-4633-aaca-9e9d12311b64</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes, OTA dfu is supported on the nrf52811&amp;nbsp;as long as the application is not too big. But if you have already developed the application with the nRF Connect SDK but not the hardware, it should be easy to transition to the nRF54L series devices, which offer more memory and performance at a lower cost.&lt;/p&gt;
[quote user=""]Simple BLE blinky (nRF5 SDK): 122 kB of 192 kB (63.6%)[/quote]
&lt;p&gt;This is including the Softdevice which won&amp;#39;t be upgradeable&amp;nbsp; with this setup. To get the size of the app you must substract 122 with the size of the softdevice you&amp;#39;ve selected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>