<?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 example not working fine</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25951/sd-card-example-not-working-fine</link><description>Hi All, 
 I am working on fatfs example from sdk 12.2.0 on pca10040, nrf52 dk, nrf52832. And i did not change anything in the code but it seems that my sd card is not getting initialized as i am getting following message on putty:- 
 APP:INFO:
FATFS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Oct 2019 18:32:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25951/sd-card-example-not-working-fine" /><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/214002?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 18:32:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9f5a843-ef7d-4b55-b449-6b49a75b013a</guid><dc:creator>Goose</dc:creator><description>&lt;p&gt;Hi there, I also experienced issues with the SD card.&lt;/p&gt;
&lt;p&gt;This worked for me:&lt;/p&gt;
&lt;p&gt;- Set all pins to PULLUP or NOPULL&lt;/p&gt;
&lt;p&gt;- Place a 20K resistor between 3.3V and MISO (basically an external pullup)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I also experienced a problem where if I have certain NRF pins set as one of the SD pins, the SD example would freeze and not proceed past a certain point, even with nothing connected to the board. (Example being setting P0.09 to SD SPI CLK will freeze, but changing to P0.20 works even though nothing is connected to the board. (This appears to be an SDK bug)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/213813?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 08:22:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2984e356-d08c-4856-b4d6-5aabc14f240f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you double-checked the connections to the SD card? I have tested this example multiple times with different SD cards and have not experienced issues when the connections are correct. Please also test with different SD cards and sockets if you have made sure everything else is correct.&lt;/p&gt;
&lt;p&gt;If nothing of this helps, please post a new case where you describe your issue in detail, along with all debugging steps you have tried.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/213728?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 16:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af2a9449-5e5f-47ec-8196-90c11c61eb15</guid><dc:creator>NickH</dc:creator><description>&lt;p&gt;I also checked the SD card is formatted OK (MS-DOS (FAT16)) and that I can write to it via PC.&lt;/p&gt;
&lt;p&gt;I have two SD cards and get the same error with both and they take 3.3v not 5v.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/213722?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 15:32:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8932d1e-f94c-4850-b173-41e1b2a40799</guid><dc:creator>NickH</dc:creator><description>&lt;p&gt;I am having the same issue using SDK 15.3 and Segger IDE with the fatfs example on&amp;nbsp;&lt;span&gt;pca10040 and nrf52 dk.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I get &amp;quot;Disk initialization failed&amp;quot; as the&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;m_drives[drv].config.wait_func = default_wait_func;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;Returns&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;m_drives[drv].config.last_result == &lt;/code&gt;NRF_BLOCK_DEV_RESULT_IO_ERROR&lt;/pre&gt;
&lt;p&gt;I have tried the setting&amp;nbsp;&lt;span&gt;APP_SDCARD_FREQ_DATA and&amp;nbsp;APP_SDCARD_FREQ_INIT to lower frequencies and also setting the&amp;nbsp;NRF_SPI_DRV_MISO_PULLUP_CFG to NRF_GPIO_PIN_NOPULL but I still get the same error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m also pretty sure the VDD is the right way around as an LED lights up on the SD board (mikroBUS microSD click).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any pointers on what else to try gratefully received...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Nick&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/102233?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2017 07:55:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:008b836c-dcb6-4847-adab-42b1d716736d</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;This bug is known and has been corrected in SDK13 documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/102235?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2017 06:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4771bd6c-9e17-4c88-bc5c-0e7cdd730405</guid><dc:creator>Peter_E</dc:creator><description>&lt;p&gt;This table still shows wrong GND and VCC connection:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v12.2.0%2Fapp_sdcard_example.html&amp;amp;cp=4_0_4_4_5_30"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Pin3 should be GND, Pin4 is VCC&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/102234?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2017 06:26:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcbce933-88ac-410e-a144-323d7cf8998c</guid><dc:creator>Peter_E</dc:creator><description>&lt;p&gt;Ok, changed NRF_SPI_DRV_MISO_PULLUP_CFG to NRF_GPIO_PIN_NOPULL and it works. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/102232?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2017 13:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4bda203-5fc4-424e-a5a0-1b213bce3023</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;There were changes in SPI MISO Pulldown settings between SDK13 and SDK14. I guess this is the reason you are not able to communicate with the SD card. Please try to change SDK config parameter as I suggested.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/102236?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2017 13:14:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1f470d7-6baa-41f7-af60-96c2109dd60b</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Did you try to change MISO pull-up?&lt;/p&gt;
&lt;p&gt;It is SDK config please set parameter: NRF_SPI_DRV_MISO_PULLUP_CFG to NRF_GPIO_PIN_NOPULL.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/102231?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2017 12:13:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60476425-8398-4bce-ab7f-db43494e5bed</guid><dc:creator>Peter_E</dc:creator><description>&lt;p&gt;I seems that the problem is not hardware related. I tried the fatfs example with SDK 12.3 and Keil, this configuration works, whereas SDK 14.1 with Segger Embedded Studio fails.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/102230?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 09:55:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3839026-4d05-45f7-9c0e-020001763063</guid><dc:creator>kl-cruz</dc:creator><description>&lt;p&gt;Well... Try slower ones. If You have good but long connections I think You should try with 125kHz or 250kHz in command and data config. Then try to increase data config freq, up to frequency when communication will be broken. In case of any problem double check connections. Cables have to be well-connected&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/102227?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 09:49:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05ce16f0-b929-42c7-aced-97edd78061ca</guid><dc:creator>YASH</dc:creator><description>&lt;p&gt;Ok Thanks. what frequency should i set it as?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/102229?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 09:37:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35ad76c8-2c2f-49d8-9253-cccf74cf862f</guid><dc:creator>kl-cruz</dc:creator><description>&lt;p&gt;Try to find&lt;/p&gt;
&lt;p&gt;APP_SDCARD_FREQ_DATA&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;APP_SDCARD_FREQ_INIT&lt;/p&gt;
&lt;p&gt;in:&lt;/p&gt;
&lt;p&gt;examples\peripheral\fatfs\pca10040\blank\config\sdk_config.h  file. It is well described how to set proper values.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/102228?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 09:29:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aa67c3a-cde4-4ff8-9e3a-c119fc1b6bb8</guid><dc:creator>YASH</dc:creator><description>&lt;p&gt;How should i do that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/102225?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 09:27:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90632b9c-ad42-4508-8ee9-57748f9d258a</guid><dc:creator>YASH</dc:creator><description>&lt;p&gt;Hello, the connections are according to this documentation that you shared. Is there any other way to get the solution out of it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/102226?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 09:23:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc2a01f8-4f39-4f7f-ba6f-273d5757c7cf</guid><dc:creator>kl-cruz</dc:creator><description>&lt;p&gt;You can also try to slow down SPI frequency a little&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd card example not working fine</title><link>https://devzone.nordicsemi.com/thread/102224?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 08:53:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6916b74e-6437-4bae-b135-44c33356699c</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Please double check your connection as there is a bug in SDK12.2 docummentation for SD card example.
VDD and GND are switched in the table. Here you can find correct connection settings:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/app_sdcard_example.html?cp=4_0_4_4_5_30"&gt;infocenter.nordicsemi.com/.../app_sdcard_example.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The other problem might be with MISO PULLUP settings. In SDK &amp;lt;= 13 it was set to &amp;quot;no pullup&amp;quot;, beginning from SDK_14 by default MISO is set to pulldown. This can cause problem for some SD cards. In order to fix it try to change SDK config parameter: NRF_SPI_DRV_MISO_PULLUP_CFG to NRF_GPIO_PIN_NOPULL.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>