Mjrovai / XIAO-ESP32S3-Sense

Seeed Studio XIAO ESP32S3 Sense integrates a camera sensor, digital microphone, and SD card support. Combining embedded ML computing power and photography capability, this development board is a great tool to get started with TinyML (intelligent voice and vision AI).
Apache License 2.0
161 stars 26 forks source link

ESP32-S3 Reset while running the microphone example #2

Closed salmanfarisvp closed 1 year ago

salmanfarisvp commented 1 year ago

Hi, I was trying to follow the project https://www.hackster.io/mjrobot/tinyml-made-easy-keyword-spotting-kws-5fa6e7 and using the code from this repo but it looks like the espS3 is resetting. Please take a look, Thanks in advance.

Starting continious inference in 2 seconds...
Recording...
CORRUPT HEAP: Bad tail at 0x3f9a3918. Expected 0xbaad5678 got 0x00000000

assert failed: multi_heap_free multi_heap_poisoning.c:259 (head != NULL)

Backtrace: 0x4037730a:0x3fceb940 0x4037a985:0x3fceb960 0x403802b9:0x3fceb980 0x4037fec9:0x3fcebab0 0x40377769:0x3fcebad0 0x403802e9:0x3fcebaf0 0x4200536d:0x3fcebb10 0x42009576:0x3fcebb30 0x42002ebc:0x3fcebb50 0x42003077:0x3fcebb80 0x42002ef7:0x3fcebcd0 0x42003cc5:0x3fcebcf0 0x42003d65:0x3fcebd80 0x42003dcd:0x3fcebe30 0x4200ac05:0x3fcebf70

ELF file SHA256: f0bda8f06e2d263e

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x9 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4202ce36
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a68
entry 0x403c98d4
Edge Impulse Inferencing Demo
Inferencing settings:
    Interval: 0.062500 ms.
    Frame size: 16000
    Sample length: 1000 ms.
    No. of classes: 3
limengdu commented 1 year ago

Hi, please enable PSRAM when you use the microphone or camera of XIAO ESP32S3 Sense. This option is in the Arduino menu bar "Tools->PSRAM->OPI PSRAM".

salmanfarisvp commented 1 year ago

Hi @limengdu , Thanks for the comment yes, it is enabled and I was able to collect the sound samples on the SD card without any issues.

image

salmanfarisvp commented 1 year ago

@limengdu It is resolved when I disable the PSRAM , Strange 😅 .