<?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>Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114304/implementing-fota-on-nrf52840-dk-using-external-qspi-flash-mx25r64</link><description>Hi Nordic community, 
 I&amp;#39;m currently working on a project where I&amp;#39;m aiming to implement FOTA updates on the nRF52840 DK, with the application images stored on the MX25R64 external flash. 
 To summarize: My application requires around 600KB of storage</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Sep 2024 08:34:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114304/implementing-fota-on-nrf52840-dk-using-external-qspi-flash-mx25r64" /><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/503065?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2024 08:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d23ea963-28a3-4e57-b9a9-daef658291a5</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Seems you are not getting logs for MCUboot.&lt;br /&gt;I recommend that you add an overlay with logging configuration to the MCUboot image.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/503008?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 22:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96b8ca22-a745-47c8-82ef-f72c35e6f304</guid><dc:creator>Saman Niksiar</dc:creator><description>&lt;p&gt;This is the logs I get from flashing and trying the FOTA. I also get Slot image has no hash TLV error on the nrf connect app side as shown below.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:232px;max-width:301px;" height="232" src="https://devzone.nordicsemi.com/resized-image/__size/602x464/__key/communityserver-discussions-components-files/4/pastedimage1726697988663v1.png_2D00_640x480.png" width="301" alt=" " /&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/pastedimage1726698336868v5.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/502692?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 07:17:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d44273ca-34f7-4bb6-89bc-437e79371298</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Saman Niksiar"]but it didn&amp;#39;t show up as it rebooted[/quote]
