<?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>Failing to build FAT_FS sample on nRF5340dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101028/failing-to-build-fat_fs-sample-on-nrf5340dk</link><description>Hi 
 I am trying to run the sample FAT_FS for an nRF5340dk board, but I am unsure what changes are needed in order for it to work. Currently I have done the changes mentioned in this thread. So I have added a overlay and conf file to the boards folder</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Aug 2023 14:48:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101028/failing-to-build-fat_fs-sample-on-nrf5340dk" /><item><title>RE: Failing to build FAT_FS sample on nRF5340dk</title><link>https://devzone.nordicsemi.com/thread/441427?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 14:48:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a106efd-3437-417e-ad7b-21606ec32b4a</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;The line:&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;DT_HAS_ZEPHYR_SDMMC_DISK_ENABLED&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;is not allowed in the prj.conf&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Actually when you are setting:&amp;nbsp;&lt;span&gt;CONFIG_SDMMC_SUBSYS&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It is dependent upon&amp;nbsp;&lt;span&gt;DT_HAS_ZEPHYR_SDMMC_DISK_ENABLED symbol,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;which means that the DT (device tree) should have&amp;nbsp;ZEPHYR_SDMMC_DISK which is compatible property of the MMC (the child node of SDHC)&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 am just attaching my prj.conf and the overlay file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_DISK_ACCESS=y
CONFIG_LOG=y
CONFIG_FILE_SYSTEM=y
CONFIG_FAT_FILESYSTEM_ELM=y
CONFIG_PRINTK=y
CONFIG_MAIN_STACK_SIZE=2048

CONFIG_DISK_DRIVER_SDMMC=y
CONFIG_SPI=y
CONFIG_DISK_DRIVERS=y
CONFIG_SDMMC_STACK=y
CONFIG_SDMMC_SUBSYS=y
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi2 {
	compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	cs-gpios = &amp;lt;&amp;amp;gpio0 18 GPIO_ACTIVE_LOW&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;spi2_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi2_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&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;24000000&amp;gt;;
	};
 };

 &amp;amp;pinctrl {
	spi2_default: spi2_default {
	   group1 {
		  psels = 	&amp;lt;NRF_PSEL(SPIM_SCK, 0, 17)&amp;gt;,
		  			&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 13)&amp;gt;,
					&amp;lt;NRF_PSEL(SPIM_MISO, 0, 14)&amp;gt;;
			 	bias-pull-up;
	   };
	};
	spi2_sleep: spi2_sleep {
	   group1 {
		  psels =	&amp;lt;NRF_PSEL(SPIM_SCK, 0, 17)&amp;gt;,
		  			&amp;lt;NRF_PSEL(SPIM_MOSI, 0, 13)&amp;gt;,
					&amp;lt;NRF_PSEL(SPIM_MISO, 0, 14)&amp;gt;;
				low-power-enable;
	   };
	};
 };&lt;/pre&gt;&lt;/p&gt;
