<?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>Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119606/using-sd-card-on-nrf9161-dk</link><description>Hello, we&amp;#39;ve a nRF9161 DK board a we saw on the back side a footprint for mounting an SD card holder and we found the SD card holder component in the BOM. 
 Unfortunately there is no mention about the usage of the SD card in for the nRF9161 DK anywhere</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Jul 2025 09:39:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119606/using-sd-card-on-nrf9161-dk" /><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/541765?ContentTypeID=1</link><pubDate>Tue, 08 Jul 2025 09:39:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57e757b8-b03b-4b1b-af58-33a1a733f7f6</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Noted,&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t promise anything but I will see if I can get it compiling. But yeah, since I guess both Edvin and I missed that fact that there&amp;#39;s no USB controller, then the best way might still be to base it on the usb/mass implementation and dissect out the USB parts and implement the SPI solution in the resources I posted.&lt;/p&gt;
&lt;p&gt;There&amp;#39;s no other samples that might be working as a foundation within the SDK.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/541745?ContentTypeID=1</link><pubDate>Tue, 08 Jul 2025 08:47:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f47c4745-0a85-4909-81ab-a0742726e853</guid><dc:creator>JOEBRE</dc:creator><description>&lt;p&gt;No, as stated initially, I just need to have SD card running with LittleFS on my application. My initial starting point was the format sample ... which was building and running correctly on nRF9161 target with exception of the LittleFS stuff ... then Edvin told me to use the mass sample as starting point and build it for nRF9161... I personally just need the SD card working on whatever sample which is buildable for&amp;nbsp; the nRF9161 target.&lt;/p&gt;
&lt;p&gt;Joel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/541739?ContentTypeID=1</link><pubDate>Tue, 08 Jul 2025 08:37:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb499156-5a23-421a-9105-4ea87039b77a</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Happy to help,&lt;/p&gt;
[quote user="JOEBRE"]It remains unclear to me how this particular example can successfully build for a nRF9161 target which do not has a USB controller on chip.&amp;nbsp;[/quote]
&lt;p&gt;Hmm... If you aim to use the SD card through USB in any ways, I guess the answer is that it won&amp;#39;t work, but if you intend to use the SD card through SPI only as shown in some of the links below it should work. The usb/mass sample is a Zephyr sample that intends to show both how to use it as a USB storage device (and thus also with the SD card overlay to be used as something where you can load/unload data to the SD card with USB), whereas the SPI SD card configuration is just to set up an SPI communication to read/write to the SD card. That&amp;#39;s at least how I understand it.&lt;/p&gt;
&lt;p&gt;You may find some more information on the Zephyr discord forums w.r.t this sample. Since it&amp;#39;s a Zephyr sample, the support for the sample is somewhat limited (such as it not building out of the box due to that nRF Connect SDK uses Partition Manager and Zephyr does not).&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/541728?ContentTypeID=1</link><pubDate>Tue, 08 Jul 2025 07:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:625489ff-ad44-4ba9-9a8c-bbb102215c63</guid><dc:creator>JOEBRE</dc:creator><description>&lt;p&gt;Many thanks for the detailed procedure... It remains unclear to me how this particular example can successfully build for a nRF9161 target which do not has a USB controller on chip.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Joel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/541670?ContentTypeID=1</link><pubDate>Mon, 07 Jul 2025 15:57:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ed45cab-478c-4882-9310-8b216e99cad7</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi Joel,&lt;/p&gt;
&lt;p&gt;Edvin is out of office on PTO so I&amp;#39;ll be handling this case for this week (lets hope we can resolve it by Friday before I also leave for PTO..).&lt;/p&gt;
&lt;p&gt;If I understand you correct, what you&amp;#39;re missing now is to port the solution so that it works on a 9161dk, right?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If so, then what we&amp;#39;re missing&amp;nbsp;&lt;em&gt;should&lt;/em&gt; be the following.&lt;/p&gt;
&lt;p&gt;You&amp;#39;re correct that this specific configuration maps to the SPI flash, which is due to the nRF52840DK not having a SD card reader on board so it requires the additional hardware mentioned in the build command here:&lt;br /&gt;&lt;br /&gt;&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/pastedimage1751902160750v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But lets stick to making this sample work for the nRF9160DK before we look into the SD card implenation (divide and conquer the problem).&lt;/p&gt;
&lt;p&gt;It also mentions the additional config in the last build argument and since you&amp;#39;re working with NCS, you still need to have a pm_static.yml for your partitioning as well as an overlay tailored to the board you&amp;#39;re using, which brings us to the last problem.&lt;/p&gt;
&lt;p&gt;Edvin says that you can copy the nrf52840 related overlay and rename it for the board you&amp;#39;re building for, which is correct, but you also have to make a modification to the external flash device that you&amp;#39;re using. The nRF9161&amp;nbsp; uses the&amp;nbsp;&lt;span&gt;GD25WB256 flash, which you can see in an overlay file here:&amp;nbsp;&lt;a href="https://github.com/NordicDeveloperAcademy/ncs-inter/blob/main/l9/l9_e3_sol/spi/app_gd.overlay"&gt;https://github.com/NordicDeveloperAcademy/ncs-inter/blob/main/l9/l9_e3_sol/spi/app_gd.overlay&lt;/a&gt;&amp;nbsp;and/or in any cellular samples in nrf/samples where the external flash is enabled or the board files within zephyr/boards/nordic/ in the SDK.&lt;br /&gt;&lt;br /&gt;I.e change your overlay (which should be) for&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrf52840dk_nrf52840.overlay:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2019 Peter Bigot Consulting, LLC
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/delete-node/ &amp;amp;storage_partition;

