• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Working with a RNT tutorial ESP32: Guide to MicroSD Card Module using Arduino IDE – Compile returned error with SD libraries???

Q&A Forum › Category: Arduino › Working with a RNT tutorial ESP32: Guide to MicroSD Card Module using Arduino IDE – Compile returned error with SD libraries???
0 Vote Up Vote Down
Paul D. Wilkie asked 9 months ago

I was getting started with tutorial – “ESP32: Guide to MicroSD Card Module using Arduino IDE”. When I attempted to compile and upload the sketch from the tutorial, it returned the following error message:

RNT_ESP32_Guide for MicroSD_Card_Module_using_Arduino_IDE.ino

In file included from C:\Users\Paul\Documents\Arduino\libraries\EthernetWebServer\src/EthernetWebServer.h:67,
from C:\Users\Paul\Documents\Arduino\RNT_ESP32_Guide_for_MicroSD_Card_Module_using_Arduino_IDE\RNT_ESP32_Guide_for_MicroSD_Card_Module_using_Arduino_IDE.ino:5:
C:\Users\Paul\Documents\Arduino\libraries\EthernetWebServer\src/EthernetWebServer.hpp:576:22: error: cannot declare field ‘EthernetWebServer::_server’ to be of abstract type ‘EthernetServer’
EthernetServer _server;
^~~~~~~
In file included from C:\Users\Paul\Documents\Arduino\libraries\Ethernet_Generic\src/Ethernet_Generic.h:84,
from C:\Users\Paul\Documents\Arduino\libraries\EthernetWebServer\src/EthernetWebServer.h:58,
from C:\Users\Paul\Documents\Arduino\RNT_ESP32_Guide_for_MicroSD_Card_Module_using_Arduino_IDE\RNT_ESP32_Guide_for_MicroSD_Card_Module_using_Arduino_IDE.ino:5:
C:\Users\Paul\Documents\Arduino\libraries\Ethernet_Generic\src/Ethernet_Generic.hpp:532:7: note: because the following virtual functions are pure within ‘EthernetServer’:
class EthernetServer : public Server
^~~~~~~~~~~~~~
In file included from C:\Users\Paul\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.15\cores\esp32/Arduino.h:194,
from C:\Users\Paul\AppData\Local\Temp\arduino_build_329085\sketch\RNT_ESP32_Guide_for_MicroSD_Card_Module_using_Arduino_IDE.ino.cpp:1:
C:\Users\Paul\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.15\cores\esp32/Server.h:28:18: note: ‘virtual void Server::begin(uint16_t)’
virtual void begin(uint16_t port=0) =0;
^~~~~
Multiple libraries were found for “SD.h”
Used: C:\Users\Paul\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.15\libraries\SD
Not used: C:\Users\Paul\Documents\Arduino\libraries\SD-master
Not used: C:\Users\Paul\Downloads\arduino-1.8.18-windows\arduino-1.8.18\libraries\SD
Multiple libraries were found for “SPI.h”
Used: C:\Users\Paul\Documents\Arduino\libraries\SPI
Not used: C:\Users\Paul\Documents\Arduino\libraries\LGTSPI
Not used: C:\Users\Paul\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.15\libraries\SPI

This looks like a previous compile error with a differnt project; however that was resolved with a correction in the used library User_Setup file was not placed in the correct folder??????????

Question Tags: #ESP32 #SD #SDCard
9 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 9 months ago

Hi.
What ESP32 board model are you using?
Make sure you update the ESP32 boards installation in your Arduino IDE.
 
Regards,
Sara

0 Vote Up Vote Down
Paul D. Wilkie answered 9 months ago

Well Sara, this is embarrassing; I had selected ESP32 DEVKIT V1 instead of  ESP32 WROOM-DA Module???????

0 Vote Up Vote Down
Sara Santos Staff answered 9 months ago

Is everything working as expected now?
Regards,
Sara

0 Vote Up Vote Down
Paul D. Wilkie answered 9 months ago

 

0 Vote Up Vote Down
Paul D. Wilkie answered 9 months ago

Yes and no? I was ablle to upload the sketch, but it returned the following message in the Serial Monitor:
18:37:22.807 -> Card Mount Failed
I am not sure what that means; does it think the Micro SD Card is not mounted in the Card Reader/Writer?
I followed the instructions on formatting the SD card prior to inserting it into the SD Card Reader/Writer. Attached is a screenshot showing the SD Card itself was listed on the explorer screen: ThisPC, BOOT(J)
https://imgur.com/a/ZTDjaGj
I tried uploading the sketch with out the SD Card Reader/Writer, the same response. There was no mention of downloading a driver for the SD Card Reader/Writer; could this be the problem?
Thank you for your patience with my newbe undertaking of such a project. You two are very good at teaching how to do those things we all want to do!
Paul
 
 
 

0 Vote Up Vote Down
Paul D. Wilkie answered 9 months ago

Just found this interesting discussion; looks like a few different things can effect the opereation of the SD Card  Reader/Writer Module that could create the “Card Mount Failed”????
https://forum.arduino.cc/t/micro-sd-card-reader-only-works-with-some-sd-brands/1070258
Any suggestions?

0 Vote Up Vote Down
Paul D. Wilkie answered 9 months ago

I am using a 32GB Kingston Canvas Select Plus Micro card that appreantly is pre-configured? 
I have ordered a Professional Ultra 16GB SanDisk to see how that works???????
Any suggestions?

0 Vote Up Vote Down
Paul D. Wilkie answered 9 months ago

Finally figured out the issue, the 3.3V was not sufficent, required 5.0V with the setup used in the tutorial.
I finally made contact with the SD Card Reader/Writer embedded on the Elecrow 3.5in. ILI9488 TFT Display using a 32GB micro SD card, no problem.
https://imgur.com/a/FFvwjgq

0 Vote Up Vote Down
Sara Santos Staff answered 9 months ago

Hi.
Great.
I’m glad you found a solution.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.