<?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>OTA device firmware update with external flash memory</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109756/ota-device-firmware-update-with-external-flash-memory</link><description>Hi, i&amp;#39;ve been trying to use the external flash memory to store new images for OTA firmware update but i keep getting this error 
 
 *** Booting nRF Connect SDK v2.5.2 *** I: Starting bootloader W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=128 - too</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Apr 2024 07:48:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109756/ota-device-firmware-update-with-external-flash-memory" /><item><title>RE: OTA device firmware update with external flash memory</title><link>https://devzone.nordicsemi.com/thread/477719?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 07:48:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41a20b9d-412f-4c12-ac93-44dcfe4415de</guid><dc:creator>saiff</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, fair enough, thanks for your help &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA device firmware update with external flash memory</title><link>https://devzone.nordicsemi.com/thread/477632?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 14:42:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1093f318-350f-48a0-8329-cbe544ca8607</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The latest issue seems away from the original scope and duplicated by&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109710/combining-mqtt-over-wifi-with-ota-ble"&gt;Combining MQTT over wifi with OTA BLE&lt;/a&gt;&amp;nbsp;which is handled by my colleague, so I would suggest you back to continue discussion in that case.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA device firmware update with external flash memory</title><link>https://devzone.nordicsemi.com/thread/477318?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 12:42:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1abfae5c-09a2-4739-a9f1-a32da49c30f4</guid><dc:creator>saiff</dc:creator><description>&lt;p&gt;Hi Amada, i tried going back from scratch and combined&amp;nbsp;&lt;a title="Exercise 3 &amp;ndash; FOTA over Bluetooth Low Energy" href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-3-fota-over-bluetooth-low-energy/"&gt;Exercise 3 &amp;ndash; FOTA over Bluetooth Low Energy&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-2-dfu-over-usb-adding-external-flash/"&gt;Exercise 2 &amp;ndash; DFU over USB, adding external flash &amp;amp; custom keys&lt;/a&gt;&amp;nbsp; and i got my application to work perfectly fine.&lt;/p&gt;
