hi friends, i am using dsk5402 and CCS 2.0 for a real time application and i have to calculate fft. problem 1: i write code to configure codec and i used dsplib functions(cbrev and rfft) i have included all related files, then it gives me error: symbols first referenced in file   _cbrev (path for file)\..\.\xyz.obj _rfft (path for file)\..\.\xyz.obj linker error: symbol refrencing. i tried by changing linker settings but it is not helping me. i am having doubt that it can be removed by using u option. or i forget something while using dsplib functions ? can any body help me in this problem ? problem 2: then i follow other path, i write a code for fft and i tested it by using a function generating 1024 samples for sin wave with suitable amliptude, i find that it is gving me results correct. and then i write a code to configure codec for capturing 1024 points, and this time i use my fft function, but i am not getting results. (important to note that: i am directly passing the array of 1024 pts to my fft code i.e. (data is in 2s complement format)) so in this case i am having doubt in this data format's. i am doing something wrong..? problem 3: when i am watcing my captured data in graphs i am not getting my waveform VERY ACCURATELY (its shape is little bit distorted), aulthough i configured codec correctly. ( my input frequency is 200 and sampling freq. is 22050.) can any body help me in solving my problem ? how these problems can be solved ? thanks a lot. Sachin 

FFT
Started by ●January 17, 2002
Reply by ●January 17, 200220020117
hi, for your first problem, I think you have forget to include the file tms320.h or 54xdsp.lib. Second problem may be you have to give input in the Q.15 format. If these two problems are solved then third will be automatically solved. atanu ************************************* Center For Development Of Telematics Telecom Technology Center Of Govt. Of India Sneha Complex. Third Floor 71/1 Millers Road. Bangalore  560052 India. Ph: +91802282915 +91802263399245/235/312 Fax: +91802282915 Res: +91803595516 email: *************************************  Original Message  From: "SACHIN JAIN" <> To: <> Sent: Thursday, January 17, 2002 9:35 AM Subject: [c54x] FFT > hi friends, > > i am using dsk5402 and CCS 2.0 for a real time > application and i have to calculate fft. > > problem 1: > i write code to configure codec and i used dsplib > functions(cbrev and rfft) i have included all related > files, then it gives me error: > > symbols first referenced in file >   > _cbrev (path for file)\..\.\xyz.obj > _rfft (path for file)\..\.\xyz.obj > > linker error: symbol refrencing. > > i tried by changing linker settings but it is not > helping me. i am having doubt that it can be removed > by using u option. or i forget something while using > dsplib functions ? > > can any body help me in this problem ? > > problem 2: > then i follow other path, i write a code for fft and i > tested it by using a function generating 1024 samples > for sin wave with suitable amliptude, i find that it > is gving me results correct. and then i write a code > to configure codec for capturing 1024 points, and this > time i use my fft function, but i am not getting > results. > > (important to note that: i am directly passing the > array of 1024 pts to my fft code i.e. (data is in 2s > complement format)) > > so in this case i am having doubt in this data > format's. i am doing something wrong..? > > problem 3: > when i am watcing my captured data in graphs i am not > getting my waveform VERY ACCURATELY (its shape is > little bit distorted), aulthough i configured codec > correctly. ( my input frequency is 200 and sampling > freq. is 22050.) > > can any body help me in solving my problem ? how these > problems can be solved ? > > thanks a lot. > > Sachin > _____________________________________ > Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. > > _____________________________________ > About this discussion group: > > To Join: Send an email to > > To Post: Send an email to > > To Leave: Send an email to > > Archives: http://www.yahoogroups.com/group/c54x > > Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/ > 