<?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>MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117351/mcuboot-spi-nor-external-flash</link><description>We have developed a custom board with an external SPI flash, which I have tested and it works. 
 We want to use OTA over BLE, so we have added MCUboot to the project, which should use the external flash. 
 We are using SDK toolchain v2.6.1 
 In the prj</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Jan 2025 21:59:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117351/mcuboot-spi-nor-external-flash" /><item><title>RE: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/518334?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2025 21:59:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4ac9ca5-4a23-4dab-9b4a-da8bd271d4a6</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Could you use&amp;nbsp;zephyr\samples\drivers\jesd216 to test the external flash can work as expected?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/518028?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 21:01:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33f3752a-0f40-4aa0-a9e9-b60dc513251c</guid><dc:creator>jju</dc:creator><description>&lt;p&gt;Yes, here it is.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1220.peripheral_5F00_lbs.zip"&gt;devzone.nordicsemi.com/.../1220.peripheral_5F00_lbs.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/517790?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 19:12:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba810688-4e27-46d9-bf0b-40e533de5006</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Could you share the simple project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/517770?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 15:53:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b270a3e-f5fc-4aba-87d4-1c06667c9fbb</guid><dc:creator>jju</dc:creator><description>&lt;p&gt;Yes, I have created a pm_static.yml file which is used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/517552?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 21:04:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ef88acc-4964-40ff-a70b-cf018c31b4c2</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;Do you update the file with the same static partition? You can duplicate build/partitions.yml, place it in the app folder, and rename it to&amp;nbsp;pm_static.yml to build.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/517451?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 11:36:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec50ebae-0290-4e81-a948-ec2bbced0c64</guid><dc:creator>jju</dc:creator><description>&lt;p&gt;external_flash (0x80000 - 512kB):&lt;br /&gt;+------------------------------------------+&lt;br /&gt;| 0x0: mcuboot_secondary (0x6de00 - 439kB) |&lt;br /&gt;| 0x6de00: external_flash (0x12200 - 72kB) |&lt;br /&gt;+------------------------------------------+&lt;/p&gt;
