<?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>FatFS example with SD card: disk initialization fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75835/fatfs-example-with-sd-card-disk-initialization-fails</link><description>Hello! 
 I try to run FatFS example (SD card example, pca10040) from nRF5 SDK on my nrf52832 (ebyte e73) with microSD card with no success. No matter what I&amp;#39;m still getting the same error: disk initialization failed ( disk_initialize (0) returns 1). I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Jun 2021 12:58:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75835/fatfs-example-with-sd-card-disk-initialization-fails" /><item><title>RE: FatFS example with SD card: disk initialization fails</title><link>https://devzone.nordicsemi.com/thread/313933?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 12:58:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdf74194-014c-4103-9585-45a872f0b3a0</guid><dc:creator>awneil</dc:creator><description>[quote userid="103000" url="~/f/nordic-q-a/75835/fatfs-example-with-sd-card-disk-initialization-fails/313881#313881"]in diskio_blkdev.c: nrf_blk_dev_init returns with code 17 (0x11) [/quote]
&lt;p&gt;So have you looked-up what that&amp;nbsp;code means?&lt;/p&gt;
&lt;p&gt;And have you stepped into that code to see where, exactly, it is failing; ie, what is causing it to return that code ?&lt;/p&gt;
&lt;p&gt;FatFs documentation:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://elm-chan.org/fsw/ff/00index_e.html"&gt;elm-chan.org/.../00index_e.html&lt;/a&gt;&lt;/p&gt;
[quote userid="103000" url="~/f/nordic-q-a/75835/fatfs-example-with-sd-card-disk-initialization-fails/313881#313881"]I haven&amp;#39;t used scope or analyser and do not have any.[/quote]
&lt;p&gt;Getting this to work requires that the hardware is correct - how did you plan to test/debug the hardware?&lt;/p&gt;
&lt;p&gt;How have you verified that your connections are correct &amp;amp; working?&lt;/p&gt;
&lt;p&gt;Lots of info about SD-Cards &amp;amp; their hardware at the bottom of the&amp;nbsp;&lt;a href="http://elm-chan.org/fsw/ff/00index_e.html"&gt;http://elm-chan.org/fsw/ff/00index_e.html&lt;/a&gt;&amp;nbsp;page,&amp;nbsp; under &amp;#39;&lt;strong&gt;Resources&lt;/strong&gt;&amp;#39; - in particular, see &amp;#39;&lt;a href="http://elm-chan.org/docs/mmc/mmc_e.html" rel="noopener noreferrer" target="_blank"&gt;&lt;strong&gt;How to Use MMC/SDC&lt;/strong&gt;&lt;/a&gt;&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FatFS example with SD card: disk initialization fails</title><link>https://devzone.nordicsemi.com/thread/313881?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 10:16:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2ba5e95-8aa3-4610-98df-2af45a446738</guid><dc:creator>trashman</dc:creator><description>&lt;p&gt;Yes, I tried following step by step what is happening and:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;in diskio_blkdev.c: nrf_blk_dev_init returns with code 17 (0x11) in disk_initialize function&lt;/li&gt;
&lt;li&gt;in nrf_block_dev_sdc.c: in block_dev_sdc_init function the following error event is called: {ev_type=0xb5, result=0x34, p_blk_req=0,&amp;nbsp;p_work-&amp;gt;p_context}&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you can give me any hint I can debug further to see more, but don&amp;#39;t know what to look for.&lt;/p&gt;
&lt;p&gt;No, I haven&amp;#39;t used scope or analyser and do not have any.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FatFS example with SD card: disk initialization fails</title><link>https://devzone.nordicsemi.com/thread/312727?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 00:24:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e585c78-874c-441e-8d72-aef8a7e1a407</guid><dc:creator>awneil</dc:creator><description>[quote userid="103000" url="~/f/nordic-q-a/75835/fatfs-example-with-sd-card-disk-initialization-fails"](&lt;span style="color:rgba(153, 51, 0, 1);font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;span style="color:rgba(0, 51, 102, 1);"&gt;disk_initialize&lt;/span&gt;(0)&lt;/span&gt; returns 1).[/quote]
&lt;p&gt;have you stepped into disk_initialise() to see where, exactly, it is failing; ie, what is causing it to return 1 ?&lt;/p&gt;
&lt;p&gt;have you used a scope or analyser to&amp;nbsp;see what&amp;#39;s happening on the wires?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>