<?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 using fs_sample zephyr example code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114339/sd-card-error-using-fs_sample-zephyr-example-code</link><description>Hi I am trying to get an SD card hooked up to my nrf52840 devkit. I am using nRF Connect v2.6.1 and I was trying to get the sample code working, so I used the sample in ncs/v2.6.1/zephyr/subsys/fs/fs_sample 
 
 Unfortunately I get this error when trying</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 May 2025 11:55:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114339/sd-card-error-using-fs_sample-zephyr-example-code" /><item><title>RE: SD Card error using fs_sample zephyr example code</title><link>https://devzone.nordicsemi.com/thread/535766?ContentTypeID=1</link><pubDate>Fri, 16 May 2025 11:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cbd3481-2c20-4157-85e3-59c0f23a67fb</guid><dc:creator>Shuhao Dong</dc:creator><description>&lt;p&gt;I have recently purchased &lt;a href="https://thepihut.com/products/adafruit-spi-flash-sd-card-xtsd?variant=43954839027907&amp;amp;country=GB&amp;amp;currency=GBP&amp;amp;utm_medium=product_sync&amp;amp;utm_source=google&amp;amp;utm_content=sag_organic&amp;amp;utm_campaign=sag_organic&amp;amp;gad_source=1&amp;amp;gad_campaignid=17510604388&amp;amp;gbraid=0AAAAADfQ4GG5fydvR-eIksQ7qLqhgfHZo&amp;amp;gclid=CjwKCAjwuIbBBhBvEiwAsNypvQ4ltjcfc1Snpi8gd7FlDYTrgVbac4Xy9YjW8qQAQflVUrBAVBKP5RoCfxUQAvD_BwE"&gt;this&lt;/a&gt;&amp;nbsp;one and had the same problem. We solved this problem simply by switching to another CS pin and make sure CS pin is active low. Not sure if it will work for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card error using fs_sample zephyr example code</title><link>https://devzone.nordicsemi.com/thread/503120?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2024 12:14:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:672a9737-a151-4bd3-bbde-822d5d4de811</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;I will try to see if I can find anything. Just as a good to know. I also saw you asked on the zephyr discord thats good.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card error using fs_sample zephyr example code</title><link>https://devzone.nordicsemi.com/thread/502815?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2024 18:12:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:833f1f85-464d-48e4-86f7-1391f61cb507</guid><dc:creator>Loubear</dc:creator><description>&lt;p&gt;Runar,&lt;/p&gt;
