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/TMS320F28379S: creating projectspec for f28379s

Part Number: TMS320F28379S
Other Parts Discussed in Thread: C2000WARE, CONTROLSUITE

Tool/software: Code Composer Studio

I translated a version of the position management software from f28379d to f28379s. 

the projectspec for the new project was developed from the f28379d version supplied with the demo.

But when I run it, it comes up with errors regarding the fact that it cannot find the .obj files for the two .asm files: F2837XS_usDelay.asm and F2837XS_DBGier.asm

and it complains that there is no rule for making 2837xS_Generic_RAM_lnk.cmd (or any .cmd I try).

I keep referring to the original f28379d projectspec but I can find no differences. I am including the file I created as a projectspec.

My projectspec:

<projectSpec>
  <project
        name="pos_mgr"
        device="TMS320F28379S"
        cgtVersion="16.12.0.STS"
        launchWizard="False"
        linkerCommandFile=""
        >
        
    
    <configuration
        name="F28379x_RAM"
        compilerBuildOptions="-v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --vcu_support=vcu2 -O4 --opt_for_speed=5 
-I${C2000WARE_DEVICE_SUPPORT_ROOT}/common/include 
-I${C2000WARE_DEVICE_SUPPORT_ROOT}/headers/include 
-I${C2000WARE_DLIB_ROOT} -I${C2000WARE_LIB_ROOT}/math/IQmath/c28/include 
-I${SDK_ROOT}/solutions/pos_mgr/f2837XS/include 
--define=_DEBUG --define=CPU1 --define=LARGE_MODEL 
--abi=eabi -g --diag_warning=225 --quiet -k --asm_listing"
        linkerBuildOptions="--stack_size=0x400 --heap_size=0x200 --define RAM --define=CPU1 -g --diag_suppress=16002 --diag_warning=225 --diag_wrap=off --display_error_number --define=RAM --define=RAM    
-I${C2000WARE_LIB_ROOT}/math/IQmath/c28/lib 
-I${C2000WARE_DLIB_ROOT}/ccs/Debug 
--reread_libs -ldriverlib.lib 
-lrts2800_fpu32_eabi.lib -lIQmath_fpu32_eabi.lib"
        />
    
    <pathVariable name="C2000WARE_DEVICE_SUPPORT_ROOT" path="../../../../../C2000Ware_MotorControl_SDK_3_00_01_00/c2000ware/device_support/f2837XS" scope="project" />
    <pathVariable name="C2000WARE_DLIB_ROOT" path="../../../../../C2000Ware_MotorControl_SDK_3_00_01_00/c2000ware/driverlib/f2837XS/driverlib/" scope="project" />
    <pathVariable name="C2000WARE_LIB_ROOT" path="../../../../../C2000Ware_MotorControl_SDK_3_00_01_00/c2000ware/libraries" scope="project" />
    <pathVariable name="SDK_ROOT" path="../../../../" scope="project" />
 
    <file action="link" path="C:\ti\c2000\C2000Ware_MotorControl_SDK_3_00_01_00\c2000ware\device_support\f2837XS\common\targetConfigs/TMS320F28379S.ccxml" targetDirectory="" />
