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.

TMS320F28379D: TMS320F28379D

Part Number: TMS320F28379D
Other Parts Discussed in Thread: CCSTUDIO, C2000WARE, CONTROLSUITE, SYSCONFIG

Tool/software:

Hi, 

I am new to CCStudio and installed 12.8.1.00005. I am using TMS320F28379D. I have some issues regarding to the setup CCStudio. when I am builiding the project, there are errors in DCSM, SDFM, GlobalVariableDef and DMA. the screenshot of these is attached.

there is one more error of different declaration i.e. one is uint 16 and other one int 16 of same variable, I made int both and. its screenshot is also attached herewith. 

Please, suggest me solution to rectify the errors

  • Hi Mohammed,

    Did you modify these files in anyway? Is it possible to reimport the driverlib files / project in case anything was changed accidentally? Can you send me a screenshot of the error related to DMA?

    I would open a new empty project and start there.

    Best Regards,

    Aishwarya

  • TMS320F28379-Queries.pptx


    Hi Aishwarya,

    I have documented the steps I have taken so far to set up the project. The steps are shown in the attached ppt and please, see the attached file. However, I am encountering certain errors, the screenshots of the errors are also shown in the ppt.

    I would greatly appreciate your guidance in troubleshooting these problems and helping me in creating an independent project in CCS.

    Thank you and best regards,

    Mohammad Sameer Irfan

  • Mohammed,

    The most straightforward solution here would be to import a project from C2000WARE and work off that. Import this project and add the libraries you need. Here's the path: C:\ti\c2000\C2000Ware_5_04_00_00\device_support\f2837xd\examples\cpu1\empty_project

    There should also be empty projects in the Motor Control SDK, similarly.

    Best Regards,

    Aishwarya

  •  Hi Aishwarya,

    Thank you for your guidance. I followed your suggestions, but unfortunately, I’m still encountering the same errors after the adding the libraries from controlsuite.

    The errors originate from F2837xD_GlobalVariableDefs.c and F2837xD_Dma.obj. I got the following errors:

    1. 1. #148: Declaration is incompatible with "void DMACH6BurstConfig(Uint16, int16, int16)" in F2837xD_Dma.c.
    2.  #237: Variable "DcsmZ1Otp" was declared with a never-completed type in F2837xD_GlobalVariableDefs.c
    3.  #237: Variable "DcsmZ2Otp" was declared with a never-completed type in F2837xD_GlobalVariableDefs.c.
    4. gmake: *** [SOURCE/F2837xD_Dma.obj] Error 1.
    5. gmake: *** [SOURCE/F2837xD_GlobalVariableDefs.obj] Error 1.
    6. gmake: Target all was not remade due to errors.

    I’ve attached screenshots for reference.

    Looking forward to your advice on resolving these issues.

    Thank you and Best regards,

    Mohammad Sameer Irfan

  • Mohammed,

    Let me get back to you by the end of the week on this matter.

    Best Regards,

    Aishwarya

  • Hi Aishwarya,

    Okay. Thanks

    Best Regards,

    Sameer

  • Mohammed,

    Is there a specific reason controlSUITE is being used as opposed to C2000WARE? Our recommendation is to use only C2000WARE as this has all the necessary libraries for the peripherals being used (ex. DMA, DCSM) from what I am seeing. I would just import one of the examples in the following paths and modify just the C code, as it already includes those files you have gotten errors in the past. Using SysConfig would be a good idea too to simplify the development process even further.

    • C:\ti\c2000\C2000Ware_5_04_00_00\driverlib\f2837xd\examples\cpu1\dma
    • C:\ti\c2000\C2000Ware_5_04_00_00\driverlib\f2837xd\examples\cpu1\dcsm
    • C:\ti\c2000\C2000Ware_5_04_00_00\driverlib\f2837xd\examples\cpu1\sdfm

    More resources below:

    Best Regards,

    Aishwarya

  • Thank you for your guidance.

    I am  using ControlSuite because our structure is built around its variable register structure and C code. Therefore, I would greatly appreciate your support in resolving the errors encountered with ControlSuite.

    Here is the Build debug and also attached the errors.


    **** Build of configuration Debug for project Example_6 ****

    "C:\\ti\\ccs1281\\ccs\\utils\\bin\\gmake" -k -j 16 all -O

    Building file: "../SOURCE/F2837xD_GlobalVariableDefs.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="C:/ti/c2000/C2000Ware_5_04_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_5_04_00_00/device_support/f2837xd/headers/include" --include_path="C:/msi/workspace_Learning/Example_6/Example_6" --include_path="C:/msi/workspace_Learning/Example_6/Example_6" --include_path="C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --define=CPU1 --define=_LAUNCHXL_F28379D -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="SOURCE/F2837xD_GlobalVariableDefs.d_raw" --obj_directory="SOURCE" "../SOURCE/F2837xD_GlobalVariableDefs.c"

    >> Compilation failure
    SOURCE/subdir_rules.mk:9: recipe for target 'SOURCE/F2837xD_GlobalVariableDefs.obj' failed
    "../SOURCE/F2837xD_GlobalVariableDefs.c", line 280: error #237: variable "DcsmZ1Otp" was declared with a never-completed type
    "../SOURCE/F2837xD_GlobalVariableDefs.c", line 288: error #237: variable "DcsmZ2Otp" was declared with a never-completed type
    2 errors detected in the compilation of "../SOURCE/F2837xD_GlobalVariableDefs.c".
    gmake: *** [SOURCE/F2837xD_GlobalVariableDefs.obj] Error 1
    Building file: "../SOURCE/F2837xD_Dma.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="C:/ti/c2000/C2000Ware_5_04_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_5_04_00_00/device_support/f2837xd/headers/include" --include_path="C:/msi/workspace_Learning/Example_6/Example_6" --include_path="C:/msi/workspace_Learning/Example_6/Example_6" --include_path="C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --define=CPU1 --define=_LAUNCHXL_F28379D -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="SOURCE/F2837xD_Dma.d_raw" --obj_directory="SOURCE" "../SOURCE/F2837xD_Dma.c"
    Finished building: "../SOURCE/F2837xD_Dma.c"

    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

    Thanks and best regards,

    Sameer

  • Sameer,

    At this point, I would reinstall everything and use the default install locations for CCS, C2000WARE, etc. It is possible that the paths were modified somewhere causing these issues to given library files.

    Please also note that controlSUITE is now deprecated and is no longer actively being maintained.

    Best Regards,

    Aishwarya

  • Hi, 

    If we use CCS 20 version, do we need to install C2000Ware additionally?

    We have many older version CCS projects(below 11 version). These projects program are low level C and register structure variables. 

    Now we use 28379D/S and use low level C and register structure variables by CCS ver11.

    at the condition of CCS ver20 and c2000ware, can we develop new ccs project of ccs 20 using low level c and register structure variables?

    Thank you.

    Sameer

  • Sameer,

    C2000WARE should be downloaded separately regardless of CCS version. I am going to connect you with a CCS expert to advise on which version of CCS might be best suited for your needs in regard to " low level C and register structure variables". From my experience I was able to utilize F28379xD with all the CCS versions with no issues.

    Please note that there may be a delay due to holidays time frame. In the meantime, I would reinstall the packages you already have like CCS 12.8, C2000WARE, etc. and try working with an example. I hope we can reach a resolution soon regarding your query. Thank you.

    Best Regards,

    Aishwarya

  • Hi Aishwarya,

    CCS 12.8 version issue is resolved. Thanks a lot for your able guidance. I want to know the following regarding CCS 20 version.

    If we use CCS 20 version, do we need to install C2000Ware additionally?

    We have many older version CCS projects(below 11 version). These projects program are low level C and register structure variables. 

    Now we use 28379D/S and use low level C and register structure variables by CCS ver11.

    at the condition of CCS ver20 and c2000ware, can we develop new ccs project of ccs 20 using low level c and register structure variables?

    Thank you

    Sameer

  • Hello Sameer,

    Aishwarya is currently out of office from the holidays. Please expect a delay in response. I apologize for any inconvenience.

    Best Regards,

    Allison

  • Mohammed,

    Glad to hear it! CCS supports all structures, functions, etc. supplied with C2000Ware. If custom code is used to access HW registers and peripherals outside of C2000WARE, we do not support this in CCS.

    Best Regards,

    Aishwarya

  • Aishwaraya,

    Thank you Aishwarya for the information and assistance you provided.

    Thanks once again,

    Sameer

  • Hi Aishwarya,

    Apologies for asking so many questions. If you don't mind, I have just one more question to ask:

    Previously, Code Composer Studio (CCS) supported the following software:

    1. Control Suite
    - Based on a traditional C approach with register-structured variables.
    - Included a driver library, supporting controllers up to the F28793 series.

    2. C2000Ware
    - Introduced for controllers starting with the F28379 series.
    - Designed around a driver library-based framework.

    For the F28379D controller, we have traditionally avoided using the driver library. Instead, we create standalone projects by manually copying source, header, and CMD files from Control Suite, adhering to a direct coding style with register-structured variables.

    However, with the introduction of C2000Ware, Control Suite is no longer being updated, as C2000Ware has become the preferred standard.

    With the latest versions of CCS, such as 12.8 and 20.01, is it possible to create standalone projects using C2000Ware without relying on the driver library functions? If so, could you kindly guide me on how to achieve this?

    Thanks and best regards,

    Sameer 

  • Mohammed,

    As mentioned before, it is highly recommended to use this driver-based approach as well SysConfig to greatly improve your debugging and software development experience. We have many exciting tools to help with code generation, migration, etc. which all use driverlib. Control Suite is no longer supported for the F2837xD device, so that is another caveat as well. There are many resources available on ti.com and E2E that I encourage you to peruse.

    As the original set of questions were answered, I will go ahead and close this thread. If you have any other questions, please open a new thread.

    Best Regards,

    Aishwarya