-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FFT init function take so much memory #91
Comments
@Hoseinbme By default, all FFTs tables are included. For instance, those flags should enable all interpolation tables (like used from computing sine) and only the tables for RFFT FAST F32. Float16 is also disabled since you probably don't need it:
You can use Python to generate those flags: and from CMSIS-DSP folder:
|
@christophe0606 I did this, but the problem is still there, did I make a mistake?
also, i add question https://electronics.stackexchange.com/questions/655565/delete-modules-and-variables-that-are-not-used-in-iar here For more guidance |
@Hoseinbme Those options must be defined at the global level when you compile all of CMSIS-DSP. Otherwise those options are not seen when the CMSIS-DSP is compiled and the tables are still included. Depending on how you build the library, there are different way to do this. |
I wanted to get a Fourier transform on the stm32 MCU With the help of cmsis functions
But I encountered the problem of lack of memory while the buffer size was small.
even when set the length of FFT 32 .
After a lot of trouble, by checking the map file, I realized that a function consumes a lot of memory when called, about 150 KB.
arm_rfft_fast_init_f32()
Do you have any suggestions to reduce the memory size? This function sets the initial conditions, but it requires a lot of memory.
Now, I am not in a position to quickly provide hardware with more memory.
tester for fft.zip
HERE IS THE MAP FILE SERCH FOR arm_common_tables.o AND YOU SEE PARTS THAT CONSUME MEMMORY
The text was updated successfully, but these errors were encountered: