<?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>NRF52 SD card example intermittent problem initialising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42790/nrf52-sd-card-example-intermittent-problem-initialising</link><description>I am trying to get an SD card working with the NRF52832 chip, starting with the sd card example (SDK 14.2) using the fatfs module. 
 The SD card I am using is a Kingston 8GB class 4 card. 
 The nordic chip is in a Dynastream M8 module. 
 The problem is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Mar 2019 11:49:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42790/nrf52-sd-card-example-intermittent-problem-initialising" /><item><title>RE: NRF52 SD card example intermittent problem initialising</title><link>https://devzone.nordicsemi.com/thread/174996?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 11:49:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23d855ed-4abd-438a-be18-bad6e56be0e0</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, sorry, I&amp;#39;ve been out traveling. I&amp;#39;m not really sure what the difference between the module and just connecting the SD card with wires is. Except for suggesting that there&amp;#39;s somehow a bad connection.&amp;nbsp; The level converter would amplify the signals even though the voltage is the same. Further testing shows that connecting the wires directly only works if I do not attach a logic analyzer to the MISO pin. If the analyzer is connected, it&amp;#39;s not possible to initialize the SD card after a reset. Then I need to power cycle the SD card.&lt;/p&gt;
&lt;p&gt;I have a feeling that the capacitance on the MISO pin is too high in order for the SD card to being able to pull it up or down (even though this only applies after a reset, which is weird). I see in your schematics that you have two devices connected to the MISO pin. Can you try to cut the trace to the other device and see what happens?&lt;/p&gt;
&lt;p&gt;I have to do some more testing to see what this really is. Sorry for taking so long, but I have some more time to look into this now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SD card example intermittent problem initialising</title><link>https://devzone.nordicsemi.com/thread/172792?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 13:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fa3d5b5-bc5c-4c63-9200-be2fea230117</guid><dc:creator>bgarrood</dc:creator><description>&lt;p&gt;Hello Stian.&amp;nbsp; I left a message 11 days ago?&amp;nbsp; Would you mind replying?&amp;nbsp; Would be really helpful to confirm what you meant in your message.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SD card example intermittent problem initialising</title><link>https://devzone.nordicsemi.com/thread/171014?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 06:52:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c62452a5-e824-4411-be23-c41d0c26f116</guid><dc:creator>bgarrood</dc:creator><description>&lt;p&gt;Thank you for testing this Stian.&lt;/p&gt;
&lt;p&gt;I do have a ground plane, it just isn&amp;#39;t shown in the schematic I sent you.&lt;/p&gt;
&lt;p&gt;Great news that you can replicate my problem, but I dont quite understand the difference between your two setups:&lt;/p&gt;
&lt;p&gt;When going through the module with voltage regulator and level converter it works as expected, but when you connect the SPI lines directly (bypassing the level converter) it doesnt?&amp;nbsp; Why do you think this is?&amp;nbsp; What is the level converter doing as presumably you have 3.3V on both sides?&amp;nbsp; You suggest a poor connection, but why would this be if the lines are connected directly?&lt;/p&gt;
&lt;p&gt;Almost there.&amp;nbsp; Thank you again so much!&amp;nbsp; It really is a massive help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SD card example intermittent problem initialising</title><link>https://devzone.nordicsemi.com/thread/170988?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 21:14:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30cdad7b-65e6-4159-a8df-754beadc0a50</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I tested with the SD card I got and it seems to be working fine when running your code. I&amp;#39;m using a module with a 3.3V regulator and level converter for the SPI lines. If I just connect the SD card with wires to the GPIOs of the chip I see some similar (random) symptoms as you mention in the original post. It suddenly stops responding and sometimes I get high current consumption. So this makes me think that what you are seeing is because of bad connection. When looking at your PCB design, I see no ground plane? Without a ground plane or proper ground signal things can get really noisy. You get cross talk between lines, voltage drops etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SD card example intermittent problem initialising</title><link>https://devzone.nordicsemi.com/thread/169273?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 10:53:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5067e028-45b0-4230-a305-83fe42906447</guid><dc:creator>bgarrood</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;That&amp;#39;s great, thank you.&amp;nbsp; I attach pdfs of board layout and schematic.&amp;nbsp; Board pdf is a bit poor, let me know if I can send in any other format.&amp;nbsp; I am using EagleCad for the design.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Barney&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/CB_2D00_015_5F00_3_2D00_BRD.pdf"&gt;devzone.nordicsemi.com/.../CB_2D00_015_5F00_3_2D00_BRD.pdf&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/CB_2D00_015_5F00_3_2D00_SCH.pdf"&gt;devzone.nordicsemi.com/.../CB_2D00_015_5F00_3_2D00_SCH.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SD card example intermittent problem initialising</title><link>https://devzone.nordicsemi.com/thread/169258?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 10:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aaa147e-3692-4096-a95c-aab50e4cd310</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Ok, I ordered one now. It will probably be here in a couple of days. Can you please send me the schematics and layout of your board? Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SD card example intermittent problem initialising</title><link>https://devzone.nordicsemi.com/thread/169096?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2019 14:54:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df2df379-98aa-4828-9c7b-1f5cb44f6f10</guid><dc:creator>bgarrood</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for the reply.&lt;/p&gt;
&lt;p&gt;I am not using a module, I am interfacing the card directly from nRF GPIOs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The card I am using is&amp;nbsp;a Kingston SDC4/8GBSP (&lt;a href="https://www.kingston.com/en/flash/microsd_cards/sdc4"&gt;https://www.kingston.com/en/flash/microsd_cards/sdc4&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;The sd card adapter is surface-mounted to my board, so not easy to see the responses directly, so hard for me to compare to what you have.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you were able to try and replicate it would help me out a lot.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you again for your time.&amp;nbsp; Much appreciated!&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;
&lt;p&gt;Barney&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SD card example intermittent problem initialising</title><link>https://devzone.nordicsemi.com/thread/168917?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 15:18:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55da6dc4-c714-4a6e-ad9e-8dc6a3039382</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Sorry, I&amp;#39;m not able to reproduce the behavior here. When I&amp;#39;m running your code it re-initializes just fine, and the current consumption seems to be fine&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll post the SPI trace, so then you can connect a logic analyzer and see if you get the same response from the SD card&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-6117815d063f4d658cd1f66281ff3add/init_2D00_reinit.csv"&gt;devzone.nordicsemi.com/.../init_2D00_reinit.csv&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still worried about the voltage though. The SD card socket module I used here could not handle 3.2V, it had to be 3.3V. Are you using a module, or are you interfacing the SD card directly from the nRF GPIOs? I&amp;#39;m thinking that something goes wrong during uninitialization leading to the high current consumption, and then because of the high current, the voltage drop is too high to re-init, if it&amp;#39;s already on the limit.&lt;/p&gt;
&lt;p&gt;Are you able to give me some more info about the SD card? A link would be fine. Then I can order one to test here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SD card example intermittent problem initialising</title><link>https://devzone.nordicsemi.com/thread/168436?ContentTypeID=1</link><pubDate>Tue, 29 Jan 2019 12:11:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39c99f85-d47a-4792-97ac-e3243a121297</guid><dc:creator>bgarrood</dc:creator><description>&lt;p&gt;Hello Stian, are you able to give me any suggestions with this?&amp;nbsp; I am still stuck.&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: NRF52 SD card example intermittent problem initialising</title><link>https://devzone.nordicsemi.com/thread/166844?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 13:10:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c76f3eec-a522-4e14-b9f2-3f66b0ad66be</guid><dc:creator>bgarrood</dc:creator><description>&lt;p&gt;Hello.&amp;nbsp; Thank you for the quick response!&lt;/p&gt;
&lt;p&gt;I am powering the device with a coin cell.&amp;nbsp; For development (so in the state that I am seeing these problems)&amp;nbsp;I have been using a power supply at 3.2V.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SD card example intermittent problem initialising</title><link>https://devzone.nordicsemi.com/thread/166832?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 12:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4632c86e-a3ce-4ea2-a2d4-d7f4e16cc25c</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, first of all I just want to check that you are powering the SD card properly. What is the voltage, and type of supply you are using? I&amp;#39;ve seen unstable behavior when the SD card is powered for the nRF5 DK (3V)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>