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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,824 次查看
富国林
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?

标签 (1)
0 项奖励
回复
5 回复数

1,637 次查看
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 项奖励
回复

1,637 次查看
PatriciaTeran
Contributor III

Hi,

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

Thanks in advance

0 项奖励
回复

1,637 次查看
富国林
Contributor I

i am really want to use rfft_q31.

0 项奖励
回复

1,637 次查看
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 项奖励
回复

1,637 次查看
富国林
Contributor I

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

0 项奖励
回复