Unhandled exception when initialising ESP32-CAM module
Thanks, I'll read it tomorrow.
The only difference I see in that article is the use of IRAM_ATTR for the interrupt handler. I added this but it still fails.
I then took out the use of interrupts and now it loops until the motion sensor pin is HIGH, at which point it takes a picture. I now get:
[E][camera.c:1249] esp_camera_init(): Camera probe failed with error 0x103
Camera init failed with error 0x103
From a dev on the ESP camera project:
currently ESP-Camera and
attachInterruptdo not work together. They will work in a near future
Phew! I thought I was going crazy!
If works if I use the native ESP32 interrupt code:
gpio_isr_handler_add(INPUT_PIN, ISR_HANDLER, NULL);