Hi @robo234
These CPU exceptions happen when an application attempts to read from or write to an invalid memory location.
It appears you got the code from this tutorial:
However, it also appears you have made some modifications. I tried to compile the sketch, but it failed on this line:
cfg.setPins(pins::XIAO);
Sure enough, the "esp32cam library doesn't contain a pins::XIAO definition and I don't find any occurrences of this on the Internet, so it seems it is something you created? Don't you think it would have been useful to provide this information???