FFT on DSPIC
Posted: Wed Mar 06, 2013 2:16 pm
Hello Everybody,
I make a new post on FFT used on DSPIC.
I am user of matrix multimedia product and teacher in an engineer School in France : INSA LYON.
I work with my students on fantastic projects:
https://www.youtube.com/user/yricotti
My students and I have so discovered electronic...
In a New project, We try to make a car that can be controled by brain for disability problem.
We need to make FFT, on DSpic 30F3014. We work on this project
with St Etienne Hospital and a research laboratory (INL).
I Have tried the new DSP component on a DSPIC 30F3014, with flowcode V5.5.2.1 for Pic 24 and DsPIC,
all the exemple on DSP componants works well but not the 10th exemple called : 10. Frequency Analysis using FFT.fcf_pic16
The only one that I want to use.
I have tried to find the problem with my file in attachment (test13e.fcf_pic16) by adding more and more
components of 10. Frequency Analysis using FFT.fcf_pic16
and in fact it's the ReadSingleBank_FFT that produce the following problem:
G:\yann\OT\datasheet_matrix_et_autre\DS_pic\test DSP>pic30-gcc -c -mcpu=30F3014 -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\FLOWCO~1\v5\Tools\MX_bats\..\C_tools\support\h" -I"C:\PROGRA~2\FLOWCO~1\v5\Tools\MX_bats\..\MX_support" -Wall -std=gnu99 "test13e".c -o "test13e".o
test13e.c: In function 'FCD_ADC0_ReadAsString':
test13e.c
warning: pointer targets in passing argument 3 of 'FCI_FLOAT_TO_STRING' differ in signedness
test13e.c: In function 'FCD_DSP_Abs0_ReadPeak':
test13e.c
error: 'DSP_Abs_13_LEVEL_PEAK_RECORD' undeclared (first use in this function)
test13e.c
error: (Each undeclared identifier is reported only once
test13e.c
error: for each function it appears in.)
test13e.c
error: 'Peak_Idx' undeclared (first use in this function)
test13e.c
error: 'DSP_Abs_13_LEVEL_RECORD' undeclared (first use in this function)
test13e.c: In function 'FCD_DSP_Abs0_ReadTrough':
test13e.c
error: 'DSP_Abs_13_LEVEL_TRGH_RECORD' undeclared (first use in this function)
test13e.c
error: 'Trgh_Idx' undeclared (first use in this function)
test13e.c: In function 'FCD_DSP_Abs0_ReadAverage':
test13e.c
error: 'DSP_Abs_13_SAMPLE_SIZE' undeclared (first use in this function)
test13e.c
error: 'DSP_Abs_13_LEVEL_AVRG_RECORD' undeclared (first use in this function)
test13e.c
error: 'Avrg_Idx' undeclared (first use in this function)
test13e.c: In function 'FCD_DSP_Abs0_ReadPeak_Tick':
test13e.c
error: 'DSP_Abs_13_LEVEL_PEAK_RECORD' undeclared (first use in this function)
test13e.c
error: 'Peak_Idx' undeclared (first use in this function)
test13e.c: In function 'FCD_DSP_Abs0_ReadTrough_Tick':
test13e.c
error: 'DSP_Abs_13_LEVEL_TRGH_RECORD' undeclared (first use in this function)
test13e.c
error: 'Trgh_Idx' undeclared (first use in this function)
test13e.c: In function 'FCD_DSP_Abs0_ReadAverage_Tick':
test13e.c
error: 'DSP_Abs_13_LEVEL_AVRG_RECORD' undeclared (first use in this function)
test13e.c
error: 'Avrg_Idx' undeclared (first use in this function)
test13e.c: In function 'FCD_DSP_Abs0_ReadSingleBank_FFT':
test13e.c
warning: comparison is always true due to limited range of data type
test13e.c: In function 'FCM_timer_tick':
test13e.c
warning: pointer targets in passing argument 1 of 'FCD_DSP_Input0_Add_To_Buffer' differ in signedness
test13e.c: In function 'main':
test13e.c
warning: pointer targets in passing argument 1 of 'FCD_LCDDisplay0_PrintString' differ in signedness
test13e.c
3: warning: #warning "This interrupt has previously been enabled, so the macro <timer_tick> may never get called."
Error returned from [pic30-gcc.exe].
Can somebody explain me how I can Handle the problem?
YannR
I make a new post on FFT used on DSPIC.
I am user of matrix multimedia product and teacher in an engineer School in France : INSA LYON.
I work with my students on fantastic projects:
https://www.youtube.com/user/yricotti
My students and I have so discovered electronic...
In a New project, We try to make a car that can be controled by brain for disability problem.
We need to make FFT, on DSpic 30F3014. We work on this project
with St Etienne Hospital and a research laboratory (INL).
I Have tried the new DSP component on a DSPIC 30F3014, with flowcode V5.5.2.1 for Pic 24 and DsPIC,
all the exemple on DSP componants works well but not the 10th exemple called : 10. Frequency Analysis using FFT.fcf_pic16
The only one that I want to use.
I have tried to find the problem with my file in attachment (test13e.fcf_pic16) by adding more and more
components of 10. Frequency Analysis using FFT.fcf_pic16
and in fact it's the ReadSingleBank_FFT that produce the following problem:
G:\yann\OT\datasheet_matrix_et_autre\DS_pic\test DSP>pic30-gcc -c -mcpu=30F3014 -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\FLOWCO~1\v5\Tools\MX_bats\..\C_tools\support\h" -I"C:\PROGRA~2\FLOWCO~1\v5\Tools\MX_bats\..\MX_support" -Wall -std=gnu99 "test13e".c -o "test13e".o
test13e.c: In function 'FCD_ADC0_ReadAsString':
test13e.c
test13e.c: In function 'FCD_DSP_Abs0_ReadPeak':
test13e.c
test13e.c
test13e.c
test13e.c
test13e.c
test13e.c: In function 'FCD_DSP_Abs0_ReadTrough':
test13e.c
test13e.c
test13e.c: In function 'FCD_DSP_Abs0_ReadAverage':
test13e.c
test13e.c
test13e.c
test13e.c: In function 'FCD_DSP_Abs0_ReadPeak_Tick':
test13e.c
test13e.c
test13e.c: In function 'FCD_DSP_Abs0_ReadTrough_Tick':
test13e.c
test13e.c
test13e.c: In function 'FCD_DSP_Abs0_ReadAverage_Tick':
test13e.c
test13e.c
test13e.c: In function 'FCD_DSP_Abs0_ReadSingleBank_FFT':
test13e.c
test13e.c: In function 'FCM_timer_tick':
test13e.c
test13e.c: In function 'main':
test13e.c
test13e.c
Error returned from [pic30-gcc.exe].
Can somebody explain me how I can Handle the problem?
YannR