|
dsps_cplx2real_fc32(x1, N >> 1); |
I was trying to follow the example with a codebase that uses not fft4r but only fft2r functions (which are showcased in this example, I understand). I was getting segfault errors and after gazillion checks in the documentation I realized that cplx2real documentation says that fft4r needs to be initialized. In the example may be ok because it is showcasing both, but in a regular scenario it is not ok.
Assuming that this is indeed the problem (my code started working once I changed to cplx2reC_fc32 function, but I have not validated the numerical aspect, so I may have more bugs, and I may have misunderstood the documentation once again), the example should use the proper function to showcase properly which functions to use in which scenarios.
esp-dsp/examples/fft4real/main/dsps_fft4real_main.c
Line 85 in 10d7418
I was trying to follow the example with a codebase that uses not fft4r but only fft2r functions (which are showcased in this example, I understand). I was getting segfault errors and after gazillion checks in the documentation I realized that cplx2real documentation says that fft4r needs to be initialized. In the example may be ok because it is showcasing both, but in a regular scenario it is not ok.
Assuming that this is indeed the problem (my code started working once I changed to cplx2reC_fc32 function, but I have not validated the numerical aspect, so I may have more bugs, and I may have misunderstood the documentation once again), the example should use the proper function to showcase properly which functions to use in which scenarios.