<?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>NRF9160 SD card access via SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59430/nrf9160-sd-card-access-via-spi</link><description>Hi, 
 I am following a client case that they have issue on accessing SD card via SPI port. 
 I used the sample project fat_fs on nrf9160_pca10090 DK and used SPI_3 to access the SD card. 
 After some testing and I face the exact same issue from other</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 27 Feb 2021 11:05:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59430/nrf9160-sd-card-access-via-spi" /><item><title>RE: NRF9160 SD card access via SPI</title><link>https://devzone.nordicsemi.com/thread/296681?ContentTypeID=1</link><pubDate>Sat, 27 Feb 2021 11:05:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:044f1346-fc72-4c34-96f7-28bbba7e58e4</guid><dc:creator>ns murthy</dc:creator><description>&lt;p&gt;Any one tested with Strontium micro HCSD card?&amp;nbsp; I followed the abobe suggestion. I am getting the error&amp;nbsp;&amp;nbsp;Storage init ERROR!&amp;nbsp; GPIO Pins of nrf9160 used: CLK-29,MOSI-27,MISO-30,CS-26&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SD card access via SPI</title><link>https://devzone.nordicsemi.com/thread/242888?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 09:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:302f1a0e-aadc-4941-8fe7-7f299ebae1ab</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Great! Will close this issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SD card access via SPI</title><link>https://devzone.nordicsemi.com/thread/242863?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2020 08:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:691abdf2-1506-415e-a8c7-770a98168181</guid><dc:creator>Jagruti</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tried this and it worked for me. Thanks a lot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SD card access via SPI</title><link>https://devzone.nordicsemi.com/thread/242347?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 09:51:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37a315b3-d3a2-4876-9eab-09921275c782</guid><dc:creator>Zack Mak</dc:creator><description>&lt;p&gt;I didn&amp;#39;t get any error in fat_fs demo once the SPI buffer is assigned. I could mount the card and read the root folder structure.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SD card access via SPI</title><link>https://devzone.nordicsemi.com/thread/242336?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 09:19:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce43150d-5e74-4f28-be2f-8d954706b834</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Zack,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Zack Mak"]The solution to this problem is to set the &amp;quot;Size of RAM buffers for SPIM peripherals&amp;quot; to some number. If the size is set to 0, the SPI transceive function will always return error.[/quote]
&lt;p&gt;Thank you for pointing that out. I was not aware of this as I have not been able to test with an SD card.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The customer writes that he still has issues, an error from&amp;nbsp;&lt;span&gt;disk_access_init(). Are you getting this as well?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Øyvind&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SD card access via SPI</title><link>https://devzone.nordicsemi.com/thread/242163?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 15:58:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98a347d1-c16d-4932-a2e5-8f734b141965</guid><dc:creator>Zack Mak</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I fixed that problem and now able to access SD cards.&lt;/p&gt;
&lt;p&gt;The &amp;quot;no GPIO device&amp;quot; message turns out unrelated to this issue at all. The CS pin is actually controlled by the SDHC_SPI driver, not the SPI driver.&lt;/p&gt;
&lt;p&gt;The solution to this problem is to set the &amp;quot;Size of RAM buffers for SPIM peripherals&amp;quot; to some number. If the size is set to 0, the SPI transceive function will always return error.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SD card access via SPI</title><link>https://devzone.nordicsemi.com/thread/241896?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 14:41:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc13d70e-9809-4e76-b5fd-b35c8833c149</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;nbsp;gave an &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/58558/reading-sd-card-on-nrf9160dk/241784#241784"&gt;answer to the customer&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SD card access via SPI</title><link>https://devzone.nordicsemi.com/thread/241313?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 10:14:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8a170a8-4833-47e8-897c-fb65f1dcc370</guid><dc:creator>Zack Mak</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;FYR&lt;/p&gt;
&lt;p&gt;I added the CONFIG_GPIO=y to prj.conf and the error message is still there.&lt;/p&gt;
&lt;p&gt;I also tried the hex file that you uploaded in another thread. The error message is still there.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 SD card access via SPI</title><link>https://devzone.nordicsemi.com/thread/241305?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 09:50:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5470eec2-4511-45bc-ac53-5f77ecf1f0f3</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I added the CONFIG_GPIO=y to prj.conf and that removed the&amp;nbsp;&lt;span&gt;&amp;quot;CS control inhibited (no GPIO device)&amp;quot; error on my side.&lt;br /&gt;&lt;br /&gt;Have forwarded this to our NCS team, and will get back to you/customer&amp;nbsp;ASAP.&lt;br /&gt;&lt;br /&gt;Kind regards,&amp;nbsp;&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>