<?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>Integrating external flash memory on nRF9160DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82767/integrating-external-flash-memory-on-nrf9160dk</link><description>Hi again Nordic, I need some pointers. H&amp;#229;kon, a very patient man here, sent me an example code repo of usage of external flash memory on the nRF9160DK. I&amp;#39;ve tried the sample and it builds, however, it resets in a loop with this error: The sample used</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Dec 2021 11:42:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82767/integrating-external-flash-memory-on-nrf9160dk" /><item><title>RE: Integrating external flash memory on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/344335?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 11:42:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf1121ee-72bf-4e35-97f0-9fb964cfad40</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Ah, ok. That explains everything, older versions of the nRF9160 DK&amp;#39;s does not have external flash. No worry, I&amp;#39;m glad you found the cause of the issues&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating external flash memory on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/344333?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 11:39:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb144e16-3889-432a-8ff7-de7bb0e9bbee</guid><dc:creator>nWre</dc:creator><description>&lt;p&gt;Hi Simon. I&amp;#39;m embarrassed. I have an older version of the nrf9160DK. I&amp;#39;m putting in an order for a new one and getting a new brain for myself while I&amp;#39;m at it. Sorry for wasting your time, hopefully it will help someone else.&lt;br /&gt;&lt;br /&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating external flash memory on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/344332?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 11:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35aaab32-7fb2-4007-98fa-9265669887b9</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Hmm.. That&amp;#39;s interesting&lt;/p&gt;
&lt;p&gt;Could you test with the hex files as well?&lt;/p&gt;
&lt;p&gt;What nRF9160 DK version do you have?&lt;/p&gt;
&lt;p&gt;I created another sample using the nRF9160 DK&amp;#39;s external flash earlier,&amp;nbsp;&lt;a href="https://github.com/simon-iversen/sdk-nrf/tree/ext_flash_mcuboot_91dk/samples/nrf9160/http_update/application_update#testing"&gt;https://github.com/simon-iversen/sdk-nrf/tree/ext_flash_mcuboot_91dk/samples/nrf9160/http_update/application_update#testing&lt;/a&gt;&amp;nbsp;are you able to get that to work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating external flash memory on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/344325?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 11:15:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b19c2b25-9996-42c8-9895-aba25f072279</guid><dc:creator>nWre</dc:creator><description>&lt;p&gt;Hi Simon! &lt;br /&gt;&lt;br /&gt;I tried the steps but still the same error. I&amp;#39;ll describe what I did.&lt;br /&gt;&lt;br /&gt;I turned board off, switched to nrf52840 on the board, started it and flashed it with hello world and the overlay file in src folder of the hello world sample. I then switched back to nrf9160 (without powering the board off) and flashed the littlefs sample from the thread you linked (that I made, the zip sent by H&amp;aring;kon at the end was the sample I assumed you meant). When flashing littlefs I get the same repeating error as I posted. I then turned the board off and on again on the switch, same error. I reflashed it, same error. Did I missunderstand a step?&lt;br /&gt;&lt;br /&gt;Thank you for helping!&lt;br /&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Integrating external flash memory on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/344138?ContentTypeID=1</link><pubDate>Fri, 17 Dec 2021 12:24:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8c67712-03b5-4237-ae01-e64f4d3198a3</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I was not able to open your attached sample, but I guess it is the same as this one &lt;a href="https://devzone.nordicsemi.com/support-private/support/280236#permalink=716890"&gt;https://devzone.nordicsemi.com/support-private/support/280236#permalink=716890&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;First I programmed the hello world sample with an overlay file like &lt;a href="https://github.com/simon-iversen/sdk-nrf/blob/ext_flash_mcuboot_91dk/samples/connect_ext_flash_to_9160/nrf9160dk_nrf52840.overlay"&gt;this&lt;/a&gt; to &lt;strong&gt;nrf9160dk_nrf52840&lt;/strong&gt; (set SW10 to &amp;#39;nRF52&amp;#39; first)
&lt;ul&gt;
&lt;li&gt;You can also try with this file:&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1184.nrf9160dk_5F00_nrf52840.hex"&gt;devzone.nordicsemi.com/.../1184.nrf9160dk_5F00_nrf52840.hex&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Then I&amp;nbsp;programmed&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support-private/support/280236#permalink=716890"&gt;this&lt;/a&gt; sample&amp;nbsp;to the nRF9160 DK v1.0.0 using the board &lt;strong&gt;nrf9160dk_nrf9160_ns&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;You can also use this file:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4212.nrf9160dk_5F00_nrf9160_5F00_ns.hex"&gt;devzone.nordicsemi.com/.../4212.nrf9160dk_5F00_nrf9160_5F00_ns.hex&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;Then turn your board off and on.&lt;/strong&gt;&lt;/span&gt; Initially it failed for me, but after powercycling, it worked fine.&lt;/li&gt;
&lt;li&gt;You should then get the following output in the terminal:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.6.99-ncs1  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0x10000
*** Booting Zephyr OS build v2.6.99-ncs1  ***
Flash regions           Domain          Permissions
00 03 0x00000 0x20000   Secure          rwxl
04 31 0x20000 0x100000  Non-Secure      rwxl

