<?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>nRF9160DK configure external flash to work with nrf9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82623/nrf9160dk-configure-external-flash-to-work-with-nrf9160</link><description>Hello, 
 I have to make the external flash on the nRF9160DK work with the nRF9160. 
 From what I understood, the default settings are that the external flash on the board are connected to the nRF52840 SoC. 
 I am trying to use the AT45 DataFlash driver</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jan 2022 10:35:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82623/nrf9160dk-configure-external-flash-to-work-with-nrf9160" /><item><title>RE: nRF9160DK configure external flash to work with nrf9160</title><link>https://devzone.nordicsemi.com/thread/345860?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 10:35:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ccde62e-6601-4b2e-a971-9f1afa46bd32</guid><dc:creator>Svetlio141</dc:creator><description>[quote userid="15146" url="~/f/nordic-q-a/82623/nrf9160dk-configure-external-flash-to-work-with-nrf9160/345636#345636"]&lt;p&gt;Did you set&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_SPI_NOR=y&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I hadn&amp;#39;t set this. Now that I did, I established communication with the flash and everything is working.&lt;/p&gt;
&lt;p&gt;Thank you for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160DK configure external flash to work with nrf9160</title><link>https://devzone.nordicsemi.com/thread/345636?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 11:27:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5843f120-fcfa-44c3-ad03-30df86c61fce</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Did you set&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_SPI_NOR=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;in prj.conf as well?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If it does not work, can you upload the spi_flash sample with the changes you did ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160DK configure external flash to work with nrf9160</title><link>https://devzone.nordicsemi.com/thread/344792?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 13:07:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e3b18ba-49ed-416e-85dd-bec7d428c0a4</guid><dc:creator>Svetlio141</dc:creator><description>&lt;p&gt;Thank you for the remark,&lt;/p&gt;
&lt;p&gt;I changed the specifications to search for the&amp;nbsp;MX25R64.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;FLASH_DEVICE&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;DT_LABEL&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;DT_INST&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, jedec_spi_nor))&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Still when I run the code I get:&lt;br /&gt;*** Booting Zephyr OS build v2.6.99-ncs1 ***&lt;br /&gt;DataFlash sample on nrf9160dk_nrf9160&lt;br /&gt;Device MX25R64 not found!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Itried with the sample code for spi_flash too and get the same result that the&amp;nbsp;&lt;span&gt;MX25R64 is not found.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I checked if the following overlay configuration:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;amp;external_flash_pins_routing {&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt;};&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; for the nRF52 is present in the zephyr.dts file after the build, and it is.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also checked the zephyr.dts of the nRF9160dk and the overlay file which I included there is also present:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;amp;spi3 {&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; sck-pin = &amp;lt;13&amp;gt;;&lt;br /&gt; mosi-pin = &amp;lt;11&amp;gt;;&lt;br /&gt; miso-pin = &amp;lt;12&amp;gt;;&lt;br /&gt; cs-gpios = &amp;lt;&amp;amp;gpio0 25 GPIO_ACTIVE_LOW&amp;gt;;&lt;br /&gt; mx25r64: mx25r6435f@0 {&lt;br /&gt; compatible = &amp;quot;jedec,spi-nor&amp;quot;;&lt;br /&gt; reg = &amp;lt;0&amp;gt;;&lt;br /&gt; spi-max-frequency = &amp;lt;8000000&amp;gt;;&lt;br /&gt; label = &amp;quot;MX25R64&amp;quot;;&lt;br /&gt; jedec-id = [c2 28 17];&lt;br /&gt; sfdp-bfp = [&lt;br /&gt; e5 20 f1 ff ff ff ff 03 44 eb 08 6b 08 3b 04 bb&lt;br /&gt; ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52&lt;br /&gt; 10 d8 00 ff 23 72 f5 00 82 ed 04 cc 44 83 68 44&lt;br /&gt; 30 b0 30 b0 f7 c4 d5 5c 00 be 29 ff f0 d0 ff ff&lt;br /&gt; ];&lt;br /&gt; size = &amp;lt;67108864&amp;gt;;&lt;br /&gt; has-dpd;&lt;br /&gt; t-enter-dpd = &amp;lt;10000&amp;gt;;&lt;br /&gt; t-exit-dpd = &amp;lt;35000&amp;gt;;&lt;br /&gt; };&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160DK configure external flash to work with nrf9160</title><link>https://devzone.nordicsemi.com/thread/344552?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 10:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea06ac88-09b9-4d94-97a6-3bcb1998bf25</guid><dc:creator>Sigurd</dc:creator><description>[quote user=""]I am trying to use the&amp;nbsp;AT45 DataFlash driver sample code. It says that it is tested for the nRF9160DK.&amp;nbsp;[/quote]
&lt;p&gt;I see now that you are trying to use the &lt;span&gt;AT45&amp;nbsp;flash.&amp;nbsp;&lt;/span&gt;This AT45 Flash is not the one that is on the nRF9160DK board. I believe an external AT45 board is needed for this &lt;span&gt;spi_flash_at45&amp;nbsp;&lt;/span&gt;sample.&lt;/p&gt;
&lt;p&gt;On the nRF9160DK we use the&amp;nbsp;mx25r6435f flash.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/external_memory.html"&gt;https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/external_memory.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.0-ncs1/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_common_0_14_0.dtsi#L42"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.0-ncs1/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_common_0_14_0.dtsi#L42&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160DK configure external flash to work with nrf9160</title><link>https://devzone.nordicsemi.com/thread/344499?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 08:06:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c223a2a-f465-49e1-b6f3-5821a6249cba</guid><dc:creator>Svetlio141</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tried powering the board on and off but it still doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;I specified the revision as you instructed but this doesn&amp;#39;t work too.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I build my project on the nRF9160 I can only use the&amp;nbsp;&amp;nbsp;&lt;span&gt;9160dk_nrf9160 and not the&amp;nbsp;9160dk_nrf9160_ns. When I try to use the _ns I get this error when building:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[78/184] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;c:\...........\ncs\v1.7.0\toolchain\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;c:\..........\tests\spi_flash_at45\build&amp;#39;&lt;br /&gt;The terminal process terminated with exit code: 1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When I build it without the _ns It builds and I can flash the device, but then I get the following error:&lt;/span&gt;&lt;span&gt;&lt;br /&gt;[00:00:00.384,643] &amp;lt;err&amp;gt; spi_flash_at45: Wrong JEDEC ID: 00 00 00, expected: 1F 27 01&lt;br /&gt;*** Booting Zephyr OS build v2.6.99-ncs1 ***&lt;br /&gt;DataFlash sample on nrf9160dk_nrf9160&lt;br /&gt;Device DATAFLASH_0 not found!&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160DK configure external flash to work with nrf9160</title><link>https://devzone.nordicsemi.com/thread/344350?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 12:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a894a0e3-139f-4c2c-a0c5-200ea0a00fd9</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Svetlio141"]&lt;p&gt;This one compiles and I flash it, but after that I still don&amp;#39;t find the flash on the nrf9160.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Try powering the board off/on after flashing the nRF52840 with this firmware.&lt;/p&gt;
&lt;p&gt;Please also make sure that you&amp;nbsp;&lt;span&gt;specify the board revision when building&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/nrf/ug_nrf9160.html#board-revisions"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.7.0/nrf/ug_nrf9160.html#board-revisions&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt;DBOARD&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;nrf9160dk_nrf9160_ns&lt;/span&gt;&lt;span&gt;@&lt;/span&gt;&lt;span&gt;1.0.0&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt;DBOARD&lt;/span&gt;&lt;span&gt;=nrf9160dk_nrf52840&lt;/span&gt;&lt;span&gt;@&lt;/span&gt;&lt;span&gt;1.0.0&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160DK configure external flash to work with nrf9160</title><link>https://devzone.nordicsemi.com/thread/343697?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 14:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fde421ab-abae-4a05-b32f-5eb2364f0c10</guid><dc:creator>Svetlio141</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I saw this but when I try to&amp;nbsp;build it I get the following error regarding the overlay file:&lt;/p&gt;
&lt;p&gt;Error: c:\Users\SvetoslavAnev\tests\nrf52\build\nrf9160dk_nrf52840.dts.pre.tmp:534.17-18 syntax error&lt;br /&gt;FATAL ERROR: Unable to parse input tree&lt;br /&gt;CMake Error at C:\Users\SvetoslavAnev\ncs\v1.7.0\zephyr\cmake\dts.cmake:219 (message):&lt;br /&gt; command failed with return code: 1&lt;br /&gt;Call Stack (most recent call first):&lt;/p&gt;
&lt;p&gt;this is the overlay file I write as given by the example:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;amp;external_flash_pins_routing {&lt;br /&gt;status = &amp;quot;okay&amp;quot;;&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also tried with this one that I found:&lt;/p&gt;
&lt;p&gt;/ {&lt;br /&gt; board-control {&lt;br /&gt; external_flash_pins_routing: switch-ext-mem-ctrl {&lt;br /&gt; compatible = &amp;quot;nordic,nrf9160dk-optional-routing&amp;quot;;&lt;br /&gt; control-gpios = &amp;lt;&amp;amp;gpio0 19 GPIO_ACTIVE_HIGH&amp;gt;;&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; };&lt;br /&gt; };&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;This one compiles and I flash it, but after that I still don&amp;#39;t find the flash on the nrf9160.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And also do I need to connect something physically for the connection with the 64MB memory on the board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160DK configure external flash to work with nrf9160</title><link>https://devzone.nordicsemi.com/thread/343454?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 15:27:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bc39622-a1f8-4387-9827-7c2f40c337b5</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]The problem is I don&amp;#39;t know what configurations I need to put to this file in order to make the needed configurations.[/quote]
&lt;p&gt;This should be explained in detail in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/75401/full_modem_update-failed-to-get-flash-device-mx25r64/315049#315049"&gt;this post&lt;/a&gt;. You need to change the board control configurations to the nrf52840 on the DK. You can use the hello_world sample for that as explained in the post, and create an overlay as mentioned. If anything is unclear, just ask.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>