How to debug intermittent crashes when running MobileNet SSD on ESP32?
Hello!
I'm deploying a MobileNet SSD object detection model on an ESP32 microcontroller using the ESP-WHO framework. During inference, the device occasionally crashes with the error
Guru Meditation Error: Core 1 panic'ed (LoadProhibited)
. The crashes occur intermittently, roughly once every 10-15 inferences, and I haven't noticed a specific pattern related to the input data. My model is approximately 20 MB, and the input images are 320x240 pixels. I've confirmed that my input data and model are correctly formatted.
What advanced debugging techniques or optimizations can I apply to handle such intermittent crashes? Are there any best practices for managing memory and processor load on the ESP32 when running complex models? Additionally, are there any specific tools or logs I should focus on to identify the root cause of these crashes?1 Reply
To address ESP32 crashes with MobileNet SSD: I found this for you
Debugging
1. Enable Logging: 2. Stack Trace: - Use
1. Enable Logging: 2. Stack Trace: - Use
esp_backtrace_print
to find crash points.
3. Memory Check:
Optimizations
1. Use PSRAM for large buffers.
2. Pin Tasks to cores:
3. Quantize Model to reduce size.
4. Preprocess Images to lower resolution.
Check this also https://docs.espressif.com/projects/esp-idf/en/v5.0/esp32s3/api-guides/performance/speed.html