Tool/software: TI C/C++ Compiler
Hello everyone,
when I try to run the fft example code from HALCOGEN, 5 errorsare detected in the compilation of sys_main.c.
/* this code is inserted in the sys_main.c program source */
int main(void) {
/* USER CODE BEGIN (3) */
int32_t main(void)
{ #66 expected a ";" sys_main.c /LS04x_DSP/source line 90 C/C++ Problem
arm_status status;
arm_cfft_radix4_instance_f32 S;
float32_t maxValue;
status = ARM_MATH_SUCCESS;
/* Initialize the CFFT/CIFFT module */
status = arm_cfft_radix4_init_f32(&S, fftSize,
ifftFlag, doBitReverse);
/* Process the data through the CFFT/CIFFT module */
arm_cfft_radix4_f32(&S, testInput_f32_10khz);
/* Process the data through the Complex Magnitude Module for
calculating the magnitude at each bin */
arm_cmplx_mag_f32(testInput_f32_10khz, testOutput,
fftSize);
/* Calculates maxValue and returns corresponding BIN value */
arm_max_f32(testOutput, fftSize, &maxValue, &testIndex);
if(testIndex != refIndex)
{
status = ARM_MATH_TEST_FAILURE; #20 identifier "status" is undefined sys_main.c /LS04x_DSP/source line 116 C/C++ Problem
} /* ---------------------------------------------------------------------- ** Loop here if the signals fail the PASS check. ** This denotes a test failure ** ------------------------------------------------------------------- */ if( status != ARM_MATH_SUCCESS) #20 identifier "status" is undefined sys_main.c /LS04x_DSP/source line 124 C/C++ Problem
{
while(1);
}
} /* USER CODE END */
return 0; #171 expected a declaration sys_main.c /LS04x_DSP/source line 130 C/C++ Problem
} #171 expected a declaration sys_main.c /LS04x_DSP/source line 131 C/C++ Problem
__________________________________________________________________________
I hope somebody can help
Is there a problem with the compiler TI v5.2.2? I have CCS V6.1.0
Thank you in advance