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/TMS320F28379D: Please help me solve this: "error #20: identifier "SFRA_F32" is undefined"

Part Number: TMS320F28379D
Other Parts Discussed in Thread: TIDA-01606, SFRA, C2000WARE

Tool/software: Code Composer Studio

Hi, expert.

I have a schedule to develop 3-ph inverter based on TIDA-01606 as a test bed for power device.

At first step, I have reached a unsolvable problem for me.

CCS v9.2 gave me messages: "D:/ti/user/SiC_3L_Inverter/source/tinv/include/tinv.h", line 333: error #20: identifier "SFRA_F32" is undefined", even though sfra_f32.h was previously included in compiler option (c2000 compiler/include option). There are many threads similar to my case. But I have never found solution.

Console messages are written as the follow:

**** Build of configuration Debug for project SiC_3L_Inverter ****
"D:\\ti\\ccs920\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
 
Building file: "../f2837x/tinv/device/F2837xD_CodeStartBranch.asm"
Invoking: C2000 Compiler
"D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="D:/ti/user/SiC_3L_Inverter" --include_path="D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/libraries/control/DCL/c28/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/libraries/math/CLAmath/c28/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/driverlib/f2837xd/driverlib" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/sfra/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/dlog/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/emavg/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/rampgen/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/c2000ware/libraries/control/DCL/c28/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/power_measurement/include" --include_path="D:/ti/user/SiC_3L_Inverter/libraries/transforms" --include_path="D:/ti/user/SiC_3L_Inverter/libraries/spll" --include_path="D:/ti/user/SiC_3L_Inverter/source/tinv/include" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/tinv/device" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/drivers/include" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/tinv" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/drivers/source" --advice:performance=all --define=CPU1 -g --relaxed_ansi --diag_warning=225 --diag_wrap=off --display_error_number --gen_data_subsections=on --abi=coffabi --preproc_with_compile --preproc_dependency="f2837x/tinv/device/F2837xD_CodeStartBranch.d_raw" --obj_directory="f2837x/tinv/device" --cmd_file="configPkg/compiler.opt" "../f2837x/tinv/device/F2837xD_CodeStartBranch.asm"
Finished building: "../f2837x/tinv/device/F2837xD_CodeStartBranch.asm"
 
Building file: "../f2837x/tinv/tinv_main.c"
Invoking: C2000 Compiler
"D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="D:/ti/user/SiC_3L_Inverter" --include_path="D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/libraries/control/DCL/c28/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/libraries/math/CLAmath/c28/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/driverlib/f2837xd/driverlib" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/sfra/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/dlog/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/emavg/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/rampgen/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/c2000ware/libraries/control/DCL/c28/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/power_measurement/include" --include_path="D:/ti/user/SiC_3L_Inverter/libraries/transforms" --include_path="D:/ti/user/SiC_3L_Inverter/libraries/spll" --include_path="D:/ti/user/SiC_3L_Inverter/source/tinv/include" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/tinv/device" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/drivers/include" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/tinv" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/drivers/source" --advice:performance=all --define=CPU1 -g --relaxed_ansi --diag_warning=225 --diag_wrap=off --display_error_number --gen_data_subsections=on --abi=coffabi --preproc_with_compile --preproc_dependency="f2837x/tinv/tinv_main.d_raw" --obj_directory="f2837x/tinv" --cmd_file="configPkg/compiler.opt" "../f2837x/tinv/tinv_main.c"
 
