• 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

SD card with ESP32 Wrover Freenove

Q&A Forum › Category: ESP32 › SD card with ESP32 Wrover Freenove
0 Vote Up Vote Down
marcjeanvandenbril asked 2 years ago

Good morning,
I am a regular reader of your site.
To circumvent the very great difficulty of uploading with the ESP32-CAM circuits, I used the ESP32-Freennove Wrover board that you mention.
I tried to add an external SD card using your model (VSPI) still described in your article this week.
I upgraded to Arduino 2.1.0.
No compilation error, but impossible to upload unless you disconnect the MISO line.
After reboot, new error, resolved the same way. If you reconnect MISO, all tests pass.
Can you help me ?
I can send you the uploaded file and the serial port log.
Many thanks in advance
 
Marc

Question Tags: ESP32 Wrover and SD card
7 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 2 years ago

Hi.
What is exactly the error that you get after reboot?
Regards,
Rui

0 Vote Up Vote Down
marcjeanvandenbril answered 2 years ago

14:10:42.100 -> rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
14:10:42.145 -> invalid header: 0xffffffff
14:10:42.190 -> invalid header: 0xffffffff
14:10:42.235 -> invalid header: 0xffffffff
14:10:42.280 -> invalid header: 0xffffffff
14:10:42.325 -> invalid header: 0xffffffff
14:10:42.370 -> invalid header: 0xffffffff
14:10:42.416 -> invalid header: 0xffffffff
14:10:42.449 -> invalid header: 0xfff�ets Jul 29 2019 12:21:4

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

H.
Can you tell me which pins exactly are you using to connect the microSD card module?
I think you must be using a pin that interferes with the internal flash.
Regards,
Sara

0 Vote Up Vote Down
marcjeanvandenbril answered 2 years ago

CS 15 MOSI 13 MISO 12 (the problematic one) CLK 14, as specified 
 
Regards
 
Marc

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
I’m sorry for taking so long to get back to you. For some reason, I didn’t receive a notification of your answer.
If you take a look at the Freenove pinout, you’ll see that GPIO15 is a strapping pin. This means it needs to be in a specific state so that you can upload code to the board.

Getting Started with the Freenove ESP32-Wrover CAM Board


 
So, you need to disconnect that GPIO to upload the code to the board.
 
Alternatively, you may want to choose any other pins as SPI to connect to your microSD card. You can learn more about custom SPI pins in the following tutorial: 

  • https://randomnerdtutorials.com/esp32-spi-communication-arduino/

 
Check the section about setting custom SPI pins.
 
I hope this helps.
And I’m sorry for the delay in my response once again.
Regards,
Sara

0 Vote Up Vote Down
marcjeanvandenbril answered 2 years ago

Good morning,
First of all, thank you for your attentive follow-up.
I’ll sum up the problem for you.
I’m trying to load codes from RNT on an ESP32 Wroover Cam
The disadvantage of this card is the lack of an integrated SD card.
On the other hand, uploads succeed (almost) every time.
To transpose the projects from your ESP32 CAM guide, I tried to connect an SD card reader.
The manufacturer gives the following pinout: https://github.com/Freenove/Freenove_ESP32_WROVER_Board/blob/main/ESP32_Pinout.png
As you pointed out to me pin 15 is described there as “strap”
Whether I plug it in or not doesn’t change anything: pin 12 is responsible for the failure.
I suspected the SD interface: its replacement does not change anything.
Pins available outside HSPI are 0,2,32,33
Finally, I replaced MISO 12 by 32 in the code
” Rui Santos
Complete project details at https://RandomNerdTutorials.com/esp32-microsd-card-arduino/
This sketch can be found at: Examples > SD(esp32) > SD_Test”
and it works….
Do you have an explanation ?
Best regards,
Mark

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

The strapping pins need to be at a specific state when you try to upload code.
When you connect peripherals that may not be in the correct stat to put the board into boot mode to be able to receive new code.
Probably pin 12 was not in the right state when you tried to upload the code. 
Even though GPIO 15 is a strapping pin, maybe the SD card didn’t change its boot mode state.
 
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

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition 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.