&lt;p&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/pastedimage1692110888525v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to build FAT_FS sample on nRF5340dk</title><link>https://devzone.nordicsemi.com/thread/440875?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 07:00:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5594c8b-b473-4fea-b00d-3326f8534c2f</guid><dc:creator>Espen</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;My prj.conf looks like this:&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 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:#569cd6;"&gt;CONFIG_DISK_ACCESS&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_LOG&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_FILE_SYSTEM&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_FAT_FILESYSTEM_ELM&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_PRINTK&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MAIN_STACK_SIZE&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=2048&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_DISK_DRIVER_SDMMC&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_SPI&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_DISK_DRIVERS&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_SDMMC_STACK&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;DT_HAS_ZEPHYR_SDMMC_DISK_ENABLED&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_SDMMC_SUBSYS&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;And my overlay file looks like this:&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;spi1&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;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:#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;gpio0&lt;/span&gt;&lt;span style="color:#cccccc;"&gt; &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;18&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;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;sck-pin&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;17&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; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;mosi-pin&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;13&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; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style="color:#9cdcfe;"&gt;miso-pin&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;14&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; &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;/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; &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; &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;/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; &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; &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; &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; &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; &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; &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;24000000&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; &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;My version of NCS is 2.4.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to build FAT_FS sample on nRF5340dk</title><link>https://devzone.nordicsemi.com/thread/440711?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 11:35:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed4f8e6c-3b0b-4e73-8b97-fa37f56bd7f4</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Looks like the overlay is not configured as it should be.&lt;/p&gt;
&lt;p&gt;Can you send me your prj.conf and the overlay that you are using for the 5340 target.&lt;/p&gt;
&lt;p&gt;Please mention which NCS version you are using.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to build FAT_FS sample on nRF5340dk</title><link>https://devzone.nordicsemi.com/thread/440514?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2023 13:18:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bccda07-4990-40c7-9a16-20bb1a55ac68</guid><dc:creator>Espen</dc:creator><description>&lt;p&gt;Thanks for the response. I have connected as you specified. Still the same error. I have formatted the disk using the SD Card Formatter. I also tried enabling the configs. But I did not get &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_SDMMC_SUBSYS&lt;/span&gt; to work. I got the warning: &lt;/p&gt;
&lt;p&gt;CONFIG_SDMMC_SUBSYS was assigned the value y, but got the value n. Missing dependencies:&lt;br /&gt;DT_HAS_ZEPHYR_SDMMC_DISK_ENABLED&lt;/p&gt;
&lt;p&gt;When trying to enable DT_HAS_ZEPHYR_SDMMC_DISK_ENABLEDI got the warning:&lt;/p&gt;
&lt;p&gt;ignoring malformed line &amp;#39;DT_HAS_ZEPHYR_SDMMC_DISK_ENABLED=y&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have also tried to use a logic analyzer on the outputs on the board. But I got no signal on any of the pins. So I think the problem might lay there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to build FAT_FS sample on nRF5340dk</title><link>https://devzone.nordicsemi.com/thread/433899?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 10:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74fd267f-6280-4db8-9482-ffc534c8c9dc</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Espen,&lt;/p&gt;
&lt;p&gt;Apologies for the delayed response.&lt;/p&gt;
&lt;p&gt;I am not sure whether it appears wrong to me or it actually is.&lt;br /&gt;Looks to me that you have green-wire connecting pin-13 to the DO, and the blue-wire connecting pin-14 to the DI.&lt;/p&gt;
&lt;p&gt;Can you make sure that you are connecting MOSI (pin-13 in your overlay) to the DI,&lt;br /&gt;and the MISO (pin-14 in the overlay) to the DO on the SDCard side.&lt;/p&gt;
&lt;p&gt;Moreover, can you check that your SD card is properly formatted. Please use official tools if possible (as some user experienced &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/75093/need-a-working-example-of-using-an-sd-card-with-fat-filesystem-on-the-nrf9160#:~:text=You%20should%20use%20the%20SD%20association%20formatter%20to%20make%20sure%20the%20format%20is%20right."&gt;problems with formatting&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Please see and use (if applicable) the following configs as well:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_DISK_DRIVERS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_SDMMC_STACK&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;CONFIG_SDMMC_SUBSYS&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to build FAT_FS sample on nRF5340dk</title><link>https://devzone.nordicsemi.com/thread/432620?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2023 07:37:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edb1a747-4c51-4aaf-83f6-a98f3ce4e70f</guid><dc:creator>Espen</dc:creator><description>&lt;p&gt;The connections should be solid. Cant detect anything wrong there. I am using a Transcend Premium 32Gb memory card. Everything seems to check out in the datasheet.&lt;/p&gt;
&lt;p&gt;My config file is:&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:#569cd6;"&gt;CONFIG_DISK_ACCESS&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_LOG&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_FILE_SYSTEM&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_FAT_FILESYSTEM_ELM&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_PRINTK&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MAIN_STACK_SIZE&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=2048&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_DISK_DRIVER_SDMMC&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_SPI&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to build FAT_FS sample on nRF5340dk</title><link>https://devzone.nordicsemi.com/thread/432402?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 17:24:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdd7d856-9ee7-464f-a7d6-5b0d6a1684ed</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Can you make sure that connections are correct and solid (no loose wires).&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;do not&amp;nbsp;see the card in the memory reader. Which memory card you are using? What is its capacity?&lt;/p&gt;
&lt;p&gt;Can you also look at its datasheet to make sure that everything is correct.&lt;/p&gt;
&lt;p&gt;Please share your project configurations as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to build FAT_FS sample on nRF5340dk</title><link>https://devzone.nordicsemi.com/thread/432307?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 12:10:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f49c82c3-eeaf-4afe-ad81-6c8c653e9af4</guid><dc:creator>Espen</dc:creator><description>&lt;p&gt;The connections are shown in the images bellow. I hope their not in to bad quality to be viewed.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/353821912_5F00_167164353008784_5F00_9140585474766341794_5F00_n.jpg" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/353960542_5F00_6353709164709945_5F00_3931022997471867915_5F00_n.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;I have connected it like this:&lt;/p&gt;
&lt;p&gt;5v - 5v&lt;/p&gt;
&lt;p&gt;GND - GND&lt;/p&gt;
&lt;p&gt;P0.18 - CS&lt;/p&gt;
&lt;p&gt;P0.17 - CLK&lt;/p&gt;
&lt;p&gt;DI - P0.14&lt;/p&gt;
&lt;p&gt;DO - P0.13&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My overlay file looks like this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1687349328665v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;EDIT: Although the image does not show it, I have an SD-card plugged into the SD-card breakoutboard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to build FAT_FS sample on nRF5340dk</title><link>https://devzone.nordicsemi.com/thread/432293?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 11:39:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8b6ec7d-02a5-464f-be68-2fe30ca02039</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;How is your hardware setup?&lt;/p&gt;
&lt;p&gt;Can you show me a snapshot of your board and connections.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to build FAT_FS sample on nRF5340dk</title><link>https://devzone.nordicsemi.com/thread/432291?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 11:33:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:311d8a08-50da-4ab7-b173-61df5bb59c14</guid><dc:creator>Espen</dc:creator><description>&lt;p&gt;Thanks! That works. But now I get the same error as the thread I lined to. But the suggested answers did not work for me. The exact error is:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;[00:00:00.449,340] &amp;lt;err&amp;gt; main: Storage init ERROR!&lt;br /&gt;[00:00:00.449,371] &amp;lt;err&amp;gt; fs: fs mount error (-5)&lt;br /&gt;Error mounting disk.&lt;/p&gt;
&lt;p&gt;I have seen a lot of other people getting the same error. But their solutions don&amp;#39;t seem to work for me.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to build FAT_FS sample on nRF5340dk</title><link>https://devzone.nordicsemi.com/thread/432287?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 11:26:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e64a6694-1856-4623-81ae-2d5faf2a61ee</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi Espen,&lt;/p&gt;
&lt;p&gt;Thank you for contacting DevZone at NordicSemi.&lt;/p&gt;
&lt;p&gt;I think the problem is coming from the naming of the overlay and conf files and the platform for which you are building the sample.&lt;/p&gt;
&lt;p&gt;As in the FAT_FS, the overlay and conf files for the nrf52840_nrf52840 are provided, you may copy the contents and generate new files with &amp;quot;nrf5340dk_5340_cpuapp&amp;quot; name and correct file-type (.overlay, and .conf), and then build it for &amp;quot;nrf5340dk_5340_cpuapp&amp;quot; target (not the _ns target).&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/pastedimage1687346769581v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Hope it helps,&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>