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.

AWR2944: AWR2944:Question about establishing and using library

Part Number: AWR2944

Hi Team,

I tried to convert 'alg' sample code into a library file.

However, I encountered some errors when using the converted version of the library file.

The following is my process of establishing library project.

1.Create a static library that supports AWR2944.

2.Copy the alg sample code into the library project.

3.Compile the library project and obtain the alg_lib.lib file.

Then, I used this library to replace the original lib track3D awr2944.aer5f library which had some errors.

The image shows the project setting s for modifying the library.

This iamge shows an error when building the project, but the same project using the track3D awr2944.aer5f library or the source code is successful.

Is there any problem when creating or using the library?

Best regards

Ken

  • Hi Ken,

    Then, I used this library to replace the original lib track3D awr2944.aer5f library which had some errors.

    Can you share the log of the errors while building the original library? And can you also share the log that you got while building the custom library to check the compiler flags?
    Can you also try cleaning and building the custom library and project?

    Regards,

    Samhitha

  • Hi Samhitha,


    Thanks for your reply.

    I share three build logs and try cleaning and building behavior.
    "alg_lib project build log" is the library project build log we created based on the instructions in the previous article.
    "project with alg_lib.lib build log" is a complete project with alg_lib.lib, and then displays the error log.
    "project with track3D awr2944.aer5f build log" is a complete project with  track3D awr2944.aer5f, and then displays the finish log.

    "alg_lib.lib" is obtained from the library project.
    "libgtrack3D_awr2944.aer5f" is obtained from TI SDK.
    But cannot upload the .aer5f file extension and change the file extension name.

    Best regards

    Ken


    alg_lib.liblibgtrack3D_awr2944.aer5f.txt

    **** Build of configuration Debug for project alg_lib ****
    
    "C:\\ti\\ccs1220\\ccs\\utils\\bin\\gmake" -k -j 16 all -O 
     
    Building file: "../src/gtrack_create.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_create.d_raw" -MT"src/gtrack_create.o"   -o"src/gtrack_create.o" "../src/gtrack_create.c"
    Finished building: "../src/gtrack_create.c"
     
    Building file: "../src/gtrack_delete.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_delete.d_raw" -MT"src/gtrack_delete.o"   -o"src/gtrack_delete.o" "../src/gtrack_delete.c"
    Finished building: "../src/gtrack_delete.c"
     
    Building file: "../src/gtrack_listlib.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_listlib.d_raw" -MT"src/gtrack_listlib.o"   -o"src/gtrack_listlib.o" "../src/gtrack_listlib.c"
    Finished building: "../src/gtrack_listlib.c"
     
    Building file: "../src/gtrack_math.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_math.d_raw" -MT"src/gtrack_math.o"   -o"src/gtrack_math.o" "../src/gtrack_math.c"
    Finished building: "../src/gtrack_math.c"
     
    Building file: "../src/gtrack_module.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_module.d_raw" -MT"src/gtrack_module.o"   -o"src/gtrack_module.o" "../src/gtrack_module.c"
    ../src/gtrack_module.c:89:13: warning: implicit declaration of function 'gtrack_assert' is invalid in C99 [-Wimplicit-function-declaration]
                gtrack_assert(0);
                ^
    1 warning generated.
    Finished building: "../src/gtrack_module.c"
     
    Building file: "../src/gtrack_step.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_step.d_raw" -MT"src/gtrack_step.o"   -o"src/gtrack_step.o" "../src/gtrack_step.c"
    ../src/gtrack_step.c:167:35: warning: implicit declaration of function 'gtrack_getCycleCount' is invalid in C99 [-Wimplicit-function-declaration]
                    bench[GTRACK_BENCHMARK_SETUP] = gtrack_getCycleCount();
                                                    ^
    1 warning generated.
    Finished building: "../src/gtrack_step.c"
     
    Building file: "../src/gtrack_unit_create.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_unit_create.d_raw" -MT"src/gtrack_unit_create.o"   -o"src/gtrack_unit_create.o" "../src/gtrack_unit_create.c"
    Finished building: "../src/gtrack_unit_create.c"
     
    Building file: "../src/gtrack_unit_delete.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_unit_delete.d_raw" -MT"src/gtrack_unit_delete.o"   -o"src/gtrack_unit_delete.o" "../src/gtrack_unit_delete.c"
    Finished building: "../src/gtrack_unit_delete.c"
     
    Building file: "../src/gtrack_unit_event.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_unit_event.d_raw" -MT"src/gtrack_unit_event.o"   -o"src/gtrack_unit_event.o" "../src/gtrack_unit_event.c"
    Finished building: "../src/gtrack_unit_event.c"
     
    Building file: "../src/gtrack_unit_get.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_unit_get.d_raw" -MT"src/gtrack_unit_get.o"   -o"src/gtrack_unit_get.o" "../src/gtrack_unit_get.c"
    Finished building: "../src/gtrack_unit_get.c"
     
    Building file: "../src/gtrack_unit_predict.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_unit_predict.d_raw" -MT"src/gtrack_unit_predict.o"   -o"src/gtrack_unit_predict.o" "../src/gtrack_unit_predict.c"
    Finished building: "../src/gtrack_unit_predict.c"
     
    Building file: "../src/gtrack_unit_report.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_unit_report.d_raw" -MT"src/gtrack_unit_report.o"   -o"src/gtrack_unit_report.o" "../src/gtrack_unit_report.c"
    Finished building: "../src/gtrack_unit_report.c"
     
    Building file: "../src/gtrack_unit_score.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_unit_score.d_raw" -MT"src/gtrack_unit_score.o"   -o"src/gtrack_unit_score.o" "../src/gtrack_unit_score.c"
    Finished building: "../src/gtrack_unit_score.c"
     
    Building file: "../src/gtrack_unit_start.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_unit_start.d_raw" -MT"src/gtrack_unit_start.o"   -o"src/gtrack_unit_start.o" "../src/gtrack_unit_start.c"
    Finished building: "../src/gtrack_unit_start.c"
     
    Building file: "../src/gtrack_unit_stop.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_unit_stop.d_raw" -MT"src/gtrack_unit_stop.o"   -o"src/gtrack_unit_stop.o" "../src/gtrack_unit_stop.c"
    Finished building: "../src/gtrack_unit_stop.c"
     
    Building file: "../src/gtrack_unit_update.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_unit_update.d_raw" -MT"src/gtrack_unit_update.o"   -o"src/gtrack_unit_update.o" "../src/gtrack_unit_update.c"
    Finished building: "../src/gtrack_unit_update.c"
     
    Building file: "../src/gtrack_utilities.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_utilities.d_raw" -MT"src/gtrack_utilities.o"   -o"src/gtrack_utilities.o" "../src/gtrack_utilities.c"
    Finished building: "../src/gtrack_utilities.c"
     
    Building file: "../src/gtrack_utilities_2d.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_utilities_2d.d_raw" -MT"src/gtrack_utilities_2d.o"   -o"src/gtrack_utilities_2d.o" "../src/gtrack_utilities_2d.c"
    Finished building: "../src/gtrack_utilities_2d.c"
     
    Building file: "../src/gtrack_utilities_3d.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mlittle-endian -Og -I"D:/CubTEK/SourceCode/TI/T344B0/alg_lib" -I"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/include" -g -MMD -MP -MF"src/gtrack_utilities_3d.d_raw" -MT"src/gtrack_utilities_3d.o"   -o"src/gtrack_utilities_3d.o" "../src/gtrack_utilities_3d.c"
    Finished building: "../src/gtrack_utilities_3d.c"
     
    Building target: "alg_lib.lib"
    Invoking: Arm Archiver
    "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmar.exe" rc "alg_lib.lib" "./src/gtrack_create.o" "./src/gtrack_delete.o" "./src/gtrack_listlib.o" "./src/gtrack_math.o" "./src/gtrack_module.o" "./src/gtrack_step.o" "./src/gtrack_unit_create.o" "./src/gtrack_unit_delete.o" "./src/gtrack_unit_event.o" "./src/gtrack_unit_get.o" "./src/gtrack_unit_predict.o" "./src/gtrack_unit_report.o" "./src/gtrack_unit_score.o" "./src/gtrack_unit_start.o" "./src/gtrack_unit_stop.o" "./src/gtrack_unit_update.o" "./src/gtrack_utilities.o" "./src/gtrack_utilities_2d.o" "./src/gtrack_utilities_3d.o" 
    Finished building target: "alg_lib.lib"
     
    
    **** Build Finished ****
    
    project with alg_lib.lib build log.txtproject with track3D awr2944.aer5f build log.txt

  • Hi Ken Li, 

    Can you share the Compiler flags for alg_lib project? Open CCS and right click on the project and navigate to Properties -> CCS Build ->Arm Compiler to check the compiler flags.

    error #16016-D: file "C:/ti/mmwave_mcuplus_sdk_04_04_01_02/mcu_plus_sdk_awr294x_09_00_00_15/source/drivers/lib/drivers.awr294x.r5f.ti-arm-clang.release.lib<adcbuf.obj>" was built for VFPv3-D16 coprocessor support while a previously seen file was built for VFPv4-D16 coprocessor support

    From the logs, I noticed that the floating-point option is conflicting. 

    Regards,

    Samhitha

  • Hi Samhitha Bobba,

    I really appreciate your help.

    I found different project settings on the library project processor options and changed the settings to be the same as the original project.

    Now it can be executed normally.

    Regards,

    Ken