&lt;p&gt;Adding the wait to sd init did not solve this issue. Please let me know if you find anything else that may resolve this issue.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Louis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card error using fs_sample zephyr example code</title><link>https://devzone.nordicsemi.com/thread/502574?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 09:06:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aa08051-d34e-499d-bf97-ca8ca2c2b3d4</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your patience. It&amp;#39;s proven more difficult than what I thought to find someone who has experienced this issue before.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As it works on a reset I would suggest that you add a&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;void k_busy_wait(uint32_t usec_to_wait);&lt;/pre&gt; inside the init function to the SDCard driver as it looks like the boot time might be the issue. It might be also be possible to ask on the Zephyr discord if anyone has seen the issue there. I would however first test if adding the delay fixes the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card error using fs_sample zephyr example code</title><link>https://devzone.nordicsemi.com/thread/501426?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 20:41:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e94a3c5-20a6-4b97-a9dc-ac489501e7ac</guid><dc:creator>Loubear</dc:creator><description>&lt;p&gt;Thank you.&lt;br /&gt;&lt;br /&gt;If it helps here is the location where the SPI bus is &lt;em&gt;supposed&amp;nbsp;&lt;/em&gt;to set the CS line to active high.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ncs\v2.6.1\zephyr\drivers\sdhc.c line 127-157:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;static int sdhc_spi_init_card(const struct device *dev)
{
	/* SD spec requires at least 74 clocks be send to SD to start it.
	 * for SPI protocol, this will be performed by sending 10 0xff values
	 * to the card (this should result in 80 SCK cycles)
	 */
	const struct sdhc_spi_config *config = dev-&amp;gt;config;
	struct sdhc_spi_data *data = dev-&amp;gt;data;
	struct spi_config *spi_cfg = data-&amp;gt;spi_cfg;
	int ret;

	if (spi_cfg-&amp;gt;frequency == 0) {
		/* Use default 400KHZ frequency */
		spi_cfg-&amp;gt;frequency = SDMMC_CLOCK_400KHZ;
	}
	/* the initial 74 clocks must be sent while CS is high */
	spi_cfg-&amp;gt;operation |= SPI_CS_ACTIVE_HIGH;
    LOG_DBG(&amp;quot;Initializing SPI CS PIN: %d&amp;quot;, spi_cfg-&amp;gt;cs.gpio.pin);  // I ADDED FOR DEBUGGING
    LOG_DBG(&amp;quot;SPI operation flags: %x&amp;quot;, spi_cfg-&amp;gt;operation);        // I ADDED FOR DEBUGGING
	ret = sdhc_spi_rx(config-&amp;gt;spi_dev, spi_cfg, data-&amp;gt;scratch, 10);
	if (ret != 0) {
		spi_cfg-&amp;gt;operation &amp;amp;= ~SPI_CS_ACTIVE_HIGH;
		return ret;
	}
	/* Release lock on SPI bus */
	ret = spi_release(config-&amp;gt;spi_dev, spi_cfg);
	spi_cfg-&amp;gt;operation &amp;amp;= ~SPI_CS_ACTIVE_HIGH;
    LOG_DBG(&amp;quot;Initializing SPI CS PIN: %d&amp;quot;, spi_cfg-&amp;gt;cs.gpio.pin);  // I ADDED FOR DEBUGGING
    LOG_DBG(&amp;quot;SPI operation flags: %x&amp;quot;, spi_cfg-&amp;gt;operation);        // I ADDED FOR DEBUGGING
	return ret;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now, when running this code I can see the CS active high bit is getting flipped as expected in my log output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;...
[00:00:00.267,242] &amp;lt;dbg&amp;gt; sd: sd_init_io: Host controller support 3.3V max
[00:00:00.267,242] &amp;lt;dbg&amp;gt; sd: sd_init_io: Resetting power to card
[00:00:00.268,341] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_init_card: Initializing SPI CS PIN: 28
[00:00:00.268,371] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_init_card: SPI operation flags: 7100         // bit 14 is set high
[00:00:00.268,768] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_init_card: DONE Initializing SPI CS PIN: 28
[00:00:00.268,768] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_init_card: DONE SPI operation flags: 3100    // bit 14 set back to low after init
[00:00:00.270,996] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd0 arg 0x0
[00:00:00.271,728] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd8 arg 0x1aa
...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However when probing the CS line I can see that it is still being treated as active low.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Louis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card error using fs_sample zephyr example code</title><link>https://devzone.nordicsemi.com/thread/501171?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2024 13:12:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fae5174f-83fd-4e4e-a616-81094c33123b</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Thanks for the good data. I&amp;#39;m discussing this internally it appear to be the same issue as you linked&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/29946"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/29946&lt;/a&gt;. I will update you as soon as I have something&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card error using fs_sample zephyr example code</title><link>https://devzone.nordicsemi.com/thread/501046?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 22:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b414b76-4472-4d0a-b974-911f6ff19c88</guid><dc:creator>Loubear</dc:creator><description>&lt;p&gt;Here is a link to the exact card which I am having issues with &lt;a href="https://www.samsung.com/us/business/support/owners/product/evo-plus-microsdhc-mb-mc32g/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I realized that when the Samsung card is first initialized it fails and then if I reset the board it then works as expected... The other two cards however succeed on the first attempt. Here are the steps I took to produce those logs:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Power on board with SD card slot empty.&lt;/li&gt;
&lt;li&gt;insert the Samsung SD card.&lt;/li&gt;
&lt;li&gt;Click the reset button on the devkit&lt;/li&gt;
&lt;li&gt;SD card init fails...&lt;/li&gt;
&lt;li&gt;wait&amp;nbsp;1 second&lt;/li&gt;
&lt;li&gt;click the reset button on the devkit again&lt;/li&gt;
&lt;li&gt;SD card init success!&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***
[00:00:00.251,953] &amp;lt;dbg&amp;gt; sd: sd_init_io: Host controller support 3.3V max
[00:00:00.251,953] &amp;lt;dbg&amp;gt; sd: sd_init_io: Resetting power to card
[00:00:00.255,554] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd0 arg 0x0
[00:00:00.256,317] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd8 arg 0x1aa
[00:00:00.257,049] &amp;lt;inf&amp;gt; sd: Legacy card detected, no CMD8 support
[00:00:00.257,049] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd8 arg 0x1aa
[00:00:00.257,781] &amp;lt;inf&amp;gt; sd: Legacy card detected, no CMD8 support
[00:00:00.257,812] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd8 arg 0x1aa
[00:00:00.258,544] &amp;lt;inf&amp;gt; sd: Legacy card detected, no CMD8 support
[00:00:00.258,575] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd8 arg 0x1aa
[00:00:00.259,307] &amp;lt;inf&amp;gt; sd: Legacy card detected, no CMD8 support
[00:00:00.259,338] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd8 arg 0x1aa
[00:00:00.260,040] &amp;lt;inf&amp;gt; sd: Legacy card detected, no CMD8 support
[00:00:00.260,070] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd8 arg 0x1aa
[00:00:00.260,803] &amp;lt;inf&amp;gt; sd: Legacy card detected, no CMD8 support
[00:00:00.260,833] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd8 arg 0x1aa
[00:00:00.261,566] &amp;lt;inf&amp;gt; sd: Legacy card detected, no CMD8 support
[00:00:00.261,596] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd8 arg 0x1aa
[00:00:00.262,329] &amp;lt;inf&amp;gt; sd: Legacy card detected, no CMD8 support
[00:00:00.262,329] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd8 arg 0x1aa
[00:00:00.263,061] &amp;lt;inf&amp;gt; sd: Legacy card detected, no CMD8 support
[00:00:00.263,092] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd8 arg 0x1aa
[00:00:00.263,824] &amp;lt;inf&amp;gt; sd: Legacy card detected, no CMD8 support
[00:00:00.263,854] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd8 arg 0x1aa
[00:00:00.264,587] &amp;lt;inf&amp;gt; sd: Legacy card detected, no CMD8 support
[00:00:00.264,587] &amp;lt;inf&amp;gt; sd: Card does not support CMD8, assuming legacy card
[00:00:00.264,617] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd0 arg 0x0
[00:00:00.265,350] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd58 arg 0x0
[00:00:00.266,204] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd55 arg 0x0
[00:00:00.266,937] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd41 arg 0x0
[00:00:00.267,669] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd58 arg 0x0
[00:00:00.268,432] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd10 arg 0x0
[00:00:00.268,768] &amp;lt;dbg&amp;gt; sd: sdmmc_spi_read_cxd: CMD10 failed: -22
[00:00:00.268,798] &amp;lt;dbg&amp;gt; sd: card_read_cid: Card MID: 0x0, OID:
[00:00:00.268,829] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd9 arg 0x0
[00:00:00.269,165] &amp;lt;dbg&amp;gt; sd: sdmmc_spi_read_cxd: CMD9 failed: -22
[00:00:00.269,195] &amp;lt;dbg&amp;gt; sd: sdmmc_read_csd: Card block count 0, block size 512
[00:00:00.269,195] &amp;lt;inf&amp;gt; sd: Maximum SD clock is under 25MHz, using clock of 8000000Hz
[00:00:00.269,226] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd55 arg 0x0
*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***
[00:00:00.251,983] &amp;lt;dbg&amp;gt; sd: sd_init_io: Host controller support 3.3V max
[00:00:00.252,014] &amp;lt;dbg&amp;gt; sd: sd_init_io: Resetting power to card
[00:00:00.255,584] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd0 arg 0x0
[00:00:00.256,347] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd8 arg 0x1aa
[00:00:00.257,080] &amp;lt;dbg&amp;gt; sd: sd_send_interface_condition: Found SDHC with CMD8 support
[00:00:00.257,110] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd59 arg 0x1
[00:00:00.257,843] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd58 arg 0x0
[00:00:00.258,697] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd55 arg 0x0
[00:00:00.259,429] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd41 arg 0x40000000
[00:00:00.270,233] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd55 arg 0x0
[00:00:00.270,996] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd41 arg 0x40000000
[00:00:00.271,728] &amp;lt;dbg&amp;gt; sd: sdmmc_send_ocr: SDMMC responded to ACMD41 after 1 attempts
[00:00:00.271,728] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd58 arg 0x40000000
[00:00:00.272,491] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd10 arg 0x0
[00:00:00.273,742] &amp;lt;dbg&amp;gt; sd: card_read_cid: Card MID: 0x1b, OID: MS
[00:00:00.273,773] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd9 arg 0x0
[00:00:00.275,024] &amp;lt;dbg&amp;gt; sd: sdmmc_read_csd: Card block count 62521344, block size 512
[00:00:00.275,054] &amp;lt;inf&amp;gt; sd: Maximum SD clock is under 25MHz, using clock of 8000000Hz
[00:00:00.275,085] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd55 arg 0x0
[00:00:00.275,207] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd51 arg 0x0
[00:00:00.275,390] &amp;lt;dbg&amp;gt; sd: sdmmc_read_scr: SD reports specification version 8
[00:00:00.275,390] &amp;lt;inf&amp;gt; main: Block count 62521344
Sector size 512
Memory Size(MB) 30528
[00:00:00.275,482] &amp;lt;dbg&amp;gt; sd: card_read: READ: Sector = 0, Count = 1
[00:00:00.275,512] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd17 arg 0x0
[00:00:00.278,320] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd13 arg 0x0
[00:00:00.278,442] &amp;lt;dbg&amp;gt; sd: card_read: READ: Sector = 2048, Count = 1
[00:00:00.278,442] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd17 arg 0x800
[00:00:00.280,426] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd13 arg 0x0
[00:00:00.280,548] &amp;lt;dbg&amp;gt; sd: card_read: READ: Sector = 2049, Count = 1
[00:00:00.280,548] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd17 arg 0x801
[00:00:00.282,531] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd13 arg 0x0
Disk mounted.

Listing dir /SD: ...
[00:00:00.282,714] &amp;lt;dbg&amp;gt; sd: card_read: READ: Sector = 34816, Count = 1
[00:00:00.282,745] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd17 arg 0x8800
[00:00:00.284,698] &amp;lt;dbg&amp;gt; sdhc_spi: sdhc_spi_send_cmd: cmd13 arg 0x0
[DIR ] SYSTEM~1
[FILE] TEST.TXT (size = 24)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Looking at the logic analyzer the 2 signals from the above procedure look almost identical except the SD card&amp;#39;s response to the CMD8 SD command is not correct the first time (see the SD card&amp;#39;s response on the MISO line):&lt;/p&gt;
&lt;p&gt;After step 3 above:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:244px;max-width:610px;" alt=" " height="244" src="https://devzone.nordicsemi.com/resized-image/__size/1220x488/__key/communityserver-discussions-components-files/4/init1cmd.png" width="610" /&gt;&lt;/p&gt;
&lt;p&gt;After step 6 above:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:234px;max-width:585px;" alt=" " height="234" src="https://devzone.nordicsemi.com/resized-image/__size/1170x468/__key/communityserver-discussions-components-files/4/init2cmd.png" width="585" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I took your suggestion and looked into the voltage levels and you can see that the voltage lines are at 3V voltage level in the analog waveform which is within spec for the Samsung card linked above.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To ensure it is not by board causing issues could this be tested with the &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF5340-Audio-DK"&gt;Nordic&amp;nbsp;5340 Audio Devkit&lt;/a&gt;&amp;nbsp;which has a built in SD card slot?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card error using fs_sample zephyr example code</title><link>https://devzone.nordicsemi.com/thread/500968?ContentTypeID=1</link><pubDate>Tue, 03 Sep 2024 12:05:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93ced441-4a45-4f9a-a85e-b0fbeda2c53e</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Everything looks fine according the to konfiguration. Do you have anything more info regarding the samsung SDHC card? I&amp;#39;m just wondering if it could be something like in this &lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/75350"&gt;issue&lt;/a&gt;&amp;nbsp;where the card uses a different voltage.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It would be interresting if you could add&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_SD_LOG_LEVEL_DBG=y&lt;/span&gt;&lt;br /&gt;&lt;span&gt;CONFIG_SDHC_LOG_LEVEL_DBG=y&lt;/span&gt;&lt;br /&gt;&lt;span&gt;CONFIG_SDMMC_LOG_LEVEL_DBG=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and run it again to see if we get more information&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Runar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card error using fs_sample zephyr example code</title><link>https://devzone.nordicsemi.com/thread/500642?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 22:33:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:339ec7a3-c87b-4d3c-8d4a-5d1978ac29c8</guid><dc:creator>Loubear</dc:creator><description>&lt;p&gt;I updated my board overlay in the following way:&lt;br /&gt;&lt;br /&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;gpio0 28 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;; # Changed to sdmmc-disk from mmc-disk
            status = &amp;quot;okay&amp;quot;;
        };
        spi-max-frequency = &amp;lt;25000000&amp;gt;;
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Changing from &amp;quot;zephyr,mmc-disk&amp;quot; to &amp;quot;zephyr,sdmmc-disk&amp;quot; fixed this issue for me on 2 of my SD cards; however it still does not work on one of my SD cards. I have a Lexar 64GB microSDXC and a SanDisk 64GB microSDXC both formatted with a 30GB Fat32 partition and it works fine. I have a Samsung 32GB microSDHC card and it still fails on this card. This card is not corrupt as I can plug it into a PC and see the files.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still wondering if this is related to the initialization procedure I mentioned in my previous post...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card error using fs_sample zephyr example code</title><link>https://devzone.nordicsemi.com/thread/500632?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 19:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d06e05bd-a91c-40cc-a042-4c9bbed0ce35</guid><dc:creator>Loubear</dc:creator><description>&lt;p&gt;Runar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have verified the physical connection to the SD card. The traces you can see in my logic analyzer output above are connected directly to my SD card breakout board (as seen below):&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/20240830_5F00_140041.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My issue also seems similar to this: &lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/29946"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/29946&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Louis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD Card error using fs_sample zephyr example code</title><link>https://devzone.nordicsemi.com/thread/500585?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2024 12:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc493e45-838e-4127-a18a-cc56dd92e407</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi Louis I will&amp;nbsp;look into&amp;nbsp;your case&lt;/p&gt;
&lt;p&gt;It seems to me that is similar to&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/55769"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/55769&lt;/a&gt;&amp;nbsp;and I think I would start this by verifying the physical connection to the sdcard as it appears to not be detected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>