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
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
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
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.
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:
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
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
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