Closed davidallenmann closed 1 year ago
I went back to v4.4. I got a similar result when I built without configuring PSRAM and clock speed. I changed the clock speed to 240 MHz and configured Octal SPIRAM, and the example now works correctly.
Switched back to v5.0 Configured PSRAM and changed clock speed to 240 MHz. Still get same result with bad output.
Hi @davidallenmann ,
I will look today and will try to reproduce.
Thanks for report.
@davidallenmann The problem was aligment allocation of table for FFT. I have fix the error in local repo and will soon push it to github, but if you need changes now please do follows in file In file modules/fft/float/dsps_fft2r_fc32_ansi.c:
dsps_fft_w_table_fc32 = (float *)malloc(table_size * sizeof(float));
to
dsps_fft_w_table_fc32 = (float*)memalign(16, sizeof(float) * table_size);
That will solve your problem.Regards, Dmitry
Thanks for the fast response. That fixes it!
Environment
Problem Description
FFT example builds and runs on ESP32-S3 using latest V5 IDF, but it generates erroneous output. No changes were made to this example: https://github.com/espressif/esp-dsp/tree/master/examples/fft
Expected Behavior
Plots like shown in readme with single or double peak.
Actual Behavior