&lt;p&gt;now i tried adding FOTA over BLE to an MQTT application i created, i did the same thing but the application is stuck on the bootloader&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1712320938588v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;so i don&amp;#39;t know is this because of the excessive RAM usage of the application ( this is what i get when i build&amp;nbsp; &amp;nbsp; RAM:&amp;nbsp; &amp;nbsp; &amp;nbsp; 233952 B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;256 KB&amp;nbsp; &amp;nbsp; &amp;nbsp;89.25% ), or is there something wrong i did.&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;have a nice weekend.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA device firmware update with external flash memory</title><link>https://devzone.nordicsemi.com/thread/477191?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 17:11:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c02238b-ea4e-420e-89a3-5ca62e435d36</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://github.com/nrfconnect/sdk-mcumgr/blob/d9adfe78efd71608b77ac88a5b088723a9fbe6ed/mgmt/include/mgmt/mgmt.h#L67"&gt;error 9 means&amp;nbsp;&lt;code dir="ltr"&gt;MGMT_ERR_ECORRUPT&lt;/code&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;means&amp;nbsp;Corrupt.&amp;nbsp;This error code signifies that the operation encountered corruption. The exact cause of this error can vary, but it generally indicates that the data or resource being accessed by the operation is in an unexpected or invalid state. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I suspect it might be from &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/c24df01678e8fc55ce50b322d484eb3f2b5b56a6/subsys/mgmt/mcumgr/smp/src/smp.c#L381C5-L381C31"&gt;smp_process_request_packet&lt;/a&gt; in&amp;nbsp;&lt;/span&gt;&lt;span&gt;smp.c which &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/c24df01678e8fc55ce50b322d484eb3f2b5b56a6/subsys/mgmt/mcumgr/smp/src/smp.c#L377C1-L378C49"&gt;says MGMT_ERR_ECORRUPT if the buffer starts with non-SMP data header or there&lt;/a&gt;&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/c24df01678e8fc55ce50b322d484eb3f2b5b56a6/subsys/mgmt/mcumgr/smp/src/smp.c#L377C1-L378C49"&gt;is not enough bytes to process header.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Are you updating via BLE or serial recovery? Could you upload the mcuboot config file?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA device firmware update with external flash memory</title><link>https://devzone.nordicsemi.com/thread/477045?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 09:21:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0a22a99-2f09-426d-aa5a-381d637ec047</guid><dc:creator>saiff</dc:creator><description>&lt;p&gt;Hi again, i think that problem is solved since i can finally build the program and the memory report is finally showing me this :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1712222493546v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;but now when i flash the program and try to perform a OTA DFU i started getting this error:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1712222545540v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;any idea why this error occured?&lt;/p&gt;
&lt;p&gt;thanks in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA device firmware update with external flash memory</title><link>https://devzone.nordicsemi.com/thread/477025?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 08:11:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4950cdbc-6216-4d66-a817-48ff0a810554</guid><dc:creator>saiff</dc:creator><description>&lt;p&gt;Hi Amanda, i did update the SDK as requested but i&amp;#39;m still having the same error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA device firmware update with external flash memory</title><link>https://devzone.nordicsemi.com/thread/476892?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 12:59:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1327011b-e2f9-4a63-80fa-5333afd5f931</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Please update the SDK via ToolChain Manager as the following figure&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1712149111683v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA device firmware update with external flash memory</title><link>https://devzone.nordicsemi.com/thread/476861?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 11:56:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f8e40ea-0b64-45f3-9da7-54c3496af7cd</guid><dc:creator>saiff</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i added those files but i still got some errors&lt;/p&gt;
&lt;p&gt;warning: attempt to assign the value &amp;#39;256&amp;#39; to the undefined symbol BOOT_MAX_IMG_SECTORS&lt;/p&gt;
&lt;p&gt;warning: attempt to assign the value &amp;#39;0x10000&amp;#39; to the undefined symbol PM_PARTITION_SIZE_MCUBOOT&lt;/p&gt;
&lt;p&gt;error: Aborting due to Kconfig warnings&lt;/p&gt;
&lt;p&gt;can you tell me what&amp;#39;s the problem here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA device firmware update with external flash memory</title><link>https://devzone.nordicsemi.com/thread/476685?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 18:15:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29fd82be-b828-434b-adfd-e96f1cadfb28</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using nRF52840DK? If so,&amp;nbsp;Place the following files under boards folder&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2476.nrf52840dk_5F00_nrf52840.conf"&gt;devzone.nordicsemi.com/.../2476.nrf52840dk_5F00_nrf52840.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4442.nrf52840dk_5F00_nrf52840.overlay"&gt;devzone.nordicsemi.com/.../4442.nrf52840dk_5F00_nrf52840.overlay&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Place the following files under child_image/mcuboot/boards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2476.nrf52840dk_5F00_nrf52840.conf"&gt;devzone.nordicsemi.com/.../2476.nrf52840dk_5F00_nrf52840.conf&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4442.nrf52840dk_5F00_nrf52840.overlay"&gt;devzone.nordicsemi.com/.../4442.nrf52840dk_5F00_nrf52840.overlay&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;If you are not using nRF52840DK, rename the files for your board name.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA device firmware update with external flash memory</title><link>https://devzone.nordicsemi.com/thread/476454?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 07:57:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e86db743-bcc6-4340-90a3-fcacbf01eea9</guid><dc:creator>saiff</dc:creator><description>&lt;p&gt;Hi Amanda, yes i am using the external flash memory and i followed the instructions but the software just won&amp;#39;t start, as i soon as i flash it this is all i get :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;*** Booting nRF Connect SDK v2.5.2 ***&lt;/p&gt;
&lt;p&gt;then it freezesn is there an OTA DFU exemple using the external flash memory i can base my application on?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA device firmware update with external flash memory</title><link>https://devzone.nordicsemi.com/thread/476406?ContentTypeID=1</link><pubDate>Mon, 01 Apr 2024 20:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ee61d2d-4847-4b48-9190-193b86de33e3</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Are you using&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#id24"&gt;External flash memory&lt;/a&gt;? If so, please take a look at&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#external-flash-memory-partitions"&gt;External flash memory partitions&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA device firmware update with external flash memory</title><link>https://devzone.nordicsemi.com/thread/476345?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2024 10:55:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0331ec5-2214-4fe9-bc07-a9d948463330</guid><dc:creator>saiff</dc:creator><description>&lt;p&gt;Hi amanda,&lt;/p&gt;
&lt;p&gt;thank you for your response, unfortunally the solution provided in that post didn&amp;#39;t work for me (i tried changing&amp;nbsp;&lt;span&gt;BOOT_MAX_IMG_SECTORS value but nothing works) so i&amp;#39;ll be waiting for your support after the holidays.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA device firmware update with external flash memory</title><link>https://devzone.nordicsemi.com/thread/476318?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2024 20:22:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:741a32eb-7a5e-40e7-ab69-03a8f9f30646</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Due to the Easter holidays in Norway, we are less staffed than usual.&amp;nbsp;You can expect a delayed answer.&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Please check &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/97194/utilize-external-flash-with-nrf9160-sip-on-custom-board/414041"&gt;this post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>