<?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>nRF5340DK + MCUBOOT + Sample SMP_SRV +  SPI Ext. Flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111437/nrf5340dk-mcuboot-sample-smp_srv-spi-ext-flash</link><description>Hi guys, 
 
 I would like to run the sample SMP_SRV at NRF5340DK with memory mx25r64 configured as SPI (not QSPI). 
 
 What are the necessary changes? 
 
 I tried build an overlay like this: 
 
 
 &amp;amp; qspi { 
 status = &amp;quot;disabled&amp;quot; ; 
 }; 
 
 &amp;amp; spi4 { 
 compatible</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 May 2024 13:15:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111437/nrf5340dk-mcuboot-sample-smp_srv-spi-ext-flash" /><item><title>RE: nRF5340DK + MCUBOOT + Sample SMP_SRV +  SPI Ext. Flash</title><link>https://devzone.nordicsemi.com/thread/486468?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 13:15:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f74c505c-7d19-4b9b-80dc-d1397b28999b</guid><dc:creator>msfassarella</dc:creator><description>&lt;p&gt;It worked without problems.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340DK + MCUBOOT + Sample SMP_SRV +  SPI Ext. Flash</title><link>https://devzone.nordicsemi.com/thread/485820?ContentTypeID=1</link><pubDate>Fri, 24 May 2024 12:41:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bbb549a-518e-4b6b-95f6-0d38b13a1ad2</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The nrf5340dk_nrf5340_cpuapp.overlay should look like this&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2021 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */
/delete-node/ &amp;amp;mx25r64;
/ {
	/* Configure the partition manager to use the mx25r64 external flash memory. */
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
	};
};

&amp;amp;qspi {
    status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;spi4 {
	compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;spi4_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi4_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;gpio0 18 GPIO_ACTIVE_LOW&amp;gt;;
	mx25r64: mx25r6435f@0 {
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
		reg = &amp;lt;0&amp;gt;;
		spi-max-frequency = &amp;lt;33000000&amp;gt;;
		jedec-id = [c2 28 17];
		sfdp-bfp = [
			e5 20 f1 ff ff ff ff 03 44 eb 08 6b 08 3b 04 bb
			ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52
			10 d8 00 ff 23 72 f5 00 82 ed 04 cc 44 83 68 44
			30 b0 30 b0 f7 c4 d5 5c 00 be 29 ff f0 d0 ff ff
		];
		size = &amp;lt;67108864&amp;gt;;
		has-dpd;
		t-enter-dpd = &amp;lt;10000&amp;gt;;
		t-exit-dpd = &amp;lt;35000&amp;gt;;
	};
};


&amp;amp;pinctrl {
    spi4_default: spi4_default {
        group1 {
            psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 17)&amp;gt;,
                &amp;lt;NRF_PSEL(SPIM_MISO, 0, 14)&amp;gt;,
                &amp;lt;NRF_PSEL(SPIM_MOSI, 0, 13)&amp;gt;;
        };
    };

    spi4_sleep: spi4_sleep {
        group1 {
            psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 17)&amp;gt;,
                &amp;lt;NRF_PSEL(SPIM_MISO, 0, 14)&amp;gt;,
                &amp;lt;NRF_PSEL(SPIM_MOSI, 0, 13)&amp;gt;;
            low-power-enable;
        };
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here is the&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/smp_5F00_svr_5F00_nRF5340DK_5F00_spi.7z"&gt;devzone.nordicsemi.com/.../smp_5F00_svr_5F00_nRF5340DK_5F00_spi.7z&lt;/a&gt; which supports nRF5340DK external flash via SPI.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Beware that this code/configuration is not fully tested or qualified and should be considered provided “as-is”. Please test it with your application and let me know if you find any issues.&lt;/em&gt;&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: nRF5340DK + MCUBOOT + Sample SMP_SRV +  SPI Ext. Flash</title><link>https://devzone.nordicsemi.com/thread/485692?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 19:44:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b84dd2b-a434-46df-9c4a-547c4dd94917</guid><dc:creator>msfassarella</dc:creator><description>&lt;p&gt;Hi Amanda.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using ncs 2.6.1.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Because my&amp;nbsp;&lt;span&gt;customized board has only SPI. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This SPI shared to some sensors and the external memory.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main target is to do FOTA using this external memory.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However I could&amp;#39;nt put the smp_srv sample to work when the memory has SPI enabled.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to do all tests using DK and after that I will do the portability to my board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Marcelo F.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340DK + MCUBOOT + Sample SMP_SRV +  SPI Ext. Flash</title><link>https://devzone.nordicsemi.com/thread/485691?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 18:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:274e0eed-e9f5-4c8d-b588-d009b174c80c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any special reason to use SPI instead of QSPI?&lt;/p&gt;
&lt;p&gt;What NCS version are you using?&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>