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.

TMS320F28335: FFT的一些问题

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

我在software里面看到了关于CFFT的一些例程并且尝试移植,移植过程中出现了报错,报错如下:

代码如下所示:

/*
* CFFT.c
*
* Created on: 2022年8月14日
* Author: 86156
*/

#include "fpu_cfft.h"
#include "CFFT.h"
#include "fpu.h"
#include "dsp.h"
//*****************************************************************************
// the defines
//*****************************************************************************
#define TEST_SIZE (128U)
#define FFT_STAGES (7U)
#define FFT_SIZE (1 << FFT_STAGES)

//*****************************************************************************
// the globals
//*****************************************************************************
// The global pass, fail values
uint16_t pass = 0U, fail = 0U;
// The absolute error between the result and expected values
float tolerance = 3e-2;


// CFFT_F32_STRUCT object
CFFT_F32_STRUCT cfft;
// Handle to the CFFT_F32_STRUCT object
CFFT_F32_STRUCT_Handle hnd_cfft = &cfft;

float test_error[TEST_SIZE << 1];

float test_magphase[TEST_SIZE];

float twiddleFactors[TEST_SIZE];

extern float INPUT[128];

float output[128];

//*****************************************************************************
// the function definitions
//*****************************************************************************
void CFFT(void){


//
// In-Place Algorithm
//
// Note: In this version, input and output buffers point to the same array.
// The user must bit-reverse reorder the input prior to calling the
// FFT function.
//
// Configure the object

CFFT_f32_setInputPtr(hnd_cfft, INPUT);
CFFT_f32_setOutputPtr(hnd_cfft, output);
CFFT_f32_setStages(hnd_cfft, FFT_STAGES);
CFFT_f32_setFFTSize(hnd_cfft, FFT_SIZE);


//Twiddle factor table
CFFT_f32_setTwiddlesPtr(hnd_cfft, twiddleFactors);
CFFT_f32_sincostable(hnd_cfft);
//
// CFFT_f32_brev(hnd_cfft);
//
// CFFT_f32i(hnd_cfft); // Calculate FFT in-place

}

我看了一些帖子说要用到C28x_FPU_Lib.lib这个库,但是我在例程的文件夹中并没有发现这个文件,请问可以在哪里下载呢?谢谢您!

x 出现错误。请重试或与管理员联系。