&lt;p&gt;Do you get logs from MCUboot?&lt;br /&gt;If something goes wrong in the DFU, MCUboot logs usually explain what.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/502661?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 20:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caed57da-0213-4b41-86f8-157f7c9a85fb</guid><dc:creator>Saman Niksiar</dc:creator><description>&lt;p&gt;Thanks for your response&lt;/p&gt;
&lt;p&gt;1. I have added BLE configs to the hello_world example, (I used the same project that successfully did the FOTA in my first step as explained above (didn&amp;#39;t change anything))&lt;/p&gt;
&lt;p&gt;2. I changed the main.c to additionally printk a message (&amp;quot;hello&amp;quot;) to notice the difference but it didn&amp;#39;t show up as it rebooted (meaning it has went back to the previous code on the board)&lt;/p&gt;
&lt;p&gt;Let me know if you want me to upload any of the mentioned files&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/502431?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2024 06:46:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaff474e-2cad-4cc3-a4d0-8d15e57669f1</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Thanks for the explanation, things are more clear to me now.&lt;/p&gt;
&lt;p&gt;I have two comments:&lt;/p&gt;
&lt;p&gt;First: When using test&amp;amp;confirm, the app assumes that the new app will have BLE so it can send a confirm command to it. This will be an issue when updating from peripheral LBS to hello world, as hello world does not have BLE.&lt;/p&gt;
&lt;p&gt;Second: When you DFU the Peripheral LBS sample, did you change anything in the code before the DFU?&lt;br /&gt;If the DFU is exactly the same as the running code, the DFU will be ignored. No need to update to the same after all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/502185?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2024 18:31:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87e1b589-f297-4268-bb34-0a3d2ef85483</guid><dc:creator>Saman Niksiar</dc:creator><description>&lt;p&gt;To learn about DFU over the air, I started with the `peripheral_lbs` and `hello_world` examples. First, I flashed the `peripheral_lbs` example onto the board. Then, I used&amp;nbsp;FOTA to update the board with the `hello_world` example, which worked as expected&amp;mdash;the board rebooted and displayed &amp;quot;hello world.&amp;quot;&lt;/p&gt;
&lt;p&gt;Next, I added external flash support to the `peripheral_lbs` example code, incorporating child_image overlays and configurations, and flashed this updated code onto the board. When I tried to use&amp;nbsp;FOTA to flash the `hello_world` example again, the board did not accept the update and reverted to the previously flashed code.&lt;/p&gt;
&lt;p&gt;I then made changes to `main.c` in my modified `peripheral_lbs` code (with external flash support) but did not flash it directly. Instead, I built the project and attempted to send the DFU update via my phone. However, the board still did not accept the&amp;nbsp;FOTA update and reverted to the existing code that I had previously flashed.&lt;/p&gt;
&lt;div class="flex max-w-full flex-col flex-grow"&gt;
&lt;div dir="auto" data-message-author-role="assistant" data-message-id="cc93c144-9e1a-4730-b5c1-a8cc2c2edd80"&gt;
&lt;div&gt;
&lt;div class="markdown prose w-full break-words dark:prose-invert light"&gt;
&lt;p&gt;Please let me know if you need further explanation or additional details.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="mt-1 flex gap-3 empty:hidden -ml-2"&gt;
&lt;div class="items-center justify-start rounded-xl p-1 flex"&gt;
&lt;div class="flex items-center"&gt;&lt;span class="" data-state="closed"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div class="flex items-center pb-0"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/502057?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2024 08:47:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:173e5293-2483-4960-a25c-d6953d9c1aa9</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Byt then why are you talking about hello world?&lt;/p&gt;
&lt;p&gt;I am a bit inquisitive here because if I get the whole picture I can help you the best&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/501991?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2024 18:19:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e31f0da8-8808-4153-b96a-68e958db9b20</guid><dc:creator>Saman Niksiar</dc:creator><description>&lt;p&gt;I was able to do DFU with the internal flash (existing example of peripheral_lbs) but when I added the overlay for the external flash even with a new version of the same project (modified main.c) it doesn&amp;#39;t update.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is my terminal output&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v2.5.1 ***
Starting Bluetooth Peripheral LBS example
I: 2 Sectors of 4096 bytes
I: alloc wra: 0, fd0
I: data wra: 0, 1c
I: SoftDevice Controller build revision: 
I: c5 93 ba a9 14 4d 8d 05 |.....M..
I: 30 4e 9b 92 d7 71 1e e8 |0N...q..
I: aa 02 50 3c             |..P&amp;lt;    
I: HW Platform: Nordic Semiconductor (0x0002)
I: HW Variant: nRF52x (0x0002)
I: Firmware: Standard Bluetooth controller (0x00) Version 197.47763 Build 2370639017
I: No ID address. App must call settings_load()
Bluetooth initialized
I: Identity: E9:8B:53:AC:D8:80 (random)
I: HCI: version 5.4 (0x0d) revision 0x1102, manufacturer 0x0059
I: LMP: version 5.4 (0x0d) subver 0x1102
Flash erased successfully
Advertising successfully started
W: Ignoring data for unknown channel ID 0x003a
I: Image index: 0, Swap type: none
I: Image index: 0, Swap type: none
I: Image index: 0, Swap type: none
I: Image index: 0, Swap type: none
I: Image index: 0, Swap type: test
*** Booting nRF Connect SDK v2.5.1 ***
Starting Bluetooth Peripheral LBS example
I: 2 Sectors of 4096 bytes
I: alloc wra: 0, fe8
I: data wra: 0, 0
I: SoftDevice Controller build revision: 
I: c5 93 ba a9 14 4d 8d 05 |.....M..
I: 30 4e 9b 92 d7 71 1e e8 |0N...q..
I: aa 02 50 3c             |..P&amp;lt;    
I: HW Platform: Nordic Semiconductor (0x0002)
I: HW Variant: nRF52x (0x0002)
I: Firmware: Standard Bluetooth controller (0x00) Version 197.47763 Build 2370639017
I: No ID address. App must call settings_load()
Bluetooth initialized
I: Identity: E9:8B:53:AC:D8:80 (random)
I: HCI: version 5.4 (0x0d) revision 0x1102, manufacturer 0x0059
I: LMP: version 5.4 (0x0d) subver 0x1102
Flash erased successfully
Advertising successfully started
W: Ignoring data for unknown channel ID 0x003a&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/501833?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2024 06:02:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2497057-8ad1-4b8f-94aa-1d4a188ce281</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Aha, I see.&lt;/p&gt;
&lt;p&gt;So you are able to do DFU first, but then when you upload hello_world, and use test&amp;amp;confirm, the image runs hello world only once and then changes back to peripheral LBS?&lt;/p&gt;
&lt;p&gt;If so, are you able to DFU to a new version of peripheral LBS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/501804?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 20:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7608df33-7846-4953-b8ff-9030ce7cdd14</guid><dc:creator>Saman Niksiar</dc:creator><description>&lt;p&gt;Yes my mcuboot.conf and mcuboot.overlay are exactly the same as the folder you mentioned for both my peripheral_lbs example and the hello_world which I want to flash.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is picture of my dfu package I am trying to flash if that helps&lt;/p&gt;
&lt;p&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/IMG_5F00_0961.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Even though it says success once I flash with Test and Confirm, it doesn&amp;#39;t run the main.c of the hello_world and loops back to the peripheral_lbs main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/501645?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 06:59:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ff621dd-e1cf-41e7-857f-890885e5a855</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Thanks for the answers!&lt;/p&gt;
&lt;p&gt;The error you get is typical for missing external flash overlays for the MCUboot child image. Have you set those in the &amp;quot;child_image&amp;quot; folder of your project, as described in &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;the DevAcademy course&lt;/a&gt;, aka a folder that looks like &lt;a href="https://github.com/NordicDeveloperAcademy/ncs-inter/tree/main/lesson8/inter_less8_exer2_solution/child_image"&gt;this one&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/501587?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2024 17:06:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:974251c6-3792-4cf6-8b54-80671d76f0f5</guid><dc:creator>Saman Niksiar</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks. Yes I have done with the peripheral_lbs example and the app_update.bin generated for the hello world example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I uploaded that to my phone and used the nRF connect app to upload it and it was succesful.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/501522?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2024 11:20:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d536b091-898e-45df-95bf-9f978ac0066d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will continue to help with this ticket.&lt;/p&gt;
&lt;p&gt;First, i cleaned up the ticket by moving your code snippets to Insert-&amp;gt;Code. Please use this in the future to paste code, so we dont have to scroll for miles to see the whole ticket.&lt;/p&gt;
&lt;p&gt;Secondly, let me take a step back: Have you ever done DFU with a sample and the DK successfully before?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/501239?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 22:07:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c20fac02-df81-4d2e-b363-d563fcf433ff</guid><dc:creator>Saman Niksiar</dc:creator><description>&lt;p&gt;&lt;span style="font-weight:400;"&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;From the memory report I see that my flash_primary and external_flash address are the same as the picture included in this course:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&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;&lt;span style="font-weight:400;"&gt;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/&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Also on my partitions.yml file my external flash&amp;rsquo;s address comes after my internal flash.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The app_update I refer to is what is generated in build &amp;rarr; zephyr &amp;rarr; app_update.bin&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;I have attached it below for your consideration&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Also, Could you please link the tutorial you refer to if its different from what I mentioned above.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Thank you&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5444.app_5F00_update.bin"&gt;devzone.nordicsemi.com/.../5444.app_5F00_update.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/500884?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 07:35:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c3fb6a6-5d7b-4662-90b3-947afe2efd1b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What is the app_update you refer to here exactly? Are you sure the start address of the secondary (external flash slot) is set to the start of the external flash device and not on the internal flash. Please try debugging and/or comparing your application to the one in the DevAcademy as there must be something you&amp;#39;re missing here.&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: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/500640?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 21:27:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7ebba07-0540-4bc6-936e-8cdc16cd222a</guid><dc:creator>Saman Niksiar</dc:creator><description>&lt;p&gt;Hi, I managed to access the external flash as show on the memory report&lt;!--mce:protected %3C%21--mce%3Aprotected%20%253C%2521--mce%253Aprotected%2520%25253C%252521--mce%25253Aprotected%252520%2525253C%25252521--mce%2525253Aprotected%25252520%252525253C%2525252521--%2525252520notionvc%252525253A%25252525209c2f1fc2-eabd-4136-bbde-538fd3d0057a%2525252520--%252525253E--%2525253E--%25253E--%253E--%3E--&gt;&lt;/p&gt;
&lt;p&gt;Now when I try to flash the app_update of a simple hello_world application I face the following error (Image in secondary slot is not valid) followed by rebooting to the main app on the DK&lt;!--mce:protected %3C%21--mce%3Aprotected%20%253C%2521--mce%253Aprotected%2520%25253C%252521--mce%25253Aprotected%252520%2525253C%25252521--%25252520notionvc%2525253A%2525252056dee824-64a5-4b51-8550-e7d025857392%25252520--%2525253E--%25253E--%253E--%3E--&gt;&lt;/p&gt;
&lt;p&gt;Although when using the peripheral_lbs example I successfully uploaded the same file and it allowed to flash.&lt;/p&gt;
&lt;p&gt;I wanted to know why with the external flash the invalid app is triggered and how can I fix it?&lt;/p&gt;
&lt;p&gt;For reference here are my config , main and partition codes.&lt;/p&gt;
&lt;p&gt;Also, I tried using both nRF connect and nRF device manager apps to flash and tried flashing both app_update and application.zip files but faced the same error&lt;!--mce:protected %3C%21--mce%3Aprotected%20%253C%2521--mce%253Aprotected%2520%25253C%252521--mce%25253Aprotected%252520%2525253C%25252521--%25252520notionvc%2525253A%252525209c7fa045-84ae-493c-ad39-17f5926cd193%25252520--%2525253E--%25253E--%253E--%3E--&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/FOTA_5F00_error.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6433.memory_5F00_report.png" /&gt;&lt;/p&gt;
&lt;p&gt;prj.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NCS_SAMPLES_DEFAULTS=y
CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME=&amp;quot;Nordic_LBS&amp;quot;
# Enable the LBS service

CONFIG_BT_LBS=y

CONFIG_BT_LBS_POLL_BUTTON=y

CONFIG_DK_LIBRARY=y

CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048

# STEP 2 - Enable MCUboot and FOTA

CONFIG_BOOTLOADER_MCUBOOT=y

CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y

CONFIG_BOOT_SIGNATURE_KEY_FILE=&amp;quot;&amp;quot;

CONFIG_SECURE_BOOT_VALIDATION=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;!--mce:protected %3C%21--mce%3Aprotected%20%253C%2521--mce%253Aprotected%2520%25253C%252521--mce%25253Aprotected%252520%2525253C%25252521--%25252520notionvc%2525253A%2525252099bc7dd9-a7f3-44f9-8c27-45f357987cfd%25252520--%2525253E--%25253E--%253E--%3E--&gt;&lt;/p&gt;
&lt;p&gt;&lt;!--mce:protected %3C%21--mce%3Aprotected%20%253C%2521--mce%253Aprotected%2520%25253C%252521--mce%25253Aprotected%252520%2525253C%25252521--%25252520notionvc%2525253A%252525203cecc0fa-d6df-4848-bee9-c66f9030a190%25252520--%2525253E--%25253E--%253E--%3E--&gt;&lt;/p&gt;
&lt;p&gt;Mcuboot.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Enable logging for MCUboot
CONFIG_LOG=y

CONFIG_MCUBOOT_LOG_LEVEL_WRN=y

# STEP 6.2 - Enable QSPI drivers for external flash

CONFIG_NORDIC_QSPI_NOR=y

CONFIG_BOOT_MAX_IMG_SECTORS=256

CONFIG_MCUBOOT_INDICATION_LED=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Main.c&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr/types.h&amp;gt;

#include &amp;lt;zephyr/kernel.h&amp;gt;

#include &amp;lt;zephyr/bluetooth/bluetooth.h&amp;gt;

#include &amp;lt;zephyr/bluetooth/gatt.h&amp;gt;

#include &amp;lt;bluetooth/services/lbs.h&amp;gt;

#define DEVICE_NAME CONFIG_BT_DEVICE_NAME

#define DEVICE_NAME_LEN (sizeof(DEVICE_NAME) - 1)

static const struct bt_data ad[] = {

BT_DATA_BYTES(BT_DATA_FLAGS, BT_LE_AD_GENERAL | BT_LE_AD_NO_BREDR),

BT_DATA(BT_DATA_NAME_COMPLETE, DEVICE_NAME, DEVICE_NAME_LEN),

};

static const struct bt_data sd[] = {

BT_DATA_BYTES(BT_DATA_UUID128_ALL, BT_UUID_LBS_VAL),

};

int main(void)

{

int err;

printk(&amp;quot;Starting Bluetooth Peripheral LBS example\\n&amp;quot;);

err = bt_enable(NULL);

if (err) {

printk(&amp;quot;Bluetooth init failed (err %d)\\n&amp;quot;, err);

return 0;

}

printk(&amp;quot;Bluetooth initialized\\n&amp;quot;);

if (IS_ENABLED(CONFIG_SETTINGS)) {

settings_load();

}

err = bt_le_adv_start(BT_LE_ADV_CONN, ad, ARRAY_SIZE(ad), sd, ARRAY_SIZE(sd));

if (err) {

printk(&amp;quot;Advertising failed to start (err %d)\\n&amp;quot;, err);

return 0;

}

printk(&amp;quot;Advertising successfully started\\n&amp;quot;);

while (1) {

k_sleep(K_SECONDS(1));  // Keep the system alive

}

}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;!--mce:protected %3C%21--mce%3Aprotected%20%253C%2521--mce%253Aprotected%2520%25253C%252521--mce%25253Aprotected%252520%2525253C%25252521--%25252520notionvc%2525253A%25252520627fb848-3900-4b9a-8db8-f50ff387ef3e%25252520--%2525253E--%25253E--%253E--%3E--&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Partitions.yml&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:

address: 0xc200

end_address: 0xfe000

region: flash_primary

size: 0xf1e00

external_flash:

address: 0xf2000

end_address: 0x800000

region: external_flash

size: 0x70e000

mcuboot:

address: 0x0

end_address: 0xc000

placement:

before:

- mcuboot_primary

region: flash_primary

size: 0xc000

mcuboot_pad:

address: 0xc000

end_address: 0xc200

placement:

align:

start: 0x1000

before:

- mcuboot_primary_app

region: flash_primary

size: 0x200

mcuboot_primary:

address: 0xc000

end_address: 0xfe000

orig_span: &amp;amp;id001

- mcuboot_pad

- app

region: flash_primary

size: 0xf2000

span: *id001

mcuboot_primary_app:

address: 0xc200

end_address: 0xfe000

orig_span: &amp;amp;id002

- app

region: flash_primary

size: 0xf1e00

span: *id002

mcuboot_secondary:

address: 0x0

device: DT_CHOSEN(nordic_pm_ext_flash)

end_address: 0xf2000

placement:

align:

start: 0x4

region: external_flash

share_size:

- mcuboot_primary

size: 0xf2000

settings_storage:

address: 0xfe000

end_address: 0x100000

placement:

align:

start: 0x1000

before:

- end

region: flash_primary

size: 0x2000

sram_primary:

address: 0x20000000

end_address: 0x20040000

region: sram_primary

size: 0x40000
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/500504?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 06:02:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4e66a96-081c-495c-8d4a-802e699b64a4</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;I&amp;#39;d strongly suggest you check out the DevAcademy course on bootloaders and DFU FOTA on your end.&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: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/500474?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 17:49:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aad7fc47-6c26-435e-949a-57ce878d5885</guid><dc:creator>Saman Niksiar</dc:creator><description>&lt;p&gt;Hi and thanks for the quick response&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/Pasted-Graphic-1.png" /&gt;&lt;br /&gt;Here is the error I am getting indicating a &amp;quot;FLASH&amp;quot; overflow by 48264 bytes&lt;br /&gt;I am using SDK v2.5.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing FOTA on nRF52840 DK Using External QSPI Flash (MX25R64)</title><link>https://devzone.nordicsemi.com/thread/500446?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2024 13:55:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:918f54f6-26b2-4cd0-933f-3acc417f05a1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Before ensuring that the app that needs more flash space here, I think we need to clarify a few points. First off, what exactly is overflowing? It&amp;#39;s often when adding external flash in MCUBoot that the MCUBoot overflows because it needs QSPI drivers, but please upload a snippet of the flash overflow itself, so we can see what exactly is causing this overflow, so we can make sure it&amp;#39;s the application and not MCUBoot getting the flash overflow.&lt;/p&gt;
&lt;p&gt;We also have a course on the DevAcademy on adding external flash to your bootloader available here that should be useful in this case. Please check it out:&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And finally, which SDK version are you using for development?&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>