&amp;amp;mx25r64 {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		storage_partition: partition@0 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x00000000 0x00020000&amp;gt;;
		};
	};
};

/ {
	msc_disk0 {
		compatible = &amp;quot;zephyr,flash-disk&amp;quot;;
		partition = &amp;lt;&amp;amp;storage_partition&amp;gt;;
		disk-name = &amp;quot;NAND&amp;quot;;
		cache-size = &amp;lt;4096&amp;gt;;
	};
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;to&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf9160dk_nrf9160.overlay (or the target you&amp;#39;re building for as listed:&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1751902626914v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and do something like (I&amp;#39;ve merged the app_gd.overlay and the 52840 overlay, there might be something wrong so check when building if it behaves as expected)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2019 Peter Bigot Consulting, LLC
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/delete-node/ &amp;amp;storage_partition;

&amp;amp;gd25wb256 {
	status = &amp;quot;okay&amp;quot;;
};

/ {
	chosen {
		nordic,pm-ext-flash = &amp;amp;gd25wb256;
	};
};


&amp;amp;gd25wb256 {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		storage_partition: partition@0 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x00000000 0x00020000&amp;gt;;
		};
	};
};

/ {
	msc_disk0 {
		compatible = &amp;quot;zephyr,flash-disk&amp;quot;;
		partition = &amp;lt;&amp;amp;storage_partition&amp;gt;;
		disk-name = &amp;quot;NAND&amp;quot;;
		cache-size = &amp;lt;4096&amp;gt;;
	};
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After we&amp;#39;ve succeeded with this, we should have a emulated SD card in SPI external flash for the 9161DK which is good, because now we now that the sample works and compiles for the nRF9160DK and we can exclude quite a bit of uncertainties. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The next task is to port it to an SD card.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To do this we need some more modifications (or additional hardware). &amp;quot;&lt;em&gt;west&lt;span&gt; &lt;/span&gt;build&lt;span&gt; &lt;/span&gt;-b&lt;span&gt; &lt;/span&gt;nrf52840dk/nrf52840&lt;span&gt; &lt;/span&gt;--shield&lt;span&gt; &lt;/span&gt;waveshare_epaper_gdeh0154a07&lt;span&gt; &lt;/span&gt;samples/subsys/usb/mass&lt;span&gt; &lt;/span&gt;--&lt;span&gt; &lt;/span&gt;-DCONFIG_APP_MSC_STORAGE_SDCARD&lt;span&gt;=&lt;/span&gt;y&amp;quot;&amp;nbsp;&lt;/em&gt;handles the extra hardware since it uses a shield that has an SD card reader, and it adds the extra configuration.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In addition&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/usb/mass/README.html#sd_card_example"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/usb/mass/README.html#sd_card_example&lt;/a&gt;&amp;nbsp;takes us to modifications that you need to do yourself, i.e&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/services/storage/disk/access.html#disk-access-api"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/services/storage/disk/access.html#disk-access-api&lt;/a&gt;&amp;nbsp;and to add a SPI (I assume that this is the peripheral you will be using) that can do SD card&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/services/storage/disk/access.html#disk-access-api"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/services/storage/disk/access.html#disk-access-api&lt;/a&gt;. An example can be seen in the latter link for how to set this up:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi1 {
        status = &amp;quot;okay&amp;quot;;
        cs-gpios = &amp;lt;&amp;amp;porta 27 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;;
                    disk-name = &amp;quot;SD&amp;quot;;
                    status = &amp;quot;okay&amp;quot;;
                };
                spi-max-frequency = &amp;lt;24000000&amp;gt;;
        };
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/541556?ContentTypeID=1</link><pubDate>Mon, 07 Jul 2025 06:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d5e0821-e7d9-4e2e-8ad8-7071d3e6fd46</guid><dc:creator>JOEBRE</dc:creator><description>&lt;p&gt;Ok, of course this makes the sample building with success ... but&amp;nbsp;nrf52840dk_nrf52840.overlay&amp;nbsp; maps&amp;nbsp;storage_partition onto the mx25r64 serial SPI flash ... not to the SD card .&lt;/p&gt;
&lt;p&gt;Which changes are needed to set&amp;nbsp;storage_partition being pointing to the SD card ?&lt;/p&gt;
&lt;p&gt;Joel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/541531?ContentTypeID=1</link><pubDate>Sat, 05 Jul 2025 22:15:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cb57f21-97ce-4e02-909a-9d7867c1faac</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;You need to copy the nrf52840-related overlay file and rename it for the board you are building for (nrf9161dk_nrf9161_cpuapp.overlay).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/541354?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2025 15:04:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c47a9ac9-450f-4b97-a607-db53fcb76762</guid><dc:creator>JOEBRE</dc:creator><description>&lt;p&gt;Hello... I&amp;#39;m a little confused ... mass storage example is building with success when i set&amp;nbsp;nrf52840dk/nrf52840 as board (which has its dt overlay under boards).&lt;/p&gt;
&lt;p&gt;west build -b nrf52840dk/nrf52840 -d build -- -DCONFIG_APP_MSC_STORAGE_SDCARD=y is ok&lt;/p&gt;
&lt;p&gt;If I set nrf9161dk/nrf9161 the build ends with errors ...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;west build -b&amp;nbsp;nrf9161dk/nrf9161 -d build -- -DCONFIG_APP_MSC_STORAGE_SDCARD=y fails&lt;/p&gt;
&lt;p&gt;C:/ncs/v3.0.2/zephyr/samples/subsys/usb/mass/src/main.c:36:2: error: #error No supported disk driver enabled&lt;br /&gt;&amp;nbsp; &amp;nbsp;36 | #error No supported disk driver enabled&lt;/p&gt;
&lt;p&gt;Joel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/541327?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2025 12:44:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:575f359e-68b7-4ae5-97d0-f361af8df88a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;It shouldn&amp;#39;t matter whether it is an nRF9161DK or nRF52840DK when it comes to SD card.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or did I misunderstand you?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/541249?ContentTypeID=1</link><pubDate>Thu, 03 Jul 2025 05:34:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dd82c92-266a-4fda-a60f-666f3d103f40</guid><dc:creator>JOEBRE</dc:creator><description>&lt;p&gt;Ok, unfortunately I do not have an nRF52840DK board. I just have a nRF9161DK and the sample do not builds for this target, it is therefore impossible for me to follow your advice.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Regards, Joel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/541225?ContentTypeID=1</link><pubDate>Wed, 02 Jul 2025 21:18:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fc579e0-7cd1-499a-8e8f-bee96ca29a21</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I am sorry, but I have not played around too much with SD cards in Zephyr/NCS. Did you test it? Does it actually use the SD card?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would test it, but we are very limited on resources right now, due to summer holiday season in Norway, and I don&amp;#39;t think I will be able to set aside the time to test it before leaving in two days.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If there is no SPI activity on the SD card gpios, can you compare the behavior with NCS v2.6.X? There the sample built without any modifications. Alternatively, you can reach out to the Zephyr support forum, as the SD card library is really not maintained by Nordic Semiconductor.&lt;/p&gt;
&lt;p&gt;Or, I can have a look when I return in end of July. I am terribly sorry for the inconvenience!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/541136?ContentTypeID=1</link><pubDate>Wed, 02 Jul 2025 08:59:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b8c1319-abb6-4a7d-9fb9-f88762532542</guid><dc:creator>JOEBRE</dc:creator><description>&lt;p&gt;Hello, thanks... this explains a lot of things... with your input I&amp;#39;m now able to build LittleFS for&amp;nbsp;nRF52840 too.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Question about the pm_static.yml you provided ... doesn&amp;#39;t&amp;nbsp; &amp;quot;region: flash_primary&amp;quot; means that you&amp;#39;re placing the storage_partition into the main flash instead of the desired external SD flash ?&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I tried the format sample by substituting LittleFS with FAT_FILESYSTEM_ELM and it is working perfectly using &amp;quot;SD:&amp;quot;as ID ... the issue is related to the usage of LittleFS.&lt;/p&gt;
&lt;p&gt;Joel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/541054?ContentTypeID=1</link><pubDate>Tue, 01 Jul 2025 13:46:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54650ad9-d049-4cb9-a28c-b0e42b780d8a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes, I noticed that now. It built fine before v2.7.0, when sysbuild was introduced. Since it is in the zephyr part of NCS, we do not have direct control over these samples, so not all of them work out of the box.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I got it running for the nRF52840 DK by adding this pm_static.yml file to the application folder:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;storage_partition:
  affiliation: disk
  extra_params: {
      disk_name: &amp;quot;littlefs&amp;quot;,
      disk_cache_size: 4096,
      disk_sector_size: 512,
      disk_read_only: 0
    }
  address: 0xfa000
  end_address: 0x100000
  placement:
    before:
    - end
  region: flash_primary
  size: 0x6000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;(I was not allowed to upload .yml file, but you can take this one, and rename it &amp;quot;pm_static.yml&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4578.pm_5F00_static.txt"&gt;devzone.nordicsemi.com/.../4578.pm_5F00_static.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then, you must build using the build command: west build -d &amp;lt;board name&amp;gt; -d build -- -DCONFIG_APP_MSC_STORAGE_SDCARD=y&lt;/p&gt;
&lt;p&gt;as described here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/usb/mass/README.html#sd_card_example"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/usb/mass/README.html#sd_card_example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/540966?ContentTypeID=1</link><pubDate>Tue, 01 Jul 2025 07:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87ef88f0-6231-4e5d-afad-190c12d110ff</guid><dc:creator>JOEBRE</dc:creator><description>&lt;p&gt;Just to understand if there is something wrong with the sample or my SDK (v3.0.2 ) installation I generated a new mass storage project for&amp;nbsp;nrf52840dk/nrf52840 (which is listed in the README file as a compatible board).&lt;/p&gt;
&lt;p&gt;The sample doesn&amp;#39;t build ...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;C:/ncs/v3.0.2/nrf/include/flash_map_pm.h:47:22: error: &amp;#39;PM_storage_partition_ID&amp;#39; undeclared (first use in this function)&lt;br /&gt;&amp;nbsp; &amp;nbsp;47 | #define PM_ID(label) PM_##label##_ID&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;How shall I proceed to get this sample be configured and build correctly ?&lt;/p&gt;
&lt;p&gt;Joel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/540906?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2025 14:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:900cd590-50af-4362-87ac-d9f293a019e1</guid><dc:creator>JOEBRE</dc:creator><description>&lt;p&gt;Hello... I formatted no the SD card with a FAT filesystem (to get at leas a starting point) ... I will switch to LittleFS later once things are working...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using SDK&amp;nbsp;v3.0.2 on visual studio code ith the&amp;nbsp;v3.0.2 tool-chain. Looking at the&amp;nbsp;README.rst description to build the usb mass storage it should be enough:&lt;/p&gt;
&lt;p&gt;- create a new application using copy from sample (usb mass storage) sample&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- add a build configuration with Board target set to nrf9161dc/nrf9161&lt;/p&gt;
&lt;p&gt;- at this point (to build for SD card with SPI interface ) the README requires to invoke the build with the option&amp;nbsp;-DCONFIG_APP_MSC_STORAGE_SDCARD=y (which I suppose is defining the symbol CONFIG_APP_MSC_STORAGE_SDCARD and sets it to the value y). Since I&amp;#39;m calling the build directly from VSCode... how should I set&amp;nbsp;CONFIG_APP_MSC_STORAGE_SDCARD to y ? directly in prj.conf ? using Kconfig GUI ? ...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I just build the application without any modification I get a compilation error stating:&lt;/p&gt;
&lt;p&gt;C:/ncs/MyApp/mass_2/src/main.c:36:2: error: #error No supported disk driver enabled&lt;br /&gt;&amp;nbsp; &amp;nbsp;36 | #error No supported disk driver enabled&lt;/p&gt;
&lt;p&gt;Same thing if I add&amp;nbsp;CONFIG_APP_MSC_STORAGE_SDCARD=y directly to prj.conf.&lt;/p&gt;
&lt;p&gt;What do I need to set to successfully build this sample for SD card on SPI interface with FAT filesystem on nrf9161DK ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/540876?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2025 13:13:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa80e8c1-2332-4cfe-a0f0-87e93437dfb6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Can you try to format it using the mass storage sample? If you insert it and connect the DK with the nRF&amp;#39;s USB port, does it show up at all in the listed drives attached to your computer? If not, do you have one of these USB-&amp;gt;SD-card adapters that you can try to use?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/540614?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2025 15:14:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a04d5ae4-e0cc-4859-8c81-a7ba16e4e93e</guid><dc:creator>JOEBRE</dc:creator><description>&lt;p&gt;Hello... before using the SD card.(mount it and write/read to it) I&amp;#39;ve to format it ... isn&amp;#39;t it ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The SD card gets now properly detected (disk_access_init):&lt;/p&gt;
&lt;p&gt;*** Booting nRF Connect SDK v3.0.2-89ba1294ac9b ***&lt;br /&gt;*** Using Zephyr OS v4.0.99-f791c49f492c ***&lt;br /&gt;[00:00:00.252,471] &amp;lt;dbg&amp;gt; sd: sd_init_io: Host controller support 3.3V max&lt;br /&gt;[00:00:00.252,471] &amp;lt;dbg&amp;gt; sd: sd_init_io: Resetting power to card&lt;br /&gt;[00:00:00.256,195] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd0 arg 0x0&lt;br /&gt;[00:00:00.256,988] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd8 arg 0x1aa&lt;br /&gt;[00:00:00.257,751] &amp;lt;dbg&amp;gt; sd: sd_send_interface_condition: Found SDHC with CMD8 support&lt;br /&gt;[00:00:00.257,781] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd59 arg 0x1&lt;br /&gt;[00:00:00.258,544] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd58 arg 0x0&lt;br /&gt;[00:00:00.259,429] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd55 arg 0x0&lt;br /&gt;[00:00:00.260,223] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd41 arg 0x40000000&lt;br /&gt;[00:00:00.271,087] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd55 arg 0x0&lt;br /&gt;[00:00:00.271,881] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd41 arg 0x40000000&lt;br /&gt;[00:00:00.272,644] &amp;lt;dbg&amp;gt; sd: sdmmc_send_ocr: SDMMC responded to ACMD41 after 1 attempts&lt;br /&gt;[00:00:00.272,674] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd58 arg 0x40000000&lt;br /&gt;[00:00:00.273,468] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd10 arg 0x0&lt;br /&gt;[00:00:00.274,902] &amp;lt;dbg&amp;gt; sd: card_read_cid: Card MID: 0x3, OID: DS&lt;br /&gt;[00:00:00.274,932] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd9 arg 0x0&lt;br /&gt;[00:00:00.276,397] &amp;lt;dbg&amp;gt; sd: sdmmc_read_csd: Card block count 7744512, block size 512&lt;br /&gt;[00:00:00.276,397] &amp;lt;inf&amp;gt; sd: Maximum SD clock is under 25MHz, using clock of 1000000Hz&lt;br /&gt;[00:00:00.276,428] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd55 arg 0x0&lt;br /&gt;[00:00:00.276,977] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd51 arg 0x0&lt;br /&gt;[00:00:00.277,740] &amp;lt;dbg&amp;gt; sd: sdmmc_read_scr: SD reports specification version 8&lt;br /&gt;[00:00:00.277,770] &amp;lt;inf&amp;gt; littlefs: LittleFS version 2.9, disk version 2.1&lt;/p&gt;
&lt;p&gt;but I get an error calling:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;#define MKFS_FS_TYPE FS_LITTLEFS&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;#define MKFS_DEV_ID &amp;quot;SDCard&amp;quot; &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;#define MKFS_FLAGS 0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;fs_mkfs(MKFS_FS_TYPE, (uintptr_t)MKFS_DEV_ID, NULL, MKFS_FLAGS);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;[00:00:00.277,770] &amp;lt;err&amp;gt;&lt;span style="color:#ff0000;"&gt; littlefs: Can&amp;#39;t init littlefs backend, review configs and flags 0x00000000&lt;/span&gt;&lt;br /&gt;[00:00:00.277,770] &amp;lt;err&amp;gt; &lt;span style="color:#ff0000;"&gt;fs: mkfs error (-134)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;My .conf is:&lt;/p&gt;
&lt;p&gt;CONFIG_DISK_ACCESS=y&lt;br /&gt;CONFIG_DISK_DRIVERS=y&lt;br /&gt;CONFIG_DISK_DRIVER_SDMMC=y&lt;/p&gt;
&lt;p&gt;CONFIG_DEBUG=y&lt;br /&gt;CONFIG_LOG=y&lt;br /&gt;CONFIG_LOG_MODE_MINIMAL=n&lt;/p&gt;
&lt;p&gt;CONFIG_FILE_SYSTEM=y&lt;br /&gt;CONFIG_FILE_SYSTEM_LITTLEFS=y&lt;br /&gt;CONFIG_FILE_SYSTEM_MKFS=y&lt;/p&gt;
&lt;p&gt;CONFIG_FS_LITTLEFS_BLK_DEV=y&lt;br /&gt;CONFIG_FS_LITTLEFS_FMP_DEV=n&lt;/p&gt;
&lt;p&gt;Is there something missing ? how shall i call&amp;nbsp;fs_mkfs in order to format the SD card ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The USB mass storage code sample do not helps me a lot in the understanding on how to make the connection between&amp;nbsp; LittleFS and the file system to the sd card driver ...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there anything missing&amp;nbsp;the dts overlay (like partitions ... )?&amp;nbsp; Sorry it may be a stupid question but I&amp;#39;m really new to Zephyr and the understanding is not immediate to me (if I understood it corectly mass storage sample supports only FAT as fs for&amp;nbsp; SD card and not LittleFS on SD card).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thx, Joel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/540593?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2025 13:47:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cefbe3d2-5b49-4f17-99fd-174dfa95da38</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Joel,&lt;/p&gt;
&lt;p&gt;You can have a look at the USB Mass storage sample found in NCS\zephyr\samples\subsys\usb\mass.&lt;/p&gt;
&lt;p&gt;Please check out the sample description found here, as this shows how to enable support for SD cards:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/usb/mass/README.html#usb-mass"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/usb/mass/README.html#usb-mass&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/540494?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2025 13:49:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30793223-5db7-49ae-a458-f772ff72e75d</guid><dc:creator>JOEBRE</dc:creator><description>&lt;p&gt;After saving discovered that there is no way of using the SD card holder on the DK board, following the instructions found in this forum, I connected an external level shifter board ( 1.8-3 VDC) and a uDS card holder board to the nRF9161 DK board SPI has been connected to SPI3 on:&lt;/p&gt;
&lt;p&gt;CLK -&amp;gt; P 0.13 (100 ohm termination resistors on the two drivers)&lt;/p&gt;
&lt;p&gt;MISO -&amp;gt; P 0.12&lt;/p&gt;
&lt;p&gt;MOSI -&amp;gt; P 0.11&lt;/p&gt;
&lt;p&gt;CS -&amp;gt; P 0.10&lt;/p&gt;
&lt;p&gt;I added the following stuff to the .overlay file:&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;spi3&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;cs-gpios&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &amp;lt;&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;arduino_header&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;16&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;GPIO_ACTIVE_LOW&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;&amp;gt;, &lt;/span&gt;&lt;span style="color:#6a9955;"&gt;/* D10 */&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;&amp;amp;&lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;gpio0&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;20&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;GPIO_ACTIVE_LOW&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;sdhc0:&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;sdhc&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;@&lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; { &lt;/span&gt;&lt;span style="color:#6a9955;"&gt;// SPI SD card&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;compatible&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;&amp;quot;zephyr,sdhc-spi-slot&amp;quot;&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;reg&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &amp;lt;&lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;0&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;&amp;gt;; &lt;/span&gt;&lt;span style="color:#6a9955;"&gt;// First chip select in the spi3 definition&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;status&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;&amp;quot;okay&amp;quot;&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#4ec9b0;"&gt;mmc&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;compatible&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;&amp;quot;zephyr,sdmmc-disk&amp;quot;&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;status&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;&amp;quot;okay&amp;quot;&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;disk-name&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;SDCard&amp;quot;&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;spi-max-frequency&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &amp;lt;&lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;1000000&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;&amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#cccccc;"&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Unfortunately I can&amp;#39;t find anywhere instructions on how acceding this card using an LittleFS file system&lt;/p&gt;
&lt;p&gt;How shall I proceed to make this SD card available to Zephyr trough LittleFS file system ?&lt;/p&gt;
&lt;p&gt;Thanks, Joel&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/539639?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2025 06:04:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b93ffccb-1470-4616-84be-50f1e14ce53f</guid><dc:creator>JOEBRE</dc:creator><description>&lt;p&gt;Looking at the schematics&amp;nbsp;of the nRF9161 DK&amp;nbsp;with some more attention it becomes clear why the uSD card holder hasn&amp;#39;t been soldered.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With the factory power supply configuration,&amp;nbsp;J8 becomes useless (for an standard uSD card)&amp;nbsp; ... there is no SD card on&amp;nbsp; the market requiring only 1.8 VDC power supply ...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The easiest way to get uSD card support on nRF9161 is using an external level shifter module (1.8 -3.3 VDC) together with a uSD card holder module together with some flying wires ...&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/539538?ContentTypeID=1</link><pubDate>Tue, 17 Jun 2025 12:14:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb364c98-39dc-4041-ac7f-a7cda910f45c</guid><dc:creator>JOEBRE</dc:creator><description>&lt;p&gt;Other issue... SD card in SPI mode requires power supply and signaling at 3.3 VDC. On the nRF9161 both power supply and signaling are at 1.8 VDC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/539525?ContentTypeID=1</link><pubDate>Tue, 17 Jun 2025 11:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5486d77b-8792-4f8e-9327-f4a2b496729a</guid><dc:creator>JOEBRE</dc:creator><description>&lt;p&gt;Hello, I know it is a while now that this thread remained in an inactive&amp;nbsp; state ... but now I&amp;#39;m back... I ordered the microSD card holder and it has been soldered on J8 on the&amp;nbsp; bottom side of the DK... I was now taking a look into how to configure the nRF9161 to enable it to access the SD card via SPI... According to the DK schematic the chip select to P0.25, SCK to P0.21, MISO/DO P0.22 and these signals are OK. MOSI/DI instead is connected to the DBG_CMD signal which ends on pin 125 of the nRF9161 module. This pin, in the datasheet, is&amp;nbsp; signed as &amp;quot;Do not connect/reserved for future use&amp;quot; ...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How can I use the SPI interface to control the SD card without using the MOSI ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/526305?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 08:59:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e8da6f3-d8ae-4b02-9864-f4c00e8355c3</guid><dc:creator>ketiljo</dc:creator><description>&lt;p&gt;Ok, I see whay you mean. This is for internal debugging only. Here&amp;#39;s how it&amp;#39;s connected:&amp;nbsp;&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/pastedimage1741337726482v1.png" alt=" " /&gt;&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/pastedimage1741337824173v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pca10153_5F00_schematic_5F00_and_5F00_pcb.pdf"&gt;devzone.nordicsemi.com/.../pca10153_5F00_schematic_5F00_and_5F00_pcb.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I guess you can mount the holder and access the SD card from the GPIOs it&amp;#39;s connected to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/526279?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 06:51:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa25c218-3fe3-4b8d-b31e-c9699314ebdf</guid><dc:creator>JOEBRE</dc:creator><description>&lt;p&gt;Not really sure where do I find the version on the PCB... anyway i see a sticker reporting IMEI and PIN together with other numbers ... one of them seems to be a version number&lt;/p&gt;
&lt;p&gt;PCA10153&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1.0.0&lt;/p&gt;
&lt;p&gt;2024.23&lt;/p&gt;
&lt;p&gt;1050961666&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using SD card on nRF9161 DK</title><link>https://devzone.nordicsemi.com/thread/526264?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 21:55:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:385486fb-c8ad-4ddd-bcd9-d75e6afe4ced</guid><dc:creator>ketiljo</dc:creator><description>&lt;p&gt;What version of the DK do you have?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>