<?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 mx25r6435f with spi_flash example but with nrf9160dk do not work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96132/use-mx25r6435f-with-spi_flash-example-but-with-nrf9160dk-do-not-work</link><description>hello, 
 I tried to apply modifications to use and test the qspi flash mx25r6435f on the nrf9160dk development board. NCS version 2.2.0. I can not see her. 
 prj 
 
 overlay 
 
 
 main.c 
 
 
 any suggestions? Thanks babos</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jul 2024 06:56:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96132/use-mx25r6435f-with-spi_flash-example-but-with-nrf9160dk-do-not-work" /><item><title>RE: Use mx25r6435f with spi_flash example but with nrf9160dk do not work</title><link>https://devzone.nordicsemi.com/thread/495135?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 06:56:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:677a5d05-4b8f-44e1-84ac-adb8363eaab9</guid><dc:creator>Dekel</dc:creator><description>&lt;p&gt;helpful thread, thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use mx25r6435f with spi_flash example but with nrf9160dk do not work</title><link>https://devzone.nordicsemi.com/thread/408082?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 17:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5791e39-727a-4272-bfe0-e0554618355f</guid><dc:creator>babos</dc:creator><description>&lt;p&gt;hi,&lt;br /&gt;I finally solved it like this:&lt;/p&gt;
&lt;p&gt;1) I programmed the nrf9160dk_nrf52840 section with a simple &amp;#39;hello word&amp;#39; program by adding the following overlay.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/ {
    board-control {
            external_flash_pins_routing: switch-ext-mem-ctrl {
                    compatible = &amp;quot;nordic,nrf9160dk-optional-routing&amp;quot;;
                    control-gpios = &amp;lt;&amp;amp;gpio0 19 GPIO_ACTIVE_HIGH&amp;gt;;
                    status = &amp;quot;okay&amp;quot;;
            };
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;this enables the pin that switches control of the QSPI_Flash from the 52840 side to the 9160 side.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2)&amp;nbsp;I programmed the &amp;#39;spi_flash&amp;#39; example using board revision version &amp;#39;0.14.0&amp;#39; and changed the code slightly in &amp;#39;main.c&amp;#39;:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void main(void)
{
	const uint8_t expected[] = { 0x55, 0xaa, 0x66, 0x99 };
	const size_t len = sizeof(expected);
	uint8_t buf[sizeof(expected)];
	const struct device *flash_dev;
	int rc;
    /* modify */
	flash_dev = DEVICE_DT_GET(DT_NODELABEL(mx25r64));
	/* end modify */

	if (!device_is_ready(flash_dev)) {
		printk(&amp;quot;%s: device not ready.\n&amp;quot;, flash_dev-&amp;gt;name);
		return;
	}
	 .......
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;------&lt;/p&gt;
&lt;p&gt;now it works perfectly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Babos&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use mx25r6435f with spi_flash example but with nrf9160dk do not work</title><link>https://devzone.nordicsemi.com/thread/407502?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2023 10:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ed94290-28f3-4e62-947f-edd89ee2f58b</guid><dc:creator>babos</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;in theory, if I use the same source for the 52840 it should already work.&lt;br /&gt;I try tonight.&lt;br /&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use mx25r6435f with spi_flash example but with nrf9160dk do not work</title><link>https://devzone.nordicsemi.com/thread/407495?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2023 09:57:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d21d7cf-4973-4a43-be80-9eabce48e9cb</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, correct! It needs to be enabled by the board-controller(nrf52840 on the nRF9160-DK). See these links:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80836/extend-flash-size-of-nrf9160---single-slot-application/335345"&gt;RE: Extend flash size of nRF9160 - single slot application&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/75401/full_modem_update-failed-to-get-flash-device-mx25r64/315049"&gt;RE: full_modem_update: &amp;quot;Failed to get flash device: MX25R64&amp;quot;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/boards/arm/nrf9160dk_nrf52840/doc/index.html#nrf9160dk-board-controller-firmware"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/boards/arm/nrf9160dk_nrf52840/doc/index.html#nrf9160dk-board-controller-firmware&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use mx25r6435f with spi_flash example but with nrf9160dk do not work</title><link>https://devzone.nordicsemi.com/thread/407250?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 09:32:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44fadea9-11d2-4c1f-a722-bc63c713d0ee</guid><dc:creator>babos</dc:creator><description>&lt;p&gt;hi,&lt;br /&gt;Yes, I already tried but I have the same error.&lt;br /&gt;I think this could be the problem:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2023_2D00_01_2D00_31-alle-10.28.19.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use mx25r6435f with spi_flash example but with nrf9160dk do not work</title><link>https://devzone.nordicsemi.com/thread/407249?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2023 09:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:394456bb-5528-405e-b406-a45b8351acc2</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;If you are building with west:&lt;/p&gt;
&lt;p&gt;use&amp;nbsp;nrf9160dk_nrf9106_ns@1.0.0&amp;nbsp;as build target&lt;/p&gt;
&lt;p&gt;If you are building with VS Code nRF Connect extension, set revision to 0.14.0:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1108.pastedimage1675157093352v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use mx25r6435f with spi_flash example but with nrf9160dk do not work</title><link>https://devzone.nordicsemi.com/thread/407178?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2023 18:19:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82511884-f721-439d-b62e-91604baffdf7</guid><dc:creator>babos</dc:creator><description>&lt;p&gt;Ok, the 9160dk version is:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;PCA10090 1.0.0, 2020.05&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use mx25r6435f with spi_flash example but with nrf9160dk do not work</title><link>https://devzone.nordicsemi.com/thread/407062?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2023 10:33:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4ae6725-af81-4cbd-8187-3d4c264b67f0</guid><dc:creator>babos</dc:creator><description>&lt;p&gt;okay Sigurd,&lt;br /&gt;I&amp;#39;ll check and then let you know.&lt;br /&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use mx25r6435f with spi_flash example but with nrf9160dk do not work</title><link>https://devzone.nordicsemi.com/thread/407054?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2023 10:11:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db6fac16-f3f6-449d-9a45-7967d266a7f1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Make sure to specify the board revision when building. See this link:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/ug_nrf9160.html#board-revisions"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/ug_nrf9160.html#board-revisions&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use mx25r6435f with spi_flash example but with nrf9160dk do not work</title><link>https://devzone.nordicsemi.com/thread/406978?ContentTypeID=1</link><pubDate>Sun, 29 Jan 2023 18:22:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:602dbd06-abb3-4bc9-8c7d-e7bd7f5ce85e</guid><dc:creator>babos</dc:creator><description>&lt;p&gt;error:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;*** Booting Zephyr OS build v3.2.99-ncs1 ***&lt;br /&gt;MX25R64: device not ready.&lt;br /&gt;[00:00:00.529,632] &amp;lt;err&amp;gt; spi_nor: Device id 00 00 00 does not match config c2 28 17&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>