>> Compilation failure
f2837x/tinv/subdir_rules.mk:9: recipe for target 'f2837x/tinv/tinv_main.obj' failed
"D:/ti/user/SiC_3L_Inverter/source/tinv/include/tinv.h", line 333: error #20: identifier "SFRA_F32" is undefined
1 error detected in the compilation of "../f2837x/tinv/tinv_main.c".
gmake: *** [f2837x/tinv/tinv_main.obj] Error 1
Building file: "../source/tinv/source/tinv.c"
Invoking: C2000 Compiler
"D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="D:/ti/user/SiC_3L_Inverter" --include_path="D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/libraries/control/DCL/c28/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/libraries/math/CLAmath/c28/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/driverlib/f2837xd/driverlib" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/sfra/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/dlog/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/emavg/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/rampgen/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/c2000ware/libraries/control/DCL/c28/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/power_measurement/include" --include_path="D:/ti/user/SiC_3L_Inverter/libraries/transforms" --include_path="D:/ti/user/SiC_3L_Inverter/libraries/spll" --include_path="D:/ti/user/SiC_3L_Inverter/source/tinv/include" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/tinv/device" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/drivers/include" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/tinv" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/drivers/source" --advice:performance=all --define=CPU1 -g --relaxed_ansi --diag_warning=225 --diag_wrap=off --display_error_number --gen_data_subsections=on --abi=coffabi --preproc_with_compile --preproc_dependency="source/tinv/source/tinv.d_raw" --obj_directory="source/tinv/source" --cmd_file="configPkg/compiler.opt" "../source/tinv/source/tinv.c"
 
>> Compilation failure
source/tinv/source/subdir_rules.mk:9: recipe for target 'source/tinv/source/tinv.obj' failed
"D:/ti/user/SiC_3L_Inverter/source/tinv/include/tinv.h", line 333: error #20: identifier "SFRA_F32" is undefined
"../source/tinv/source/tinv.c", line 248: warning #225-D: function "SFRA_F32_reset" declared implicitly
"../source/tinv/source/tinv.c", line 249: warning #225-D: function "SFRA_F32_config" declared implicitly
"../source/tinv/source/tinv.c", line 265: warning #225-D: function "SFRA_F32_resetFreqRespArray" declared implicitly
"../source/tinv/source/tinv.c", line 267: warning #225-D: function "SFRA_F32_initFreqArrayWithLogSteps" declared implicitly
1 error detected in the compilation of "../source/tinv/source/tinv.c".
gmake: *** [source/tinv/source/tinv.obj] Error 1
Building file: "../f2837x/tinv/device/device.c"
Invoking: C2000 Compiler
"D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="D:/ti/user/SiC_3L_Inverter" --include_path="D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/libraries/control/DCL/c28/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/libraries/math/CLAmath/c28/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/driverlib/f2837xd/driverlib" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/sfra/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/dlog/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/emavg/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/rampgen/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/c2000ware/libraries/control/DCL/c28/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/power_measurement/include" --include_path="D:/ti/user/SiC_3L_Inverter/libraries/transforms" --include_path="D:/ti/user/SiC_3L_Inverter/libraries/spll" --include_path="D:/ti/user/SiC_3L_Inverter/source/tinv/include" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/tinv/device" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/drivers/include" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/tinv" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/drivers/source" --advice:performance=all --define=CPU1 -g --relaxed_ansi --diag_warning=225 --diag_wrap=off --display_error_number --gen_data_subsections=on --abi=coffabi --preproc_with_compile --preproc_dependency="f2837x/tinv/device/device.d_raw" --obj_directory="f2837x/tinv/device" --cmd_file="configPkg/compiler.opt" "../f2837x/tinv/device/device.c"
Finished building: "../f2837x/tinv/device/device.c"
 
