<?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 secondary slot in external SPI Flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85987/mcuboot-secondary-slot-in-external-spi-flash</link><description>I am using NCS v1.9.1 with the nRF52840 and I am not able to move the MCUBoot secondary slot to SPI flash. 
 
 I have been able to communicate with the device over the SPI port that is configured as such: 
 &amp;amp;spi2 { compatible = &amp;quot;nordic,nrf-spi&amp;quot;; status</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Mar 2022 07:25:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85987/mcuboot-secondary-slot-in-external-spi-flash" /><item><title>RE: MCUBoot secondary slot in external SPI Flash</title><link>https://devzone.nordicsemi.com/thread/359287?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 07:25:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2bf786d-ee0b-4a34-9377-63d41c86a0e1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The pm_static.yml only describes the static partitions, leaving the rest to be dynamically placed. Your build-folder/partitions.yml shows the whole layout. Could you attach this one?&lt;/p&gt;
&lt;p&gt;Do you have a section where you select the &amp;quot;sdhc0&amp;quot; to be used as a mcuboot secondary, similar to how its done here?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/tests/modules/mcuboot/external_flash/boards/nrf52840dk_nrf52840.overlay#L1-L5"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/tests/modules/mcuboot/external_flash/boards/nrf52840dk_nrf52840.overlay#L1-L5&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot secondary slot in external SPI Flash</title><link>https://devzone.nordicsemi.com/thread/359200?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 15:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18024bc3-b254-432f-b432-7d3c95fdfa34</guid><dc:creator>zrivard</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;I am trying to use a sdhc device (it&amp;#39;s just an SD card that is SPI-accessible).&lt;/p&gt;
&lt;p&gt;The build fails before it is able to generate partitions.yml file.&lt;/p&gt;
&lt;p&gt;I have provided a pm_static.yml with the following contained:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;external_flash:
  address: 0x0
  region: external_flash
  size: 0x100000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The overlay file was already in the child_image/mcuboot/boards/ directory.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can SDHC devices be used as secondary slots?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBoot secondary slot in external SPI Flash</title><link>https://devzone.nordicsemi.com/thread/359116?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 12:34:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3df957c8-4026-4d83-82b7-2e00aa32cbb4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using a spi-nor device, or are you using a sdhc device?&lt;/p&gt;
&lt;p&gt;Could you share your build-folder/partitions.yml file?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS: The example listed 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;You should move the child_image/mcuboot/nrf52840dk_nrf52840.overlay to child_image/mcuboot/&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;boards&lt;/strong&gt;&lt;/span&gt;/nrf52840dk_nrf52840.overlay&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>