&lt;p&gt;flash_primary (0x80000 - 512kB):&lt;br /&gt;+--------------------------------------------------+&lt;br /&gt;| 0x0: mcuboot (0x10000 - 64kB) |&lt;br /&gt;+---0x10000: mcuboot_primary (0x6e000 - 440kB)-----+&lt;br /&gt;| 0x10000: mcuboot_pad (0x200 - 512B) |&lt;br /&gt;+---0x10200: mcuboot_primary_app (0x6de00 - 439kB)-+&lt;br /&gt;| 0x10200: app (0x6be00 - 431kB) |&lt;br /&gt;| 0x7c000: settings_storage (0x2000 - 8kB) |&lt;br /&gt;+--------------------------------------------------+&lt;br /&gt;| 0x7e000: userstorage (0x2000 - 8kB) |&lt;br /&gt;+--------------------------------------------------+&lt;/p&gt;
&lt;p&gt;sram_primary (0x10000 - 64kB):&lt;br /&gt;+-------------------------------------------+&lt;br /&gt;| 0x20000000: sram_primary (0x10000 - 64kB) |&lt;br /&gt;+-------------------------------------------+&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/517325?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 19:44:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81df95df-4d4d-461f-aa24-fe8f598d8b4c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;I suspect your external flash setting is not correct. You can check&amp;nbsp;the memory layout by executing &amp;quot;ninja partition_manager_report&amp;quot; under the build folder or&amp;nbsp;&lt;/span&gt;generate a Memory report&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1184.pastedimage1736278295765v1.png" alt=" " /&gt;&amp;nbsp;and provide the memory layout from&amp;nbsp;&lt;span&gt;the&amp;nbsp;&lt;/span&gt;&lt;strong&gt;Partitions&lt;/strong&gt;&lt;span&gt;&amp;nbsp;tab.&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should see the mcuboot_secondary located on the external memory or at least the external memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/517094?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 21:08:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26e7544f-34ab-4896-97a0-6fc5d0fdb84f</guid><dc:creator>jju</dc:creator><description>&lt;p&gt;Yes, I did put that line in the prj.conj for the main project, but not for the child_image project.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/517093?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 20:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cc1413f-ffac-47c5-a9e6-4bf96968b362</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you enable&amp;nbsp;CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY in the prj.conf?&lt;/p&gt;
&lt;p&gt;Could you provide the memory layout by executing &amp;quot;ninja partition_manager_report&amp;quot; under the build folder?&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: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/516422?ContentTypeID=1</link><pubDate>Sat, 28 Dec 2024 14:31:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d01b6d12-dbf0-48e7-a2a0-f8dd9571a8f2</guid><dc:creator>jju</dc:creator><description>&lt;p&gt;Thank you.&lt;br /&gt;I almost got it working now... :-)&lt;br /&gt;But when I updated the fw using the NRFconnect App, I cannot update again, it seems that it complaint about there is not enough room for the image.&lt;br /&gt;But it should erase the external flash, not try to fit another image into that region. ?&lt;/p&gt;
&lt;p&gt;I get the error:&lt;br /&gt;I: Image index: 0, Swap type: perm&lt;br /&gt;E: Image upload inspect failed: 9&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/515822?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2024 19:51:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eb7a750-3874-4e6d-b43a-0d95c726b0c0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The MCUboot secondary partition can then be placed in the external flash, increasing the available space for the application.&lt;/p&gt;
&lt;p&gt;Please take a look at this DevAcademy course&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;Lesson 8 – Bootloaders and DFU/FOTA&lt;/a&gt;&amp;nbsp;for&amp;nbsp;&lt;span&gt;the OTA mechanism.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/515659?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2024 08:52:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a51e8bf7-ffed-47e3-81b5-d6313f88344d</guid><dc:creator>jju</dc:creator><description>&lt;p&gt;I got the peripheral lbs sample working, but&amp;nbsp;I think I need some clarification, since I maybe don&amp;#39;t exactly understand, how the mechanism is when using external flash.&lt;/p&gt;
&lt;p&gt;In my App I initialize all the BT (as the peripheral lbs) and then call&amp;nbsp;&lt;strong&gt;smp_bt_register();&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;In the overlay files for the App and MCUboot I enable the&amp;nbsp;&lt;span&gt;CONFIG_SPI_NOR stuff.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But what is is the OTA mechanism exactly ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. The App connects to bluetooth, and transfers the data using the SMP protocol to the external flash.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. The MCU reboots, and the MCUboot copies the content from the external flash to the internal flash (App section).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. The MCUboot (starts) jumps to the App start vector in internal flash.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is my understanding correct ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(Note, when I debug using jtag, it looks like MCUboot is trying to boot from the external flash? )&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/515552?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 15:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8782ca13-a82b-4738-a140-e826190e0ce5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;You can&amp;nbsp;take a look at this course&amp;nbsp;&lt;a 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;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-3-fota-over-bluetooth-low-energy/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/515504?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 13:25:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:569c2956-03a0-4647-a695-2fd58a49f842</guid><dc:creator>jju</dc:creator><description>&lt;p&gt;Hi, thank you.&lt;br /&gt;Now it builds. :-)&lt;br /&gt;But when powered on, it writes *** Booting nRF Connect SDK v3.5.99-ncs1-1 *** forever on the uart output.&lt;br /&gt;I&amp;#39;m not sure why, but it does not seem to advertise&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUboot spi-nor external flash</title><link>https://devzone.nordicsemi.com/thread/515346?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2024 20:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e4ca354-6c6a-4678-b743-5b9314d7cc3f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See my colleague&amp;#39;s example in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/102597/custom-bootloader-with-nrf52832-dk/440673"&gt;this case&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>