eloquentarduino / EloquentEsp32cam

Use your Esp32-cam like an expert
GNU General Public License v3.0
85 stars 16 forks source link

Error DRAM overflow #24

Closed marcovilla118 closed 2 weeks ago

marcovilla118 commented 3 months ago

Dear All,

I'm trying to use AITHinker esp32-cam but it looks like it's not working because of missing memory. Here is the error, do I have any chance to make it work?

/Users/xxx/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /private/var/folders/c8/12c3wry92k15j8yj7tgz7rh00000gn/T/arduino/sketches/6F41C98F27E8199FE5E7451F48149081/PersonDetectionExample.ino.elf section .dram0.bss' will not fit in regiondram0_0_seg' /Users/xxx/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: DRAM segment data does not fit. /Users/xxx/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: DRAM segment data does not fit. /Users/xxx/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: region `dram0_0_seg' overflowed by 1192 bytes collect2: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

iHaiduk commented 2 months ago

I have the same error

akvik commented 2 months ago

Similar error here - running the Freenove Wrover with builtin camera. esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /private/var/folders/ll/sjz30_lx7y3f103g3cckm7q80000gn/T/arduino/sketches/227362BE499E0C2DC128E9C4FB119ECA/Face_Detection.ino.elf section .dram0.bss' will not fit in regiondram0_0_seg'

guessing the chip is not s3 or does not have enough ram on it.

eloquentarduino commented 2 weeks ago

Person detection, face detection, maybe motion detection (can't recall) only work on S3 chips. Also, person detection has been deprecated, you are using an old version of the library.

akvik commented 2 weeks ago

Thanks, I figured S3 was needed in the end. I got motion detection to work on non-S3 chip - and I'm following your development of the library - looks great :)