<?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>SPI bus for SD card and other slaves</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68644/spi-bus-for-sd-card-and-other-slaves</link><description>Hello, I have a problem with my own designed board, It has nRF52832 and some other sensors which communicate over SPI, also I have a SD card on the same bus that works fine while I use fatfs example. I tried to merge my code with fatfs example but I faced</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Nov 2020 09:39:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68644/spi-bus-for-sd-card-and-other-slaves" /><item><title>RE: SPI bus for SD card and other slaves</title><link>https://devzone.nordicsemi.com/thread/282214?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2020 09:39:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44c59533-10f0-46ca-9e53-5cb07d259fab</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Some SD cards requires pullup on the MISO line, but this is related to the SD card, and not the nRF SoC. You should pullup the line on the SD card side of the level converter for the pullup to have any effect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI bus for SD card and other slaves</title><link>https://devzone.nordicsemi.com/thread/282213?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2020 09:19:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aec53a87-8a41-48e7-a393-d61f0a3e4bee</guid><dc:creator>bardia3000</dc:creator><description>&lt;p&gt;I decided to redesign my PCB, But I have another problem, should I pull up the MISO pin of SD card? As I said before I use TXB0108 as level translator (my micro uses 1v8 but my SD card uses 3v3), Which side of TXB0108 should be pulled up (near micro or near sdcard)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI bus for SD card and other slaves</title><link>https://devzone.nordicsemi.com/thread/281801?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 12:49:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7a604af-e3ba-43c6-9bf0-d00371d3d4f7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;If you fully uninitialize the SPI driver&amp;nbsp;&lt;strong&gt;&lt;em&gt;and&amp;nbsp;&lt;/em&gt;&lt;/strong&gt;SD-card library/FatFS between each time it is used, this should be possible, however you need to do this for both, as the SD-card library uses the same SPI driver and instance as you use in your application. If you keep one running, it will be left in a wrong state in one of the places being used.&lt;/p&gt;
&lt;p&gt;Can you post the full code for how you have implemented this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI bus for SD card and other slaves</title><link>https://devzone.nordicsemi.com/thread/281591?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 13:59:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6b45046-dfcd-4a06-98c1-9e7d22692f64</guid><dc:creator>bardia3000</dc:creator><description>&lt;p&gt;&lt;span&gt;Unfortunately I designed and got the PCB, for next time I will change it, But for now is this possible?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI bus for SD card and other slaves</title><link>https://devzone.nordicsemi.com/thread/281408?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 19:27:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7739ea20-d85c-4741-b2f0-86a76f9b0b44</guid><dc:creator>bardia3000</dc:creator><description>&lt;p&gt;Thanks for you reply, I tried another idea, I uninitialized SPI just before start of the SD card code using &amp;quot;nrf_drv_spi_uninit(&amp;amp;spi);&amp;quot; and again reinitialized it at the end of using SD card, but it stays at &amp;quot;diskio_blkdev.c&amp;quot; line 120: &amp;quot;m_drives[drv].config.wait_func();&amp;quot;, I can&amp;#39;t find what is wrong with this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI bus for SD card and other slaves</title><link>https://devzone.nordicsemi.com/thread/281286?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 10:30:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0138aa63-f34b-48e7-94d3-3f5f4cdbc966</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;See my answer in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/25734/nrf52832-fatfs-and-other-spi-slave-devices/101384#101384"&gt;this thread&lt;/a&gt;. Do you need to have the SD-card and the other slaves on the same SPI bus? It would be much simpler to run the SD-card on a separate SPI instance, with its own GPIOs. The nRF52832 has &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/spim.html#unique_1705305083"&gt;3 available SPI(M) instances&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>