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/AM3358: FFTW debug

Part Number: AM3358

Tool/software: Code Composer Studio

Hello,

I am currently trying to figure out how to integrate FFTW into CCS. I am using the ti-processor-sdk-linux-am335x-evm-06.00.00.07. I am trying to incorporate the SDK examples with FFTW.

This is the error I am getting:

I made sure to include the fftw3.h in my project.

Here are my include files:

All I have in my code is the header file:

Is there any suggestions anyone can provide? I can compile/run the FFT code I wrote using FFTW, but for some reason I can't run the code on CCS. An example command I use to compile the FFTW code in a terminal is:

gcc fftw_example.c -Wall -lfftw3 -lm -o fftw.example

Do I need to add the -Wall, -lfftw3, -lm, and -o commands to a makefile in CCS?

Best Regards,

Tyler

  • Part Number: AM3358

    Tool/software: Code Composer Studio

    Hello,

    Is it possible to run FFTW on the linux SDK? If so, how can I do this? I am using version 06.00.00.07. The best information I can find is here: https://www.mccdaq.com/PDFs/Manuals/DT7816_WebHelp/Build_the_FFTW_Library.htm

    However, the documentation is limited and it doesn't really tell me how to do this for the AM3358.

    Does anyone have any suggestions?

    Best Regards,

    Tyler

  • Part Number: AM3358

    Tool/software: Code Composer Studio

    Hello,

    I am trying to compile FFTW code on CCS. However, when I try to build the project, I get the following build error below due to a linking issue:

    I believe I have FFTW installed correctly because I am able to compile my FFTW code using the following command in the terminal:

    gcc fftw_example.c -Wall -lfftw3 -lm -o fftw.example

     

    I am currently using ti-processor-sdk-linux-am335x-evm-06.00.00.07 with Ubuntu 16.04.

    Any suggestions are greatly appreciated.


    Best Regards,


    Tyler

  • Tyler,

    Have you made any changes to GCC to tell it to cross-compiler for ARM? if not, I believe you are successfully building FFTW for you x86 Linux machine. CCS is setup to build for the ARM, but it doesn't have access to everything it needs to build all code for the ARM. 

    The instructions that you pointed to seem to be using a native compile on the ARM by moving everything to the ARM target board and building it there. This will probably be the easiest approach by far unless you are very familiar with how to set up cross-compile environments.

    Since FFTW is an open-source component and not really integrated into the SDK, we don't really support it. You might find better support from them if they support cross-compiling.

    I hope this is helfpul to you.

  • Hello RonB,

    Thank you for the suggestions. From what I am aware of, I don't think I have made any changes to GCC to tell it it to cross-compiler for the ARM.

    Do you have any suggestions on what I can do to compile the FFTW code on CCS without integrating it into the SDK? The reason I ask is because this person appears to gotten the FFTW to compile on CCS but they didn't say how they did it: https://e2e.ti.com/support/processors/f/791/t/242353?FFT-to-AM3359-

    I am hoping that if I can at least compile FFTW on CCS, then maybe it can lead me to a direction to figure out a way to somehow integrate the SDK with FFTW on CCS.

    Best Regards,

    Tyler