ESP32S3 using external c++ library

xuweihao03
Posts: 2
Joined: Wed Jan 22, 2025 9:20 am

ESP32S3 using external c++ library

Postby xuweihao03 » Wed Jan 22, 2025 9:35 am

Hello, I am using a customized c++ script which reads the .wav file in the sdcard and then extract mfcc features on esp32s3. The script is based on eigen( expressif/eigen)which enables the FFT related calculation.
But I got error messages: Guru Meditation Error: Core 0 panic'ed (StoreProhibited). Exception was unhandled.And within the terminal I can barely find any helpful information from the traceback.
Is it may caused by the memory allocation of std::vector on esp?
The error messages is in the attachment.
C495071CC833CF61B8E8458EEEC36850.jpg
C495071CC833CF61B8E8458EEEC36850.jpg (1.06 MiB) Viewed 787 times

MicroController
Posts: 1954
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: ESP32S3 using external c++ library

Postby MicroController » Wed Jan 22, 2025 3:27 pm

Looks like a null pointer being dereferenced somewhere around line 82 in ei_kissfft_impl.h.
Might be some previous failed memory allocation which went unchecked.

For FFT, you may want to look into the ESP-DSP library as an ESP-optimized alternative.

xuweihao03
Posts: 2
Joined: Wed Jan 22, 2025 9:20 am

Re: ESP32S3 using external c++ library

Postby xuweihao03 » Wed Jan 22, 2025 5:22 pm

But the code for the calculation works when I run it on my local PC. And the dependencies are also solved correctly I think, this is what confused me a lot.

MicroController
Posts: 1954
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: ESP32S3 using external c++ library

Postby MicroController » Wed Jan 22, 2025 9:33 pm

Possibly your PC has more available RAM than the ESP32.

Who is online

Users browsing this forum: No registered users and 55 guests