<?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 the nRF9160 DK onboard external flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76723/how-to-use-the-nrf9160-dk-onboard-external-flash</link><description>Hello, 
 I have an nRF9160 DK board (I believe the version is PCA10090 1.0.0) and would like to use the external flash that comes with this board. 
 Upon inspection, this flash chip is the MX25R6435F from MX25R6435F. 
 I am using the SPIM driver from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Jun 2021 06:07:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76723/how-to-use-the-nrf9160-dk-onboard-external-flash" /><item><title>RE: How to use the nRF9160 DK onboard external flash</title><link>https://devzone.nordicsemi.com/thread/317373?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 06:07:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44c03572-5729-4b58-84ca-9877a83968af</guid><dc:creator>NelsonGoncalves</dc:creator><description>&lt;p&gt;Hello Hakon,&lt;/p&gt;
&lt;p&gt;Thanks. I knew I had to flash the other processor, but I could not find the instructions to do so.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Nelson&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use the nRF9160 DK onboard external flash</title><link>https://devzone.nordicsemi.com/thread/317242?ContentTypeID=1</link><pubDate>Fri, 25 Jun 2021 12:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62cd0989-9f4d-419a-9473-a38621260992</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;As you have found, the default routing of the flash is to the nRF52840 board controller.&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;On the back of the DK board it says that there is an analogue switch for sharing the flash between the nRF9160 and the nRF52. But I&lt;/p&gt;
&lt;p&gt;cannot understand how to make sure that the flash chip is being used by the nRF9160 instead of the nRF52. The Hardware Guide says&lt;/p&gt;
&lt;p&gt;&amp;quot;Two analog switches are used to control the signals between the nRF9160 and the external memory.&amp;nbsp;The switches are controlled by P0.19 of nRF52840.&amp;quot;&lt;/p&gt;
&lt;p&gt;How can I make sure the analogue switches are set to use the external flash chip with the nRF9160 ?&lt;/p&gt;[/quote]
&lt;p&gt;If you create a small piece of fw for the nRF52840, that sets this pin active, you should be able to interface the flash with the nRF9160.&lt;/p&gt;
&lt;p&gt;This is the DTS configurations available:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/zephyr/boards/arm/nrf9160dk_nrf52840/doc/index.html#board-controller-firmware"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/zephyr/boards/arm/nrf9160dk_nrf52840/doc/index.html#board-controller-firmware&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What you can do is to go to zephyr/samples/hello_world (copy this to &amp;quot;board_controller_nrf52840&amp;quot; for instance), and then you create the file nrf9160dk_nrf52840.overlay containing this (and other options, if you&amp;#39;d like!):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;external_flash_pins_routing {
	status = &amp;quot;okay&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can configure &amp;amp; build using west, by appending the @version :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b nrf9160dk_nrf52840@0.14.0&lt;/pre&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&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>