<?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>SDK FATFS example Disk initialization failed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59734/sdk-fatfs-example-disk-initialization-failed</link><description>Hi 
 I&amp;#39;m using the unmodified fatfs example in SDK16 with PCA10040 dev board connected to a Mikroe SD-Click board which is nothing more than a breakout board for microSD cards 
 https://download.mikroe.com/documents/add-on-boards/click/microsd/microsd</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Mar 2020 13:43:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59734/sdk-fatfs-example-disk-initialization-failed" /><item><title>RE: SDK FATFS example Disk initialization failed</title><link>https://devzone.nordicsemi.com/thread/242721?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 13:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab20f067-f784-403f-8dc3-b7231fa4f10a</guid><dc:creator>Nick_RA</dc:creator><description>&lt;p&gt;Hi Kenneth&lt;/p&gt;
&lt;p&gt;Thanks for the quick reply. The error was 1 - R/W failure, and the problem was sdk_config.h:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NRF_SPI_DRV_MISO_PULLUP_CFG was set to pull down; change to NRF_GPIO_PIN_NOPULL and it works OK now including writing to the text file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;A couple of things. 1) Is this a bug in the example? Not sure why you&amp;#39;d need pull downs. also 2) Wouldn&amp;#39;t it be helpful to put the error codes in the application logging?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Anyway, working now thanks.&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: SDK FATFS example Disk initialization failed</title><link>https://devzone.nordicsemi.com/thread/242699?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 12:37:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:976bdfc8-f554-403a-b709-60319f546b1b</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Is the SD card formatted (FAT32 or FAT)?&lt;br /&gt;What is the value &amp;quot;disk_state&amp;quot; has in main.c at the point when the message is printed:&amp;quot;Disk initialization failed.&amp;quot;? &lt;br /&gt;(Compare it to the values in DRESULT in the diskio.h file and see if you get any information from that.)&lt;br /&gt;What is the flash size on the SD card?&lt;/p&gt;
&lt;p&gt;Maybe take a look at these cases if they can help:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/57984/can-t-get-fatfs-work-on-sdk-15-3"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/57984/can-t-get-fatfs-work-on-sdk-15-3&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50308/using-exfat-micro-sd-card"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/50308/using-exfat-micro-sd-card&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42203/sd-card-fatfs-example-not-working-at-low-init-frequency-but-does-work-at-higher-frequencies"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/42203/sd-card-fatfs-example-not-working-at-low-init-frequency-but-does-work-at-higher-frequencies&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39501/unable-to-get-fatfs_pca10028-example-from-nrf5_sdk_12-3-0-to-work-on-nrf51822-board"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/39501/unable-to-get-fatfs_pca10028-example-from-nrf5_sdk_12-3-0-to-work-on-nrf51822-board&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/25951/sd-card-example-not-working-fine"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/25951/sd-card-example-not-working-fine&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>