<file action="link" path="C2000WARE_DEVICE_SUPPORT_ROOT/headers/source/F2837XS_GlobalVariableDefs.c" targetDirectory="common" />
<file action="copy" path="C:\ti\c2000\C2000Ware_MotorControl_SDK_3_00_01_00\c2000ware\device_support\f2837XS\common\source/F2837XS_Adc.c" targetDirectory="" />
<file action="copy" path="C:\ti\c2000\C2000Ware_MotorControl_SDK_3_00_01_00\c2000ware\device_support\f2837XS\common\source/F2837XS_CpuTimers.c" targetDirectory="" />
<file action="copy" path="C:\ti\c2000\C2000Ware_MotorControl_SDK_3_00_01_00\c2000ware\device_support\f2837XS\common\source/F2837XS_EPwm.c" targetDirectory="" />
<file action="copy" path="C:\ti\c2000\C2000Ware_MotorControl_SDK_3_00_01_00\c2000ware\device_support\f2837XS\common\source/F2837XS_EQep.c" targetDirectory="" />
<file action="copy" path="C:\ti\c2000\C2000Ware_MotorControl_SDK_3_00_01_00\c2000ware\device_support\f2837XS\common\source/F2837XS_DefaultISR.c" targetDirectory="" />   
<file action="copy" path="C:\ti\c2000\C2000Ware_MotorControl_SDK_3_00_01_00\c2000ware\device_support\f2837XS\common\source/F2837XS_Gpio.c" targetDirectory="" />
<file action="copy" path="C:\ti\c2000\C2000Ware_MotorControl_SDK_3_00_01_00\c2000ware\device_support\f2837XS\common\source/F2837XS_PieCtrl.c" targetDirectory="" />
<file action="copy" path="C:\ti\c2000\C2000Ware_MotorControl_SDK_3_00_01_00\c2000ware\device_support\f2837XS\common\source/F2837XS_PieVect.c" targetDirectory="" />
<file action="copy" path="C:\ti\c2000\C2000Ware_MotorControl_SDK_3_00_01_00\c2000ware\device_support\f2837XS\common\source/F2837XS_DBGIER.asm" targetDirectory="" />
<file action="copy" path="C:\ti\c2000\C2000Ware_MotorControl_SDK_3_00_01_00\c2000ware\device_support\f2837XS\common\source/F2837XS_SysCtrl.c" targetDirectory="" />
<file action="copy" path="C:\ti\c2000\C2000Ware_MotorControl_SDK_3_00_01_00\c2000ware\device_support\f2837XS\common\source/F2837XS_usDelay.asm" targetDirectory="" />
    <file action="link" path="C2000WARE_DEVICE_SUPPORT_ROOT/common/source/device.c" targetDirectory="device" />
    <file action="link" path="C2000WARE_DLIB_ROOT/ccs/Debug/driverlib.lib" targetDirectory="src_lib" />
    
    <file action="link" path="C2000WARE_DEVICE_SUPPORT_ROOT/headers/cmd/F2837XS_Headers_nonBIOS_cpu1.cmd" targetDirectory="common" />
    <file action="link" path="SDK_ROOT\solutions\pos_mgr\f2837XS/source/PM_absincos_example_main.c" targetDirectory="sources" />
    <file action="link" path="SDK_ROOT\solutions\pos_mgr\f2837XS/source/PM_absincos_init.c" targetDirectory="sources" />
    <file action="link" path="SDK_ROOT\solutions\pos_mgr\f2837XS/source/PM_absincos_lib.c" targetDirectory="sources" />
    <file action="link" path="SDK_ROOT\solutions\pos_mgr\f2837XS/source/PM_absincos_adcisr.c" targetDirectory="sources" />
      
  </project>
</projectSpec> 

Any thoughts?

Thanks,

Don

  • Hi Don,

    Can you give me the path to the original projectsepc? I can't seem to find it in my installation.

    Thanks

    ki

  • C:\ti\controlSUITE\libs\app_libs\position_manager\v01_03_00_00\absincos\examples

  • don morgan said:
    C:\ti\controlSUITE\libs\app_libs\position_manager\v01_03_00_00\absincos\examples

    Interestingly, I don't have that folder. I do have C:\ti\controlSUITE\libs\app_libs\position_manager\v01_03_00_00\sincos\examples however.

    In any case, it looks like your took a controlSUITE example projectspec and is trying to use it with C2000Ware. I'm not sure how this will work. I will bring this thread to the attention of the device experts. They are most familiar with both software packages

    Thanks

    ki

  • Don,

    There is a migration guide from controlSUITE to C2000ware. Please take a look. It is in C2000ware SDK

    C:9/ti/c2000/C2000Ware_3_02_00_00/docs/controlSUITE_to_c2000Ware_guide.pdf

  • I have been through it. I will try again.

    Thanks,

    Don

  • OK. I was able to get the code associated with the c2800ware projectspec to compile and resolve all files including the two .asm files by changing the code in the f28739s asm files to look like the CONTROLSUITE f28739D .asm files.

    Don

  • F2837XS_Headers_nonBIOS_cpu1.cmd is the only cmd file I see referenced in your projectspec. Is it being linked in okay? Where are you specifying the 2837xS_Generic_RAM_lnk.cmd file should be used?

    If you go into the project properties and looked at the Linked Resources, can you confirm that all your path variables are correct? Note that for relative paths, you can hover over them to see what they resolve to.

    Edit: Oops, missed your most recent update. Glad you figured it out!

    Whitney