Building file: "../f2837x/drivers/source/tinv_hal.c"
Invoking: C2000 Compiler
"D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="D:/ti/user/SiC_3L_Inverter" --include_path="D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="D:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/libraries/control/DCL/c28/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/libraries/math/CLAmath/c28/include" --include_path="D:/ti/ccs920/C2000Ware_2_00_00_03_Software/driverlib/f2837xd/driverlib" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/sfra/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/dlog/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/emavg/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/utilities/rampgen/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/c2000ware/libraries/control/DCL/c28/include" --include_path="D:/ti/ccs920/C2000Ware_DigitalPower_SDK_2_00_01_00/libraries/power_measurement/include" --include_path="D:/ti/user/SiC_3L_Inverter/libraries/transforms" --include_path="D:/ti/user/SiC_3L_Inverter/libraries/spll" --include_path="D:/ti/user/SiC_3L_Inverter/source/tinv/include" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/tinv/device" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/drivers/include" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/tinv" --include_path="D:/ti/user/SiC_3L_Inverter/f2837x/drivers/source" --advice:performance=all --define=CPU1 -g --relaxed_ansi --diag_warning=225 --diag_wrap=off --display_error_number --gen_data_subsections=on --abi=coffabi --preproc_with_compile --preproc_dependency="f2837x/drivers/source/tinv_hal.d_raw" --obj_directory="f2837x/drivers/source" --cmd_file="configPkg/compiler.opt" "../f2837x/drivers/source/tinv_hal.c"
"../f2837x/drivers/source/tinv_hal.c", line 732: warning #1181-D: #warning directive: TINV_BOARD_PROTECTION_LA_SENSE is disabled
"../f2837x/drivers/source/tinv_hal.c", line 752: warning #1181-D: #warning directive: TINV_BOARD_PROTECTION_LB_SENSE is disabled
"../f2837x/drivers/source/tinv_hal.c", line 772: warning #1181-D: #warning directive: TINV_BOARD_PROTECTION_LC_SENSE is disabled
"../f2837x/drivers/source/tinv_hal.c", line 893: warning #1181-D: #warning directive: All current comparator based protections are disabled
"../f2837x/drivers/source/tinv_hal.c", line 923: warning #1181-D: #warning directive: TINV_BOARD_PROTECTION_SIC_A is disabled
"../f2837x/drivers/source/tinv_hal.c", line 949: warning #1181-D: #warning directive: TINV_BOARD_PROTECTION_SIC_B is disabled
"../f2837x/drivers/source/tinv_hal.c", line 975: warning #1181-D: #warning directive: TINV_BOARD_PROTECTION_SIC_C is disabled
"../f2837x/drivers/source/tinv_hal.c", line 657 (col. 45): advice #2614-D: (Performance) Use --fp_mode=relaxed to enable TMU hardware support for FP division.
Finished building: "../f2837x/drivers/source/tinv_hal.c"
 
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
  • Your include paths do not appear quite right. Did you actually install Digital Power SDK inside the D:/ti/ccs920 directory? Typically the default installation directory for SDK is c:/ti/c2000 and we recommend using the default. Then when the project is imported into CCS, it will get copied over to your workspace.

    Also the correct version of Digital Power SDK to be used with TIDA-01606 is 1_03_00_00, as per the Readme file included in the TIDA-01606 package (attached below). 

    Please re-install SDK 1.03.00.00 to the default directory (using D:\ instead of c:\ is fine), then install TIDA-01606, then import the project into your workspace as described in the Readme.

    A related thread on this topic that might also help: https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/824756

    -Software Package Notice-
    This is a prerelease version of the control software for TIDA-01606.  TI provides this software “as is” and with all faults and disclaims all warranties, express or implied, regarding such software. This software is solely intended for evaluation purposes to assistant users in becoming familiar with the TMS320 device, drivers for TIDA-01606 hardware, and control loop structure.  It is not intended to be used in production applications and it does not come with additional usage documentation beyond this document.
    
    This release has only been tested with ideal sources and resistive loads in a laboratory environment. The end user is solely responsible for any additional usage and testing.
    
    Install Instructions:
    1. Download and install the C2000 Digital Power SDK (version 1.03.00.00) from http://www.ti.com/tool/C2000WARE-DIGITALPOWER-SDK to the default directories (c:\ti\c2000\C2000Ware_DigitalPower_SDK_1_03_00_00)
    2. Install the TIDA-01606 software release. It will extract the relevant files into the solutions folder that resides in the SDK directory.
    3. Using CCS8.3, ensure that the latest C2000 device support packages are installed and avaliable.
    4. In the desired workspace, in CCS, use Project>Import CCS Project.
    5. Select the location of the projectspec as the search directory (default: C:\ti\c2000\C2000Ware_DigitalPower_SDK_1_03_00_00\solutions\tida_01606\f2837x\ccs). Ensure that Copy Projects Into WOrkspace is selected and import the project.

  • Hi AartiG.

    How can I get the exact SDK1.03.00.00? TI provides latest version of SDK. Is there archive site?

    Thanks a lot!

  • Hi, AartiG.

    I resolved the problem by following instructions written in readme file. Key point is to install the exact Digital_Power_SDK.. 

    I found it in  http://www.ti.com/tool/download/C2000WARE-DIGITALPOWER-SDK/1.03.00.00 .

    I appreciate your quiet and precise response.

    .