<?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 library speed selection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123816/sd-card-library-speed-selection</link><description>Hi, 
 I&amp;#39;m developing a project that requires to write GPS data to an SD card. I&amp;#39;m using Nordic SD card library. 
 I&amp;#39;m able to initialize and interact with the SD card only if I&amp;#39;m setting both APP_SDCARD_FREQ_INIT and APP_SDCARD_FREQ_DATA to 536870912</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Aug 2025 12:53:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123816/sd-card-library-speed-selection" /><item><title>RE: SD card library speed selection</title><link>https://devzone.nordicsemi.com/thread/546467?ContentTypeID=1</link><pubDate>Fri, 22 Aug 2025 12:53:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3d17f1d-5e22-4d62-bb5f-ed8620d03e9e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am wondering what is actually happening in the communication here. Can you share a logic analyzer trace of the SPI lines in a working and non working case (for isntance 2 MHz and 250 kHz)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD card library speed selection</title><link>https://devzone.nordicsemi.com/thread/546067?ContentTypeID=1</link><pubDate>Tue, 19 Aug 2025 13:50:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:992b9330-a537-4662-a9d8-a4a419432c26</guid><dc:creator>Alexandre Desgagne</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried setting&amp;nbsp;NRFX_SPIM_MISO_PULL_CFG to 3 (Pull up) and setting init speed at 125Khz,&amp;nbsp;250kHz, etc. but still working only at 2Mhz and 4Mhz.&lt;/p&gt;
&lt;p&gt;This setting is used in nrfx_spim.c (266 to 276).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// - MISO (optional) - input,
if (p_config-&amp;gt;miso_pin != NRFX_SPIM_PIN_NOT_USED)
{
    miso_pin = p_config-&amp;gt;miso_pin;
    nrf_gpio_cfg_input(miso_pin, (nrf_gpio_pin_pull_t)NRFX_SPIM_MISO_PULL_CFG);
}
else
{
    miso_pin = NRF_SPIM_PIN_NOT_CONNECTED;
}
p_cb-&amp;gt;miso_pin = p_config-&amp;gt;miso_pin;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I found that post that looks pretty much like my issue too.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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;SD Card FATFS example not working at low init frequency, but does work at higher frequencies&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you think I need to configure MOSI and CS pull up too?&lt;/p&gt;
&lt;p&gt;Thanks,&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD card library speed selection</title><link>https://devzone.nordicsemi.com/thread/546050?ContentTypeID=1</link><pubDate>Tue, 19 Aug 2025 12:54:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:513c8c3c-f555-4e3c-83bc-7d8d0677103d</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Use oscilloscope.&lt;/p&gt;
&lt;p&gt;Note that SD card init requires a pullup on MISO, or that you enable the internal one in the NRF chip. The card powers up in open drain mode.&lt;/p&gt;
&lt;p&gt;Careful: Cards from different manufacturers can vary in SPI mode behaviour&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD card library speed selection</title><link>https://devzone.nordicsemi.com/thread/546046?ContentTypeID=1</link><pubDate>Tue, 19 Aug 2025 12:37:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb6e5d1d-94d1-4100-8364-dc18fb36af31</guid><dc:creator>Alexandre Desgagne</dc:creator><description>&lt;p&gt;I tried setting the INIT frequency to 2Mhz and DATA frequency to 500kHz and this is working too. It feels like the problem is only at initialization.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SD card library speed selection</title><link>https://devzone.nordicsemi.com/thread/546044?ContentTypeID=1</link><pubDate>Tue, 19 Aug 2025 12:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:138ddc44-98e0-41b0-a56b-873d652003a4</guid><dc:creator>Alexandre Desgagne</dc:creator><description>&lt;p&gt;Note that the SD card communication is also working when setting both init and data frequencies to 4MHz.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>