0

I have an ESP32-CAM board with a microSD card attached (8GB). In my setup function I create a directory. In loop the ESP32-CAM takes images and stores in the directory. The code successfully creates the directory and captures one image inside the directory. However, when the loop function runs the second time, I get the following errors:

E (8526) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0xffffffff
E (8531) diskio_sdmmc: sdmmc_read_blocks failed (-1)
E (9536) sdmmc_req: sdmmc_host_wait_for_event returned 0x107
E (9536) sdmmc_cmd: sdmmc_read_sectors_dma: sdmmc_send_cmd returned 0x107
E (9537) diskio_sdmmc: sdmmc_read_blocks failed (263)

1 Answers1

0

Plase show your whole code, I think you are shutting down the led using GPIO4 before your loop ends. In my case in a similar case the solution was to add this line before the SD card init: rtc_gpio_hold_dis(GPIO_NUM_4);

LucasRT
  • 180
  • 2
  • 15