<?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>nRF9161 DK SPI Flash example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116538/nrf9161-dk-spi-flash-example</link><description>I&amp;#39;m looking for a beginner&amp;#39;s guide to setting up external flash on the nRF9161 DK. I saw nRF Cloud Multi-service as an example, but its docs did not explain what was needed hardware-wise to set up the external flash memory (I found this ). Basically,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 25 Jan 2025 15:45:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116538/nrf9161-dk-spi-flash-example" /><item><title>RE: nRF9161 DK SPI Flash example</title><link>https://devzone.nordicsemi.com/thread/520077?ContentTypeID=1</link><pubDate>Sat, 25 Jan 2025 15:45:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5067b5ac-0c15-41ee-9680-d8985a1577c9</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;We can close this as completed.&amp;nbsp;It ended up being a wiring issue (contact) with one of the pin connections being just a tad loose. Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 DK SPI Flash example</title><link>https://devzone.nordicsemi.com/thread/520013?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2025 15:09:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a735544-edf3-454f-aa69-f431f32ebd12</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Can you try to do logic trace of all the pins?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 DK SPI Flash example</title><link>https://devzone.nordicsemi.com/thread/518758?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2025 05:47:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30c37624-2e4d-444e-b307-00a5de1604c3</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;No dice. Bought this:&lt;br /&gt;&lt;a id="" href="https://www.amazon.com/dp/B0D3WY8DR6"&gt;https://www.amazon.com/dp/B0D3WY8DR6&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;... which explicitly states microSDHC support, and I still get the same &amp;quot;Card does not support CMD8, assuming legacy card&amp;quot; -- I tried&amp;nbsp;variations of that overlay file like:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi3 {
    gd25wb256: gd25wb256e3ir@1 {
        status = &amp;quot;disabled&amp;quot;;
    };
    
    status = &amp;quot;okay&amp;quot;;
    pinctrl-0 = &amp;lt;&amp;amp;spi3_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;spi3_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
    cs-gpios = &amp;lt;&amp;amp;gpio0 10 GPIO_ACTIVE_LOW&amp;gt;;
    
    sdhc0: sdhc@0 {
        compatible = &amp;quot;zephyr,sdhc-spi-slot&amp;quot;;
        reg = &amp;lt;0&amp;gt;;
        status = &amp;quot;okay&amp;quot;;
        mmc {
            compatible = &amp;quot;zephyr,sdmmc-disk&amp;quot;;
            status = &amp;quot;okay&amp;quot;;
        };
        spi-max-frequency = &amp;lt;1000000&amp;gt;;
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I tried fiddling with the spi-max-frequency as well. Oddly, it works with my nRF9160 DK, but I can&amp;#39;t for the life of me get this working on the 9161.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 DK SPI Flash example</title><link>https://devzone.nordicsemi.com/thread/518145?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2025 12:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d1aed1e-78ce-4e52-95e8-f0b6525b2c58</guid><dc:creator>Hakon</dc:creator><description>[quote user="nrao32"]I: Card does not support CMD8, assuming legacy card[/quote]
&lt;p&gt;Yes, this card is probably not SDHC compatible. I had the same issue, so I changed the SD card to a newer one. I use a SanDisk Ultra 16 GB SD card.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 DK SPI Flash example</title><link>https://devzone.nordicsemi.com/thread/518041?ContentTypeID=1</link><pubDate>Sat, 11 Jan 2025 06:04:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0263e053-b18d-4b6b-b161-c2df95fbac45</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;Hi Hakon, can you please let me know what SD card module / SD card you are using for your test? I just get the following error when I run the sample:&lt;br /&gt;&lt;br /&gt;*** Booting nRF Connect SDK v2.9.0-7787b2649840 ***&lt;br /&gt;*** Using Zephyr OS v3.7.99-1f8f3dc29142 ***&lt;br /&gt;Sample program to r/w files on littlefs&lt;br /&gt;I: LittleFS version 2.9, disk version 2.1&lt;br /&gt;I: Card does not support CMD8, assuming legacy card&lt;br /&gt;E: Storage init ERROR!&lt;br /&gt;E: fs mount error (-134)&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve tried several different SD card modules and different SD cards. I tried the littlefs sample (formatted the SD card with &lt;strong&gt;lfs&amp;nbsp;&lt;/strong&gt;tool) and the fat_fs sample (formatted the SD card as FAT32). I&amp;nbsp;have been trying for days. Any pointers would be appreciated! Thanks again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 DK SPI Flash example</title><link>https://devzone.nordicsemi.com/thread/515131?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 13:55:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:967cd62f-0b81-4d07-a904-7d8237d0208f</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;Great. I will give this a go. I&amp;#39;m not sure if I&amp;#39;ll be able to reformat this particular SD card chip I&amp;#39;ve got, as it comes preformatted with FAT fs, which seems to be a bit more complex to set up based on the nRF fatfs sample, however I will try. Thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 DK SPI Flash example</title><link>https://devzone.nordicsemi.com/thread/515065?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 10:06:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8248412-a0af-4f86-8cbc-3ded9fdae136</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;You can check this &lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf9161_dk/page/UG/nrf91_DK/hw_description/external_memory.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf9161_dk/page/UG/nrf91_DK/hw_description/external_memory.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But use P0.10 for CS pin instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 DK SPI Flash example</title><link>https://devzone.nordicsemi.com/thread/514971?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2024 23:10:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bd5e7d3-7738-4616-815e-23d1de6e4182</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;Perfect timing! Thank you, Hakon! Can you please let me know what you mean by &amp;quot;arduino pins for SPI&amp;quot;? Which pins are those on the board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 DK SPI Flash example</title><link>https://devzone.nordicsemi.com/thread/514907?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2024 14:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e24bd495-8e46-43c8-9f85-26a95e8be9aa</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;It is taking some time to port this sample to nrf9161, but interfacing the SD card with SPI works now. You can add the overlay to the sample and build with prj_blk.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi3 {
    gd25wb256: gd25wb256e3ir@1 {
        status = &amp;quot;disabled&amp;quot;;
    };
    sdhc0: sdhc@0 {
            compatible = &amp;quot;zephyr,sdhc-spi-slot&amp;quot;;
            reg = &amp;lt;0&amp;gt;;
            status = &amp;quot;okay&amp;quot;;
            mmc {
                compatible = &amp;quot;zephyr,sdmmc-disk&amp;quot;;
                status = &amp;quot;okay&amp;quot;;
            };
            spi-max-frequency = &amp;lt;1000000&amp;gt;;
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;then use the arduino pins for SPI. You can just ask if you need more help after this. I will let you know when I&amp;#39;m done with the sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 DK SPI Flash example</title><link>https://devzone.nordicsemi.com/thread/512730?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2024 11:23:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8609e953-cb75-4134-bef1-316dcc4c08a8</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hi again, I have been out of office unexpectedly for a few days now. Because of this I have not had time to look into this. I will try to get some time for this now. In the mean time, you can try looking at &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/subsys/fs/littlefs"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/subsys/fs/littlefs&lt;/a&gt; and use the prj_blk.conf to build for SD card build config.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 DK SPI Flash example</title><link>https://devzone.nordicsemi.com/thread/511667?ContentTypeID=1</link><pubDate>Fri, 22 Nov 2024 13:29:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d29cfaf2-ca28-4667-8924-7eb96e34aca2</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;I&amp;#39;m in the process of setting up a sample. I will try to finish this by the end of&amp;nbsp; the week.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 DK SPI Flash example</title><link>https://devzone.nordicsemi.com/thread/511398?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2024 03:06:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:566557e1-33c3-4a91-9b8b-251f886d2e7e</guid><dc:creator>nrao32</dc:creator><description>&lt;p&gt;Thank you, Hakon, I look forward to more information on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9161 DK SPI Flash example</title><link>https://devzone.nordicsemi.com/thread/511364?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2024 16:18:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:357ab18d-33c3-422e-a855-b6cec110612d</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""](I found &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/cellular/nrf_cloud_multi_service/README.html#external_flash"&gt;this&lt;/a&gt;)[/quote]
&lt;p&gt;that one is for nrf9160 dk. Nrf9161 uses a different flash chip. There are a lot of samples that show how to setup this, including asset tracker v2. I can try to help you setup this tomorrow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>