<?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>Use external flash with MCUBOOT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88971/use-external-flash-with-mcuboot</link><description>This is my first time developing for Nordic processors. I am using Zephyr 3.0.99 with the nrf52810 on a ublox BMD-330 eval board. I connected a W25X20CL 2M-bit chip via the SPI bus. I have used the “littlefs” file system to create and read/write files</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Jul 2022 19:26:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88971/use-external-flash-with-mcuboot" /><item><title>RE: Use external flash with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/376502?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 19:26:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f68c1f5a-cd7c-4f12-93db-d4878f92232c</guid><dc:creator>Davenator</dc:creator><description>&lt;p&gt;I am using version 1.9.1&lt;/p&gt;
&lt;p&gt;I began debugging MCUboot and finally figured out the settings and their dependencies. Now I have things building and seem to work. I can mount a file system on the storage partition and read/write files. So I am convinced the external flash is working.&lt;/p&gt;
&lt;p&gt;My question is does MCUMGR support image partitions on the external flash? When I use it to list the partitions only see the ones on the internal flash. I would like to use it to upload and test booting from external flash.&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;nbsp;mcumgr -c nrf52 image list&lt;/p&gt;
&lt;p&gt;Images:&lt;br /&gt;image=0 slot=0&lt;br /&gt;version: 0.0.0&lt;br /&gt;bootable: true&lt;br /&gt;flags: active confirmed&lt;br /&gt;hash: 3cc864cc51508c03e70aa83fd49d47e0aaf943736eb7b1ac1472c69511eeb718&lt;br /&gt;Split status: N/A (0)&lt;/p&gt;
&lt;p&gt;The board.dts file looks like the partitions are defined and the partition manager seems to confirm it.&lt;/p&gt;
&lt;p&gt;west build -t partition_manager_report&lt;br /&gt;-- west build: running target partition_manager_report&lt;br /&gt;[1/1] cmd.exe /C &amp;quot;cd /D D:\Projects\Nordic\OTA\littlefs_ub... D:/Projects/Nordic/OTA/littlefs_ubx/build/partitions.yml&amp;quot;&lt;br /&gt;external_flash (0x40000 - 256kB):&lt;br /&gt;+-------------------------------------------+&lt;br /&gt;| 0x0: mcuboot_secondary (0x24000 - 144kB) |&lt;br /&gt;| 0x24000: external_flash (0x1c000 - 112kB) |&lt;br /&gt;+-------------------------------------------+&lt;/p&gt;
&lt;p&gt;flash_primary (0x30000 - 192kB):&lt;br /&gt;+-------------------------------------------------+&lt;br /&gt;| 0x0: mcuboot (0xc000 - 48kB) |&lt;br /&gt;+---0xc000: mcuboot_primary (0x24000 - 144kB)-----+&lt;br /&gt;| 0xc000: mcuboot_pad (0x200 - 512B) |&lt;br /&gt;+---0xc200: mcuboot_primary_app (0x23e00 - 143kB)-+&lt;br /&gt;| 0xc200: app (0x23e00 - 143kB) |&lt;br /&gt;+-------------------------------------------------+&lt;/p&gt;
&lt;p&gt;sram_primary (0x6000 - 24kB):&lt;br /&gt;+------------------------------------------+&lt;br /&gt;| 0x20000000: sram_primary (0x6000 - 24kB) |&lt;br /&gt;+------------------------------------------+&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;From ubx_bmd330eval_nrf52810.dts&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;amp;flash0 {&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; partitions {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; compatible = &lt;/span&gt;&lt;span&gt;&amp;quot;fixed-partitions&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #address-cells = &amp;lt;&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #size-cells = &amp;lt;&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; boot_partition: partition@&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label = &lt;/span&gt;&lt;span&gt;&amp;quot;mcuboot&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;&lt;/span&gt;&lt;span&gt;0x00000000&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0xc000&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; slot0_partition: partition@&lt;/span&gt;&lt;span&gt;c000&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label = &lt;/span&gt;&lt;span&gt;&amp;quot;image-0&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;&lt;/span&gt;&lt;span&gt;0x0000C000&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0xd000&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; slot1_partition: partition@&lt;/span&gt;&lt;span&gt;19000&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label = &lt;/span&gt;&lt;span&gt;&amp;quot;image-1&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;&lt;/span&gt;&lt;span&gt;0x00019000&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0xd000&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scratch_partition: partition@&lt;/span&gt;&lt;span&gt;26000&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label = &lt;/span&gt;&lt;span&gt;&amp;quot;image-scratch&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;&lt;/span&gt;&lt;span&gt;0x00026000&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x3000&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; storage_partition: partition@&lt;/span&gt;&lt;span&gt;29000&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label = &lt;/span&gt;&lt;span&gt;&amp;quot;storage&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; reg = &amp;lt;&lt;/span&gt;&lt;span&gt;0x00029000&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0x00007000&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/375087?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2022 12:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54fbe566-346e-454c-a8a5-49275ed528a1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looks like the overlay is not getting applied. Check the start of the log to see if it&amp;#39;s get applied or not.&lt;/p&gt;
[quote user=""]I am using Zephyr 3.0.99 with the nrf52810 on a ublox BMD-330 eval board.[/quote]
&lt;p&gt;If you are building for&amp;nbsp;ubx_bmd330eval_nrf52810 , then you should name your overlay file ubx_bmd330eval_nrf52810.overlay and not&amp;nbsp;nrf52dk_nrf52810.overlay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/373039?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2022 12:57:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aedceec6-6354-4a86-a1ea-05707a6677e6</guid><dc:creator>Davenator</dc:creator><description>&lt;p&gt;After studying the code a bit and trying to figure out which parts of it apply I made the modifications. I now get a lot of compile errors that I&amp;#39;m not sure how to interpret. Any suggestions on how to resolve?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5353.build.txt"&gt;devzone.nordicsemi.com/.../5353.build.txt&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8715.prj.conf"&gt;devzone.nordicsemi.com/.../8715.prj.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;From child_image/mcuboot&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8715.prj.conf"&gt;devzone.nordicsemi.com/.../8715.prj.conf&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7220.nrf52dk_5F00_nrf52810.overlay"&gt;devzone.nordicsemi.com/.../7220.nrf52dk_5F00_nrf52810.overlay&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use external flash with MCUBOOT</title><link>https://devzone.nordicsemi.com/thread/372857?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2022 14:33:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdee80dd-414a-44ea-b36a-721b44b12867</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I would really appreciate if you could point me to a working example that uses your latest SDK or up to date info. on how to solve this problem[/quote]
&lt;p&gt;My colleague Simon have an example here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/82430/ncs-external-flash-ota-change-qspi-to-spi/345238#345238"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/82430/ncs-external-flash-ota-change-qspi-to-spi/345238#345238&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What nRF Connect SDK version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>