<?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>SD Card: Error mounting file System error: -134</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121169/sd-card-error-mounting-file-system-error--134</link><description>Hello, 
 I am trying to use an sdcard with the nrf54l15 DK board with the 2.9.1 sdk. However I encounter &amp;quot;&amp;lt;err&amp;gt; fatfs: Storage init ERROR! error: -134&amp;quot; when calling the disk_access_init() function My code described below is based on the fatfs example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 May 2025 14:44:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121169/sd-card-error-mounting-file-system-error--134" /><item><title>RE: SD Card: Error mounting file System error: -134</title><link>https://devzone.nordicsemi.com/thread/536486?ContentTypeID=1</link><pubDate>Wed, 21 May 2025 14:44:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:935a1817-09fd-470d-a82e-d73c2f6df241</guid><dc:creator>Patrice Rudaz</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;That was it !&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/SDCard_5F00_okay.png" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the support.&lt;br /&gt;Kind Regards&lt;br /&gt;Patrice&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card: Error mounting file System error: -134</title><link>https://devzone.nordicsemi.com/thread/536442?ContentTypeID=1</link><pubDate>Wed, 21 May 2025 12:55:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:943aa5cf-f991-4c77-a296-e735824506e7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Patrice,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry, I didn&amp;#39;t think of this earlier since it was working fine on my end, but I suspect the issue is that P1.04 through P1.07 are connected to the interface MCU on the board, which is likely interfering with the SPI transfers. You can see the pin assigments by looking at the silkscreen on the backside of the board.&lt;/p&gt;
&lt;p&gt;Fortunately, it is possible to disconnect these lines through the board configurator. Please try that.&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/5164.pastedimage1747832111095v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;Log from my test&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/1854.pastedimage1747832163275v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card: Error mounting file System error: -134</title><link>https://devzone.nordicsemi.com/thread/536190?ContentTypeID=1</link><pubDate>Tue, 20 May 2025 12:01:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ee8989c-865d-4e3f-a4b4-5ecd08a15d29</guid><dc:creator>Patrice Rudaz</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;It seems that the pins are well configured, according to the .overlay.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;P1.04 : SD_SCK&lt;/li&gt;
&lt;li&gt;P1.05 : SD_MISO&lt;/li&gt;
&lt;li&gt;P1.07 : SD_MOSI&lt;/li&gt;
&lt;li&gt;P1.06 : SD_nCS&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;amp;spi20 {
    status = &amp;quot;okay&amp;quot;;
    compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
    pinctrl-0 = &amp;lt;&amp;amp;spi20_default&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;spi20_sleep&amp;gt;;
    pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
    cs-gpios = &amp;lt;&amp;amp;gpio1 6 GPIO_ACTIVE_LOW&amp;gt;; // P1.06 - SD_nCS
	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;;
	};
};

