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.

LAUNCHXL-F28379D: Includes not working

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE

Hey there,

I'm building on a Project and usung the C200ware driverlib which is in my includes folder.

However I also want to do register programming like "EPwm1Regs.TZEINT.bit.OST = 1;" . When I'm building the project it cannot find the identifier: error #20: identifier "EPwm1Regs" is undefined.

I put the \device_support\f2837xd\common\source, the device_support\f2837xd\common\include and the device_support\f2837xd\headers in the procet include, but it still gives the error. What am I doing wrong here?

Greetings

  • I got the following message:

    **** Build of configuration CPU1_RAM for project INV_F28379D ****

    "C:\\ti\\ccs1100\\ccs\\utils\\bin\\gmake" -k -j 16 all -O
     
    Building target: "INV_F28379D.out"
    Invoking: C2000 Linker
    "C:/ti/ccs1100/ccs/tools/compiler/ti-cgt-c2000_21.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --advice:performance=all --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi -z -m"INV_F28379D.map" --stack_size=0x100 --warn_sections -i"C:/ti/ccs1100/ccs/tools/compiler/ti-cgt-c2000_21.6.0.LTS/lib" -i"C:/ti/ccs1100/ccs/tools/compiler/ti-cgt-c2000_21.6.0.LTS/include" -i"C:/ti/c2000/C2000Ware_4_00_00_00/device_support/f2837xd/headers/cmd" -i"C:/ti/c2000/C2000Ware_4_00_00_00/device_support/f2837xd/common/cmd" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="INV_F28379D_linkInfo.xml" --entry_point=code_start --rom_model -o "INV_F28379D.out" "./main.obj" "./00_HAL/Halneu.obj" "./00_HAL/hal_usr.obj" "./00_HAL/device/F2837xD_CodeStartBranch.obj" "./00_HAL/device/device.obj" "./01_APPL/APPL_main_NEU.obj" "./01_APPL/functions/filter.obj" "./99_DEBUG/debug.obj" "../2837xD_RAM_lnk_cpu1.cmd" "C:/ti/c2000/C2000Ware_4_00_00_00/driverlib/f2837xd/driverlib/ccs/Debug/driverlib.lib"  -llibc.a
    <Linking>
     
     undefined first referenced   
      symbol       in file        
     --------- ----------------   
     EPwm1Regs ./00_HAL/Halneu.obj
     EPwm2Regs ./00_HAL/Halneu.obj
     EPwm3Regs ./00_HAL/Halneu.obj
     
    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "INV_F28379D.out" not built
     
    >> Compilation failure
    makefile:159: recipe for target 'INV_F28379D.out' failed
    gmake[1]: *** [INV_F28379D.out] Error 1
    makefile:155: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

  • Hi,

    F2837xD_epwm.h is available at  "C:/ti/c2000/C2000Ware_4_00_00_00/device_support/f2837xd/headers/include", hence provide this path as as include path. This file contains the structure declaration for EPWM_REGS.

    Also, you have to add the file "F2837xD_GlobalVariableDefs.c" located at C:\ti\c2000\C2000Ware_4_01_00_00\device_support\f2837xd\headers\source\ to your project . It has the structure definition "volatile struct EPWM_REGS EPwm1Regs;"

    Best Regards

     Siddharth