I’m pretty new to edge ML and having trouble with a Face Detection project using Edge Impulse’s FOMO model. Getting consistent memory-related crashes that I can’t resolve.
yes sorry is my first time posting so i missed some steps Arduino IDE → 2.3.4 ESP32 Core → 3.3.0
after decoding the exception i get this:
1 | LoadProhibited: A load referenced a page mapped with an attribute that does not permit loads | 28
PC -> 0x42024b8d: ll_cam_set_pin () at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/managed_components/espressif__esp32-camera/target/esp32s3/ll_cam.c:370
0x42024b8a: ll_cam_set_pin () at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/managed_components/espressif__esp32-camera/target/esp32s3/ll_cam.c:370
0x4201cc67: cam_init () at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/managed_components/espressif__esp32-camera/driver/cam_hal.c:402
0x4201c79d: esp_camera_init () at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/managed_components/espressif__esp32-camera/driver/esp_camera.c:303
0x4200300d: ei_camera_init () at /tmp/.arduinoIDE-unsaved2025712-5008-u91tqa.lf0y8/esp32_camera/esp32_camera.ino:260
0x420030bb: setup () at /tmp/.arduinoIDE-unsaved2025712-5008-u91tqa.lf0y8/esp32_camera/esp32_camera.ino:138
0x4200e57e: loopTask (void*) at /home/fusillo/.arduino15/packages/esp32/hardware/esp32/3.3.0/cores/esp32/main.cpp:59
0x4037c195: vPortTaskWrapper () at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:139
this decoder is really helpful, but with my little/no experience i still can’t find the issue
(at the end i used this decoder due to my Arduino IDE version)
Something is wrong with you camera init.
The Arduino sketch we ship is by default is for ESP-EYE, you’ll need to make some changes to the camera config to make it work with ESP32-S3 WROOM N16R8 CAM. Check the board documentation or examples for the correct pin config and then change them in our example sketch.
Oh, and we don’t test with 3.3.0 core - it may be possible this is an issue as well. As it says in the sketch // These sketches are tested with 2.0.4 ESP32 Arduino Core
the same issue with me
did you findout what is the main problem here because im also new in ai ml do need help with this problem im using same board but my ml model is image classification for electronics components
currerntly facing the same issue with image detection model luckily found a youtube channel he succesfully deploy the model on esp32s3 i will attach the video he change the partion scheme for his project i also tried that but no any progress same error maybe im not doing it ok let me send you his video but its in chinese so you have to figure it out whats happening in the video if you could get some progress do share with me im also attaching my mail
@ansioso , @leo_16572
Writing things like “But out of all this I have only changed the error that is showing on reboot” does not help debugging at all. We’re not mind-readers, nor we can just peek at your screen and see the exact error message, can we?
ALWAYS give as much details as possible - and follow the template, it is there for a reason. Reason being, WE NEED THE INFO to triage and (possibly) debug your issues.
Now, for the issue at hand @ansioso ,
you have a working camera config. What happens when you use it with 2.0.4 in Edge Impulse sketch?
@AIWintermuteAI sorry for not including more details in the response. I didn’t wanted to bother you again with the problem and was just sharing the workaround that I’m currently using with @leo_16572
That said, I’m still trying to fix the issue, and I really appreciate that you want still help. This is the error that I’m facing right now:
Hello friend, I was having the same problem and couln’t find a solution, what I did was follow this tutorial that is in chinese but you can translate through subtitles, what he does is integrate the edge impulse inferencing part into the camerawebserver example and it worked for me on ESP32-S3 with very good results, using PSRAM. Please check the configurations in Arduino IDE to make sure you are using PSRAM. Hope it helps!
Just replace in edge_impulse.cpp with you inferencing library. I had to use arduino core 3.0.7 because the future versions don’t have some needed files.