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/MSP-EXP432P4111: FFT App - build error

Part Number: MSP-EXP432P4111

Tool/software: Code Composer Studio

Hi,

I try to build a FFT example on the MSP-EXP432P4111 board. This code works on the MSP-EXP432P401R board. I copy a ...4111 example project from the resource explorer that I'm sure that all board specific settings are right. After this, i placed the main.c code and added the arm_fft_bin_example_f32.c file.

I get a lot of build errors:

Description    Resource    Path    Location    Type
#10010 null: errors encountered during linking; "fft_project.out" not built  
<a href="processors.wiki.ti.com/.../10234"> null: unresolved symbols remain  
gmake: *** [all] Error 2 
gmake[1]: *** [fft_test4_2_MCU4111_PrjCopy.out] Error 1  
unresolved symbol arm_cmplx_mag_f32, first referenced in ./arm_fft_bin_example_f32.obj   
unresolved symbol arm_max_f32, first referenced in ./arm_fft_bin_example_f32.obj  
unresolved symbol arm_rfft_fast_f32, first referenced in ./arm_fft_bin_example_f32.obj  
unresolved symbol arm_rfft_fast_init_f32, first referenced in ./arm_fft_bin_example_f32.obj   

I think that I have the right includes in main.c:
#include <ti/devices/msp432p4xx/driverlib/driverlib.h>
#include <stdint.h>
#include <string.h>
#include <arm_math.h>

the functions arm_rfft_fast.... and the others are in the arm_math.h library.

I compared all! property pages between MSP-EXP432P4111 board code and the working code on the MSP-EXP432P401R board. The only one what I missed and added to the ...4111 project are the two predefined symbols: __FPU_PRESENT=1  and  ARM_MATH_CM4

Does anyone know what the reason for this errors could be?

  • Hello,

    user5841294 said:
    <a href="processors.wiki.ti.com/.../10234"> null: unresolved symbols remain  
    gmake: *** [all] Error 2 
    gmake[1]: *** [fft_test4_2_MCU4111_PrjCopy.out] Error 1  
    unresolved symbol arm_cmplx_mag_f32, first referenced in ./arm_fft_bin_example_f32.obj   
    unresolved symbol arm_max_f32, first referenced in ./arm_fft_bin_example_f32.obj  
    unresolved symbol arm_rfft_fast_f32, first referenced in ./arm_fft_bin_example_f32.obj  
    unresolved symbol arm_rfft_fast_init_f32, first referenced in ./arm_fft_bin_example_f32.obj   

    "unresolved symbols remain" is a common linker error:

    http://software-dl.ti.com/ccs/esd/documents/sdto_ccs_build-errors.html#error-unresolved-symbols-remain

    You are likely missing some required library. Where are the symbols such as "arm_cmplx_mag_f32" (and the others listed) defined? You need the library/source that defines them and add them to your project. Check the working project and make sure you are including the same libraries.

    Thanks

    ki

  • Hi ki,

    thanks for your reply.

    Functions such as "arm_cmplx_mag_f32" are located in the arm_math.c / h. However, this I have included as #include <arm_math.h> and you can see in my picture the inlcude path:
    "C:/ti/simplelink_msp432p4_sdk_2_30_00_14/source/third_party/CMSIS/Include" in this path is the arm_math.h located.

    Identically the same I have at the working project...

  • Hi,

    i found the problem :-)
    Under Project Properties->Build->Linker->File Search Path there was a missing path:
    ${COM_TI_SIMPLELINK_MSP432_SDK_INSTALL_DIR}/source/third_party/CMSIS/DSP_Lib/lib/ccs/m4f/arm_cortexM4lf_math.a

    Now it builds without any error.

    Thank you for your help.