title: ESP32s NodeMCU not recognizing SD card breakout: "Card Mount Failed"
body: <p>I'm trying to get my NodeMCU ESP32S to connect to an SD card breakout that I have. It is wired up like so:</p>
  
  <p><a href="https://i.stack.imgur.com/VT3RJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VT3RJ.jpg" alt="enter image description here"></a>
  I believe these are corrected correctly according to this diagram, which shows the SPI connections on my particular board:</p>
  
  <p><a href="https://i.stack.imgur.com/fiKtJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fiKtJ.jpg" alt="enter image description here"></a></p>
  
  <p>Unfortunately, when running a simple test of this inside the arduino SDE, I get the following output on the serial monitor:</p>
  
  <pre><code>13:37:22.839 -&gt; rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
  13:37:22.839 -&gt; configsip: 0, SPIWP:0xee
  13:37:22.839 -&gt; clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  13:37:22.874 -&gt; mode:DIO, clock div:1
  13:37:22.874 -&gt; load:0x3fff0018,len:4
  13:37:22.874 -&gt; load:0x3fff001c,len:1044
  13:37:22.874 -&gt; load:0x40078000,len:8896
  13:37:22.874 -&gt; load:0x40080400,len:5816
  13:37:22.874 -&gt; entry 0x400806ac
  13:37:23.324 -&gt; Card Mount Failed
  </code></pre>
  
  <p>Everything seems to be wired up right, but I was wondering if anyone has any ideas why this might be failing apparently right when the card is attempted to be opened. Here is the code example: </p>
  
  <pre class="lang-c prettyprint-override"><code>
  #include "FS.h"
  #include "SD.h"
  #include "SPI.h"
  void setup() {
    Serial.begin(115200);
    pinMode(19, INPUT_PULLUP);
    SPI.begin(18, 19, 23);
    if (!SD.begin(5)) {
      Serial.println("Card Mount Failed!");
    }
  }
  
  void loop() {
    // put your main code here, to run repeatedly:
  
  }
  </code></pre>