<?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>How to write SDcard with fatfs on different pin.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39335/how-to-write-sdcard-with-fatfs-on-different-pin</link><description>Hi, 
 
 I am using fatfs of nRF5_SDK_15.0.0_a53641a. 
 I am writing a program with keil. 
 
 I am currently doing SPI communication with BLENanov2 ( nRF52832 ) and SD card with fatfs. 
 
 
 I tried writing fatfs by SPI communication with the pin setting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Oct 2018 09:05:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39335/how-to-write-sdcard-with-fatfs-on-different-pin" /><item><title>RE: How to write SDcard with fatfs on different pin.</title><link>https://devzone.nordicsemi.com/thread/153162?ContentTypeID=1</link><pubDate>Wed, 17 Oct 2018 09:05:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63663fa8-5a2e-451c-be57-22d7dfa14bd6</guid><dc:creator>y001</dc:creator><description>&lt;p&gt;I rewrote sdk_config.h and it worked well !!&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write SDcard with fatfs on different pin.</title><link>https://devzone.nordicsemi.com/thread/152980?ContentTypeID=1</link><pubDate>Tue, 16 Oct 2018 08:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed56d727-6ba3-4c56-aa84-6523ee97589f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Like I suggested before, you are initializing NRF_LOG and have the UART backend enabled. This use GPIO P0.06 by default and will prevent you from using the pin with SPI. To disable NRF_LOG module, change your sdk_config.h file to the following defines:&lt;/p&gt;
&lt;p&gt;#define NRF_LOG_ENABLED 0&lt;/p&gt;
&lt;p&gt;#define NRF_LOG_BACKEND_UART_ENABLED 0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write SDcard with fatfs on different pin.</title><link>https://devzone.nordicsemi.com/thread/152947?ContentTypeID=1</link><pubDate>Tue, 16 Oct 2018 04:28:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e2bd259-0a1a-4f08-8df2-9fa180d62e5f</guid><dc:creator>y001</dc:creator><description>&lt;p&gt;Is this OK with this?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0257.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../0257.sdk_5F00_config.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0385.main.c"&gt;devzone.nordicsemi.com/.../0385.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write SDcard with fatfs on different pin.</title><link>https://devzone.nordicsemi.com/thread/152800?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 07:32:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09686863-4a1b-40c5-84b7-5bae7840260d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Yes, any GPIO of the nRF52832 can be used for UART interface. Did you check your code and make sure that you do not initialize UART of NRF_LOG with UART backend on the same pins?&lt;/p&gt;
&lt;p&gt;Can you upload your main.c and sdk_config.h files?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write SDcard with fatfs on different pin.</title><link>https://devzone.nordicsemi.com/thread/152761?ContentTypeID=1</link><pubDate>Sat, 13 Oct 2018 15:01:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bf4571f-e033-45b5-b904-737abda0cd88</guid><dc:creator>y001</dc:creator><description>&lt;p&gt;Thank you for reply!&lt;/p&gt;
&lt;p&gt;It is written that the nRF52DK you are using can be used with SPI for P0.06-P0.08,but should I change the setting?&lt;/p&gt;
&lt;p&gt;I would be happy if you let me know if you know the solution.&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_B930AF30EA30FC30F330B730E730C330C830_-_2800_2_2900_.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write SDcard with fatfs on different pin.</title><link>https://devzone.nordicsemi.com/thread/152760?ContentTypeID=1</link><pubDate>Sat, 13 Oct 2018 14:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3be914c6-cbfe-48c1-b225-065dc2d8b26a</guid><dc:creator>y001</dc:creator><description>&lt;p&gt;Thank you for reply!&lt;/p&gt;
&lt;p&gt;The chenged part is only pin number.&lt;/p&gt;
&lt;p&gt;After changing the pin, I used the LED to check if it is usable.&lt;/p&gt;
&lt;p&gt;Should I show all thw contents of main.c?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write SDcard with fatfs on different pin.</title><link>https://devzone.nordicsemi.com/thread/152361?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 12:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efb9f34a-ee28-4f4e-b823-1d5cc9d992e4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Please make sure you do not initialize UART or NRF_LOG in the application. The pins P0.05-P0.08 is by default used for &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52_dev_kit/vir_com_port.html?cp=2_1_4_4_1"&gt;UART interface on the nRF52-DK&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write SDcard with fatfs on different pin.</title><link>https://devzone.nordicsemi.com/thread/152323?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 09:51:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d59a34e1-9ded-47da-9678-3b1c6d1bcb2e</guid><dc:creator>awneil</dc:creator><description>[quote userid="73638" url="~/f/nordic-q-a/39335/how-to-write-sdcard-with-fatfs-on-different-pin"],I can not write SDcard[/quote]
&lt;p&gt;So what debugging have you done to find where it&amp;#39;s going wrong?&lt;/p&gt;
&lt;p&gt;Have you confirmed that all those pins are available for use?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Use &amp;#39;Insert Code&amp;#39; to properly post source code:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1539165099266v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>