i want to use fix point FFT, but ROM consumption very high,so can you help to decrease the ROM consumption?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i want to use fix point FFT, but ROM consumption very high,so can you help to decrease the ROM consumption?

1,897 Views
富国林
Contributor I

    arm_rfft_fast_init_f32(&S,  fftSize);

    arm_rfft_fast_f32(&S,testInput_f32_10khz,testOutput,0);   this function need 80kB ROM to save the coffee, but i just need 512 point FFT.

if i use rfft_q31,the ROM consumption over 130kB, so how to optimize it?

Labels (1)
0 Kudos
Reply
5 Replies

1,710 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,GuoLing,

Pls refer to the file arm_common_tables.c located at:C:\Freescale\KSDK_1.1.0\platform\CMSIS\DSP_Lib\Source\CommonTables, the file contains the sine/cosin table for FFT, if you use only 512 points FFT, you can remain the const float32_t twiddleCoef_512[1024] array and delete all the other array in order to save ROM space. BTW, I suggest you copy the arm_common_tables.c to another file before you modify it.

BR

Xiangjun Rong

0 Kudos
Reply

1,710 Views
PatriciaTeran
Contributor III

Hi,

would it be possible for you to tell me which part are you using?

Thanks in advance

0 Kudos
Reply

1,710 Views
富国林
Contributor I

i am really want to use rfft_q31.

0 Kudos
Reply

1,710 Views
soledad
NXP Employee
NXP Employee

Hello,

Are you using a Kinetis device? if there is, which device are you using???

Are you using CodeWarrior???

Regards

Sol

0 Kudos
Reply

1,710 Views
富国林
Contributor I

yes, the device is KL16, and i am using IAR7.4.

0 Kudos
Reply