<?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>external memory SPI pin configuration in serial ltm application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106810/external-memory-spi-pin-configuration-in-serial-ltm-application</link><description>Hello, 
 
 We are developing a custom board having nrf9160 cellular modem and we are using serial ltm application in it. 
 in serial ltm application there is pin selection available for UART2 in overlay file of nrf9160 
 same way can we configure the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Apr 2024 08:18:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106810/external-memory-spi-pin-configuration-in-serial-ltm-application" /><item><title>RE: external memory SPI pin configuration in serial ltm application</title><link>https://devzone.nordicsemi.com/thread/480127?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 08:18:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da687793-d99f-493c-bc7d-0f364c2d96a5</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;Add the overlay and flash;&amp;nbsp;check the runtime output of the sample to see if it booted correctly.&lt;/p&gt;
&lt;p&gt;You can also check the partition layout to verify that the mcuboot_secondary is located in the &amp;quot;flash_primary&amp;quot; or &amp;quot;external_flash&amp;quot; region.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;to verify correct connections and overlay; please have a look at for instance jesd216 sample and run this on your board.&lt;/p&gt;
&lt;p&gt;&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: external memory SPI pin configuration in serial ltm application</title><link>https://devzone.nordicsemi.com/thread/480126?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 08:11:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:068cf041-78ac-4245-8c48-78d61725be70</guid><dc:creator>Amol_Chor</dc:creator><description>&lt;p&gt;Thanks for quick response !!&lt;/p&gt;
&lt;p&gt;I do not want to modify the application firmware, only configure the project configuration files and overlay files.&lt;br /&gt;Using this I want to achieve the enable the external flash and test using sample app.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/106810/external-memory-spi-pin-configuration-in-serial-ltm-application/480118"]Once you have setup the overlay, you can for instance run a FOTA:[/quote]
&lt;p&gt;(In my region lte-m/nbIoT network not available )&amp;nbsp; so I am not able to test FOTA commands.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/106810/external-memory-spi-pin-configuration-in-serial-ltm-application/480118"]The former attached overlay sets up the mx25r64[/quote]
&lt;p&gt;I am using the same chip as external flash, please let me know the basic configuration on version nrf connect sdk 2.5.0, also sample application (how to validate external memory)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: external memory SPI pin configuration in serial ltm application</title><link>https://devzone.nordicsemi.com/thread/480118?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 07:45:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a09f2d0-142f-41df-9f02-7e6c952a4ac5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Once you have setup the overlay, you can for instance run a FOTA:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/FOTA_AT_commands.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/FOTA_AT_commands.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Amol_Chor"]Is there any specific overlay file to use external flash memory?[/quote]
&lt;p&gt;The former attached overlay sets up the mx25r64 - if you use another flash device, you will need to populate the jedec-id and subsequent parameters per your chosen device.&lt;/p&gt;
&lt;p&gt;You can find some of these parameters by running this sample:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/drivers/jesd216/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/drivers/jesd216/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However; please note that you will need an overlay present matching the board that you&amp;#39;ve chosen. Here&amp;#39;s an example for the nRF52840DK:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.5.99-ncs1/samples/drivers/jesd216/boards/nrf52840dk_nrf52840_spi.overlay"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.5.99-ncs1/samples/drivers/jesd216/boards/nrf52840dk_nrf52840_spi.overlay&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: external memory SPI pin configuration in serial ltm application</title><link>https://devzone.nordicsemi.com/thread/480099?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 06:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7da232e5-e952-4605-ba35-ce95364e4610</guid><dc:creator>Amol_Chor</dc:creator><description>&lt;p&gt;How can we test the connected external flash?&lt;br /&gt;Is there any specific overlay file to use external flash memory?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: external memory SPI pin configuration in serial ltm application</title><link>https://devzone.nordicsemi.com/thread/461281?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2023 13:07:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d8cee99-0ea7-49bd-9ec9-7f814b243dc0</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;Yes, you can add an entry for &amp;amp;spiX overlay, with new pinctrl definitions.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s an example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;arduino_spi: &amp;amp;spi3 {
	compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;arduino_header 16 GPIO_ACTIVE_LOW&amp;gt;; /* D10 */
	pinctrl-0 = &amp;lt;&amp;amp;my_spi3_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;my_spi3_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;arduino_header 16 GPIO_ACTIVE_LOW&amp;gt;, /* D10 */
		   &amp;lt;&amp;amp;gpio0 25 GPIO_ACTIVE_LOW&amp;gt;;
	mx25r64: mx25r6435f@1 {
		compatible = &amp;quot;jedec,spi-nor&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
		reg = &amp;lt;1&amp;gt;;
		spi-max-frequency = &amp;lt;8000000&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 48 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 {
	my_spi3_default: my_spi3_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 13)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MISO, 0, 12)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 11)&amp;gt;;
			nordic,drive-mode = &amp;lt;NRF_DRIVE_H0H1&amp;gt;;
		};
	};

	my_spi3_sleep: my_spi3_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(SPIM_SCK, 0, 13)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MISO, 0, 12)&amp;gt;,
				&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 11)&amp;gt;;
			low-power-enable;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please note that if you use external flash in mcuboot (for dual banking), you will also have to add specific overlay in your mcuboot configuration as well, similar as done in the asset tracker application:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v2.5.0/applications/asset_tracker_v2/child_image/mcuboot/boards"&gt;https://github.com/nrfconnect/sdk-nrf/tree/v2.5.0/applications/asset_tracker_v2/child_image/mcuboot/boards&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></channel></rss>