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.
ESP32S3 using external c++ library
-
- Posts: 1954
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: ESP32S3 using external c++ library
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.
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.
-
- Posts: 2
- Joined: Wed Jan 22, 2025 9:20 am
Re: ESP32S3 using external c++ library
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.
-
- Posts: 1954
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: ESP32S3 using external c++ library
Possibly your PC has more available RAM than the ESP32.
Who is online
Users browsing this forum: No registered users and 73 guests