Using an IDE?: Visual Studio Code with ESP-IDF extension
Power Supply: USB
Problem Description
When using hardware which consists of an SD-card reader and an OV2640 connected to an ESP32-S3 DevKitC I'm unable to use the OV2640 after unmounting the SD-card. I've narrowed the problem down to spi_bus_free(host.slot); at line 240. When that function isn't called, the camera remains usable.
Expected Behavior
The OV2640 (which I'm using through the esp32-camera component) still works after deinitializing the SPI bus.
Actual Behavior
The OV2640 only prints cam_hal: Failed to get the frame on time!.
Steps to reproduce
Use the attached zip for a complete runnable project, or the GIST linked underneath.
Select the ESP32-S3 as build target.
Build, flash and monitor the project.
Observe taking pictures after spi_bus_free(host.slot); doesn't work.
Change build target to ESP32.
Build, flash and monitor the project.
Observe taking pictures after spi_bus_free(host.slot); still works.
Environment
Problem Description
When using hardware which consists of an SD-card reader and an OV2640 connected to an ESP32-S3 DevKitC I'm unable to use the OV2640 after unmounting the SD-card. I've narrowed the problem down to
spi_bus_free(host.slot);
at line 240. When that function isn't called, the camera remains usable.Expected Behavior
The OV2640 (which I'm using through the esp32-camera component) still works after deinitializing the SPI bus.
Actual Behavior
The OV2640 only prints
cam_hal: Failed to get the frame on time!
.Steps to reproduce
spi_bus_free(host.slot);
doesn't work.spi_bus_free(host.slot);
still works.Code to reproduce this issue
See code in GIST or project in sdspi.zip.