<?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>How to use 2 different SPI flashs to store the secondary images</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106350/how-to-use-2-different-spi-flashs-to-store-the-secondary-images</link><description>Hi, 
 I am using an nrf5340-DK Board with SDK 2.4.2. 
 We want to use 2 different types of SPI flash memories for storing the secondary images. 
 In our application we are using the simlutaneous update mechanism provided by mucuboot. 
 Up to now we are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Dec 2023 14:14:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106350/how-to-use-2-different-spi-flashs-to-store-the-secondary-images" /><item><title>RE: How to use 2 different SPI flashs to store the secondary images</title><link>https://devzone.nordicsemi.com/thread/459000?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2023 14:14:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71ebfe27-4eb7-4dd4-bd8c-48244e42acf5</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will have to do some investigating to see if it is possible to do what you want.&lt;/p&gt;
&lt;p&gt;My immediate thoughts is that this should be possible as you can change devices during runtime, and I believe you can achieve this with 1 firmware where you define both the SPI flashes and you run a check at boot to see which flash you&amp;#39;re using and then load the drivers and everything you need&lt;/p&gt;
&lt;p&gt;I.e something like&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In .dts you define both&amp;nbsp;&lt;/li&gt;
&lt;li&gt;In pm_static you define mcuboot_secondary partition to be residing in the same address range so it will be&amp;nbsp;&lt;/li&gt;
&lt;li&gt;In main you define which device you have
&lt;ol&gt;
&lt;li&gt;If device A, then you don&amp;#39;t need to load flash device B&lt;/li&gt;
&lt;li&gt;If !A then load B&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Continue booting and starting the application&lt;/li&gt;
&lt;li&gt;Do DFU over BLE identical in both devices&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Do note that we don&amp;#39;t know if this works out of the box, but I believe that you should be able to set it up like this given that you handle any potential edge cases such as choosing the devices and handling any issue that might rise by having multiple devices&lt;/p&gt;
&lt;p&gt;Let me know if this is enough to get you started&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>