&amp;amp;uart20 {
	status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;pinctrl {
    spi20_default: spi20_default {
        group1 {
            psels = &amp;lt;NRF_PSEL(SPIM_SCK,  1, 4)&amp;gt;,
                    &amp;lt;NRF_PSEL(SPIM_MOSI, 1, 7)&amp;gt;,
                    &amp;lt;NRF_PSEL(SPIM_MISO, 1, 5)&amp;gt;;
        };
    };

    spi20_sleep: spi20_sleep {
        group1 {
            psels = &amp;lt;NRF_PSEL(SPIM_SCK,  1, 4)&amp;gt;,
                    &amp;lt;NRF_PSEL(SPIM_MOSI, 1, 7)&amp;gt;,
                    &amp;lt;NRF_PSEL(SPIM_MISO, 1, 5)&amp;gt;;
            low-power-enable;
        };
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With the logic analyzer :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nrf54L15&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="text-align:center;"&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/LogicAnalyzer_5F00_nRF54L15.png" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nrf5340&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img style="display:block;margin-left:auto;margin-right:auto;max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/LogicAnalyzer_5F00_nRF5340.png" /&gt;&lt;/p&gt;
&lt;p&gt;The GPIOs seem to be correctly assigned. However, the SPI frames are not the same.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is there anything special to do with the nRF54L15 in terms of hardware?&lt;/li&gt;
&lt;li&gt;Or a special configuration to put in the prj.conf?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Kind Regards&lt;br /&gt;Patrice&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card: Error mounting file System error: -134</title><link>https://devzone.nordicsemi.com/thread/536097?ContentTypeID=1</link><pubDate>Tue, 20 May 2025 07:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fb5d94e-f39e-4590-a71a-cafb120cd5ae</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was hoping&amp;nbsp;testing with my FW would help narrow down the problem. The error indicates that the SD card is not responding to the commands.&lt;/p&gt;
&lt;p&gt;So to summarize:&lt;/p&gt;
&lt;p&gt;1. The same SD card works with the nRF5340 DK which confirms that the card is compatible with the driver.&lt;/p&gt;
&lt;p&gt;2. Both setups are operating at the same IO voltage level.&lt;/p&gt;
&lt;p&gt;3. The identical firmware works on my desk.&lt;/p&gt;
&lt;p&gt;From the&amp;nbsp;board picture you posted&amp;nbsp;it looks&amp;nbsp;like you have changed which pins are connected to the SD card module compared to the overlay Nabil included in the initial post? Have you tried to probe the lines with a scope or logic analyzer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card: Error mounting file System error: -134</title><link>https://devzone.nordicsemi.com/thread/536031?ContentTypeID=1</link><pubDate>Mon, 19 May 2025 14:28:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cb3e5e1-5885-4f7b-b208-bcdc20b84ef5</guid><dc:creator>Patrice Rudaz</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;I already did, but here is the RTT output with the .hex and pinout provided:&lt;br /&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/hexAndPinout.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card: Error mounting file System error: -134</title><link>https://devzone.nordicsemi.com/thread/535980?ContentTypeID=1</link><pubDate>Mon, 19 May 2025 12:21:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de98c155-5584-4617-989e-25e07a6f064c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you please try with the .hex I uploaded earlier and with this pinout:&lt;/p&gt;
&lt;p&gt;&lt;img style="font-family:inherit;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1663.pastedimage1746607901277v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card: Error mounting file System error: -134</title><link>https://devzone.nordicsemi.com/thread/535814?ContentTypeID=1</link><pubDate>Fri, 16 May 2025 13:53:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34745801-54d8-4133-bb0f-838ebafc0423</guid><dc:creator>Patrice Rudaz</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m Patrice, working at the School of Engineering of Sion, and I&amp;#39;m trying to support Nabil in his work dealing witn nrf54L15 and SD card...&lt;/p&gt;
&lt;p&gt;I took the fs_sample project you provided and ran it on the nrf54L15 development board I have in the office. It&amp;#39;s a version 0.9.2&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve checked that the nrf54l15&amp;#39;s GPIOs are set to 3.3V. I&amp;#39;m having the same problems as with the hardware used by Nabil (see RTT output 54l15).&lt;br /&gt;I also tested your .hex file and got the same behavior!&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/RTT-output-54l15.png" /&gt;&lt;/p&gt;
&lt;p&gt;I then compiled the project for an nrf5340 board and everything works (cf. RTT output 5340).&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/RTT-Output-5340.png" /&gt;&lt;/p&gt;
&lt;p&gt;For the 2 builds, I&amp;#39;m using the same toolchains, same external hardware and the same SD card:&lt;br /&gt;- ncs 3.0.0&lt;br /&gt;- ncs toolchain 3.0.1&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/external_5F00_hardware.png" /&gt;&lt;/p&gt;
&lt;p&gt;Any ideas ?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Here is the project with the overlay and conf files:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/fs_5F00_sample_5F00_54l15_5F00_and_5F00_5340.zip"&gt;devzone.nordicsemi.com/.../fs_5F00_sample_5F00_54l15_5F00_and_5F00_5340.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card: Error mounting file System error: -134</title><link>https://devzone.nordicsemi.com/thread/534488?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 13:41:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f32af4c-4499-4df3-a6c6-322c8d77ec7f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I took a chance on using SDK v3.0.0 instead of v2.9.1 not expecting any major changes, but I see the binding was updated to include the name property between these two releases:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/commit/a1dc0b8b3e97542ca9f0c84cba37067710b61ccb"&gt;https://github.com/zephyrproject-rtos/zephyr/commit/a1dc0b8b3e97542ca9f0c84cba37067710b61ccb&lt;/a&gt;. Anyway, are you able to test with the hex file I uploaded to verify the your SD card is supported?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card: Error mounting file System error: -134</title><link>https://devzone.nordicsemi.com/thread/534428?ContentTypeID=1</link><pubDate>Thu, 08 May 2025 09:31:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eafe62d-8748-46cb-848e-ce539ec23c24</guid><dc:creator>nbh</dc:creator><description>&lt;p&gt;Hello Vidar, &lt;br /&gt;After inspecting the overlay file i noticed that the disk-name property inside the mmc node is not allowed, and generates a build error&lt;pre class="ui-code" data-mode="text"&gt;devicetree error: &amp;#39;disk-name&amp;#39; appears in /soc/peripheral@50000000/spi@c6000/sdhc@0/mmc 
in C:/****/fs_sample/build/fs_sample/zephyr/zephyr.dts.pre, 
but is not declared in &amp;#39;properties:&amp;#39; in C:/ncs/v2.9.1/zephyr/dts/bindings\sd\zephyr,sdmmc-disk.yaml&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Just to make it clear i&amp;#39;m building for the nrf54l15dk/nrf54l15/cpuapp using the 2.9.1 sdk.&lt;/p&gt;
&lt;p&gt;Also i forgot to mention in my original post that my board is reconfigured to use the NFC pins as GPIOs&lt;/p&gt;
&lt;p&gt;(And checked with an Analog discovery tool)&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card: Error mounting file System error: -134</title><link>https://devzone.nordicsemi.com/thread/534231?ContentTypeID=1</link><pubDate>Wed, 07 May 2025 08:51:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a6a55e2-1b82-4100-aa86-bc9a11c9109b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Nabil,&lt;/p&gt;
&lt;p&gt;Thanks for confirming that you see the same with 3.3v. I have tried this on my desk now and confirmed that it works here. Please try with the hex file below and see that you get the same result as well. The difference is that I assigned MISO to P1.7 because P1.3 is not routed to the pin header by default (see&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf54l15_dk/page/UG/nRF54L15_DK/hw_desription/nfc_if.html#d18e110"&gt;Configuring NFC pins as GPIOs&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Hex file&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/fs_5F00_sample.hex"&gt;devzone.nordicsemi.com/.../fs_5F00_sample.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Test project&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/fs_5F00_sample.zip"&gt;devzone.nordicsemi.com/.../fs_5F00_sample.zip&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Pinout&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&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/pastedimage1746607901277v1.png" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card: Error mounting file System error: -134</title><link>https://devzone.nordicsemi.com/thread/533985?ContentTypeID=1</link><pubDate>Mon, 05 May 2025 19:04:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c49f76f-35dd-4d6d-95f6-6987654df731</guid><dc:creator>nbh</dc:creator><description>&lt;p&gt;Hello thank you for your answer, as you predicted the default volatage was indeed set 1.8V.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However i still encounter the same issue after setting the voltage to 3.3V as described in the logs of the original post.&lt;br /&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/pastedimage1746471789341v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Nabil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card: Error mounting file System error: -134</title><link>https://devzone.nordicsemi.com/thread/533975?ContentTypeID=1</link><pubDate>Mon, 05 May 2025 16:49:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37cd8eb6-5d94-40aa-90c1-ca2ae4423332</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Before I try to reproduce this on my desk, please try increasing the IO voltage to 3.3v if you haven&amp;#39;t done so already. The default voltage is 1.8v and may not be supported by your SD card. The IO voltage is adjusted by changing the VDD in the board configurator app in nRF Connect for Desktop:&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/pastedimage1746463775278v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>