Notifications
Clear all

Unhandled exception when initialising ESP32-CAM module

19 Posts
2 Users
1 Likes
4,236 Views
(@yurkshirelad)
Member
Joined: 3 years ago
Posts: 493
Topic starter  

Thanks, I'll read it tomorrow.


   
ReplyQuote
(@yurkshirelad)
Member
Joined: 3 years ago
Posts: 493
Topic starter  

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:

Initialising camera
[E][camera.c:1249] esp_camera_init(): Camera probe failed with error 0x103
Camera init failed with error 0x103

   
ReplyQuote
(@yurkshirelad)
Member
Joined: 3 years ago
Posts: 493
Topic starter  

From a dev on the ESP camera project:

currently ESP-Camera and attachInterrupt do not work together. They will work in a near future

Phew! I thought I was going crazy!


   
ReplyQuote
(@yurkshirelad)
Member
Joined: 3 years ago
Posts: 493
Topic starter  

If works if I use the native ESP32 interrupt code:

 gpio_set_intr_type(INPUT_PIN, GPIO_INTR_POSEDGE);
gpio_isr_handler_add(INPUT_PIN, ISR_HANDLER, NULL);

   
ReplyQuote
Page 2 / 2