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.

CCS/TMS320F28335: FFT not computed correctly when executing example codes

Part Number: TMS320F28335
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

Hi,

I am trying to execute the example code: "2833x_rfft" provided with 'ControlSUITE' in code composer studio. The code was originally written for 2833x devices.

when I compiled the code, I got the following warnings:

I still proceeded with executing the code. But I got confusing/ erroneous results. I copied the variables from the watch window into excel for comparison. I also performed the FFT in MATLAB on the signal generated by F28335. Screenshot is attached below:

Where am I going wrong?

Regards,

  • Muhammad,

    The first warning can be ignored, as it simply states that the entry point symbol used is "code_start" and not "_c_int00". The rest of the warnings are noteworthy, as it seems to state that there are sections defined in the source files but these aren't present in the linker command file. It is easy to address this by accordingly modifying the linker command file.

    As far as the validity of the data, I believe that is a formatting issue. You probably did not export the data properly from the buffers to the external file. Can you first check if the numbers are correct in CCS? They should be.

    Thanks,

    Sira

  • Hi Sira,

    Thank you for replying. I am attaching the screenshots of the three arrays as displayed in the watch window. As you can see, the numbers are ridiculous here as well.

      

    Further, how can a linker command file be modified? I tried to remove the '28335_RAM_lnk.cmd' from the linker file search path and replaced it with the '28335_RFFT_RAM_lnk.cmd' file. But then when I compiled the code, I got the following error:

     

    Clueless here, please help

    Regards,

  • Hi Sira,

    I modified the linker cmd file as you suggested. It was surprisingly easy just like you said. Just allocated some more space in RAML1, Page 0 and the code works perfectly now.

    Many thanks and Regards