This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS570LS0432: Compilation failure with HALCOGEN fft source code

Part Number: TMS570LS0432


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
  • I'm Sorry for the hard reading, I was able to fix 2 errors: #20 identifier "status" is undefined sys_main.c /LS04x_DSP/source line 124 C/C++ Problem, just putting "arm_status status" as a Global variable. The return 0 declaration was eliminated and also the error in line 130.
  • Unfortunately, your posts are a mess because of formatting problems. I'm not sure what is going on.  Is it correct to assume you have solved all the problems on your own?

    Thanks and regards,

    -George

  • Thank you so much George, I want to know if you can help me with the following problems

    Description Resource Path Location Type
    #16004-D file "C:/ti/Hercules/Cortex-R4 CMSIS DSP Library/1.0.0/Lib/ti_math_Cortex_R4_bspf.lib<arm_cmplx_mag_f32.obj>" has a Tag_ABI_VFP_args attribute value of "0" that is different than one previously seen ("1"); combining incompatible files LS04x_DSP C/C++ Problem

    #16004-D file "C:/ti/Hercules/Cortex-R4 CMSIS DSP Library/1.0.0/Lib/ti_math_Cortex_R4_bspf.lib<arm_cfft_radix4_f32.obj>" has a Tag_ABI_VFP_args attribute value of "0" that is different than one previously seen ("1"); combining incompatible files
  • It is likely that you build your code with one setting of the compiler option --float_support, and that library is built with a different setting.  These settings must be compatible.  Being compatible usually means they have to match, but sometimes there is a bit of leeway.  This setting must, above all, match the hardware features on the device you use.

    I lack the expertise tell you what to do next. I recommend you start a new post in the Hercules device forum.  The experts on that library monitor that forum, and they should be able to help you.

    Thanks and regards,

    -George