Non-secure callable region 0 placed in flash region 3 with size 32.

SRAM region             Domain          Permissions
00 07 0x00000 0x10000   Secure          rwxl
08 31 0x10000 0x40000   Non-Secure      rwxl

Peripheral              Domain          Status
00 NRF_P0               Non-Secure      OK
01 NRF_CLOCK            Non-Secure      OK
02 NRF_RTC0             Non-Secure      OK
03 NRF_RTC1             Non-Secure      OK
04 NRF_NVMC             Non-Secure      OK
05 NRF_UARTE1           Non-Secure      OK
06 NRF_UARTE2           Secure          SKIP
07 NRF_TWIM2            Non-Secure      OK
08 NRF_SPIM3            Non-Secure      OK
09 NRF_TIMER0           Non-Secure      OK
10 NRF_TIMER1           Non-Secure      OK
11 NRF_TIMER2           Non-Secure      OK
12 NRF_SAADC            Non-Secure      OK
13 NRF_PWM0             Non-Secure      OK
14 NRF_PWM1             Non-Secure      OK
15 NRF_PWM2             Non-Secure      OK
16 NRF_PWM3             Non-Secure      OK
17 NRF_WDT              Non-Secure      OK
18 NRF_IPC              Non-Secure      OK
19 NRF_VMC              Non-Secure      OK
20 NRF_FPU              Non-Secure      OK
21 NRF_EGU1             Non-Secure      OK
22 NRF_EGU2             Non-Secure      OK
23 NRF_DPPIC            Non-Secure      OK
24 NRF_REGULATORS       Non-Secure      OK
25 NRF_PDM              Non-Secure      OK
26 NRF_I2S              Non-Secure      OK
27 NRF_GPIOTE1          Non-Secure      OK

SPM: NS image at 0x20200
SPM: NS MSP at 0x200161e8
SPM: NS reset vector at 0x22c05
SPM: prepare to jump to Non-Secure image.
*** Booting Zephyr OS build v2.6.99-ncs1  ***
Area 7 at 0xea000 on MX25R64 for 90112 bytes
/lfs mount: 0
/lfs: bsize = 16 ; frsize = 4096 ; blocks = 22 ; bfree = 20
/lfs/boot_count stat: 0
        fn &amp;#39;boot_count&amp;#39; siz 4
/lfs/boot_count read count 12: 4
/lfs/boot_count seek start: 0
/lfs/boot_count write new boot count 13: 4
/lfs/boot_count close: 0
/lfs opendir: 0
  F 4 boot_count
End of files
/lfs unmount: 0
[00:00:00.211,547] &amp;lt;inf&amp;gt; littlefs: LittleFS version 2.2, disk version 2.0
[00:00:00.211,791] &amp;lt;inf&amp;gt; littlefs: FS at MX25R64:0xea000 is 22 0x1000-byte blocks with 512 cycle
[00:00:00.211,822] &amp;lt;inf&amp;gt; littlefs: sizes: rd 16 ; pr 16 ; ca 64 ; la 32
[00:00:00.217,742] &amp;lt;inf&amp;gt; littlefs: /lfs mounted
[00:00:00.262,145] &amp;lt;inf&amp;gt; littlefs: /lfs unmounted
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please get back to me if it still doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>