Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE
Tool/software:
Hi,
I am using RFFT computation on some analog data. Part of the code is shown below -
#include "fft.h"
#include "fft_hamming_Q31.h"
#include "math.h"
//
// Defines
//
#define FFT_SIZE 64
//
// Globals
//
// Create the FFT buffers, ipcb and ipcbsrc, in sections with the same name
#ifndef __cplusplus
#pragma DATA_SECTION(ipcb, "FFTipcb");
#else
#pragma DATA_SECTION("FFTipcb");
#endif
int32_t ipcb[FFT_SIZE+2];
#ifndef __cplusplus
#pragma DATA_SECTION(ipcbsrc, "FFTipcbsrc");
#else
#pragma DATA_SECTION("FFTipcbsrc");
#endif
int32_t ipcbsrc[FFT_SIZE];
......
RFFT32_brev(ipcbsrc, ipcb, FFT_SIZE); // real FFT bit reversing
rfft.ipcbptr = ipcb; // FFT computation buffer
rfft.magptr = ipcbsrc; // Magnitude output buffer
rfft.winptr = (long *)win; // Window coefficient array
rfft.init(&rfft); // Twiddle factor pointer initialization
rfft.calc(&rfft); // Compute the FFT
rfft.split(&rfft); // Post processing to get the correct spectrum
rfft.mag(&rfft); // Q31 format (abs(ipcbsrc)/2^16).^2
and Flash linker file additions are as below
FFTtf : >> RAMGS11, ALIGN(4096) FFTipcb : >> RAMGS12, ALIGN(256) FFTipcbsrc : >> RAMGS12, ALIGN(128)
When I use debug mode this is working fine. But when I dump the code in standalone mode or flash without debugging, the code is not working after reconnecting the power.
I have removed the FFT part ( code and linker variables) and checked. It is working fine even after reconnect so it seems that the issue is related to FFT related configuration.
Can anyone help with this issue?
Thank you.
Best Regards,
Kuldeep





