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.

missing files and errors in Dual Motor Control and PFC Developer’s Kit

Other Parts Discussed in Thread: CONTROLSUITE

Hi

I have tried to use the 

Dual Motor Control and PFC Developer’s Kit

but there was a lot of missing library and varible definitions.

I've tried to add manually some library and headers but there are many that I can not find in my computer.

 

This is the error message:

 

could not open source file "park.h" C:/Users/GiGa/Code_Composer/2xPM_Motors 2xPM_Motors.h line 25 1304355799251 885

last line of file ends without a newline 2xPM_Motors dmctype.h line 30 1304355799267 901

identifier "EPwm6Regs" is undefined 2xPM_Motors f2803xpwmdac.c line 25 1304355799267 899

identifier "EPwm6Regs" is undefined 2xPM_Motors f2803xpwmdac.c line 78 1304355799267 900

variable "AdcMirror" was declared with a never-completed type 2xPM_Motors DSP2802x_GlobalVariableDefs.c line 33 1304355799251 886

variable "ECanaLAMRegs" was declared with a never-completed type 2xPM_Motors DSP2802x_GlobalVariableDefs.c line 109 1304355799267 889

variable "ECanaMboxes" was declared with a never-completed type 2xPM_Motors DSP2802x_GlobalVariableDefs.c line 101 1304355799267 888

variable "ECanaMOTORegs" was declared with a never-completed type 2xPM_Motors DSP2802x_GlobalVariableDefs.c line 126 1304355799267 891

variable "ECanaMOTSRegs" was declared with a never-completed type 2xPM_Motors DSP2802x_GlobalVariableDefs.c line 117 1304355799267 890

variable "ECanaRegs" was declared with a never-completed type 2xPM_Motors DSP2802x_GlobalVariableDefs.c line 93 1304355799251 887

variable "ECanbLAMRegs" was declared with a never-completed type 2xPM_Motors DSP2802x_GlobalVariableDefs.c line 151 1304355799267 894

variable "ECanbMboxes" was declared with a never-completed type 2xPM_Motors DSP2802x_GlobalVariableDefs.c line 143 1304355799267 893

variable "ECanbMOTORegs" was declared with a never-completed type 2xPM_Motors DSP2802x_GlobalVariableDefs.c line 168 1304355799267 896

variable "ECanbMOTSRegs" was declared with a never-completed type 2xPM_Motors DSP2802x_GlobalVariableDefs.c line 159 1304355799267 895

variable "ECanbRegs" was declared with a never-completed type 2xPM_Motors DSP2802x_GlobalVariableDefs.c line 135 1304355799267 892

variable "EQep1Regs" was declared with a never-completed type 2xPM_Motors DSP2802x_GlobalVariableDefs.c line 260 1304355799267 897

variable "EQep2Regs" was declared with a never-completed type 2xPM_Motors DSP2802x_GlobalVariableDefs.c line 268 1304355799267 898

This project contains unresolved buildable linked resources. It might not build as expected. 2xPM_Motors project 1304355791654 865

Anyone could help? Where can i download the missing headers?

  • Is this error from the controlSUITE project?

  • Gabriele,

    1. Install CCS 4.2.2 (free core edition is available at ti.com)

    2. Install ControlSUITE (available at ti.com, either free)

    3. In CCS, choose Project>>>ImportLegacyCCS v3.3. You can choose to copy project into workspace, or you can keep the original location - whatever.

    Regards.

  • I've already imported the project in code composer and added some of the missing headers.

    But it seems that i miss some libarys and headers in mi pc, for example i can't find park.h

  • I've found some of the missing libraries but there are still a lot of errors

     

    "C:\Users\GiGa\Code_Composer\2xPM_Motors\2xPM_Motors-Settings.h", line 49: error: expected an expression

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 123: error: identifier "PWMGEN" is undefined

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 123: error: identifier "PWMGEN_DEFAULTS" is undefined

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 124: error: identifier "PWMGEN" is undefined

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 127: error: identifier "PWMDAC" is undefined

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 127: error: identifier "PWMDAC_DEFAULTS" is undefined

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 161: warning: function declared implicitly

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 170: warning: function declared implicitly

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 185: error: identifier "mSec1" is undefined

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 186: error: identifier "mSec5" is undefined

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 187: error: identifier "mSec50" is undefined

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 196: error: identifier "SYSTEM_FREQUENCY" is undefined

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 219: warning: function declared implicitly

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1329: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1333: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1340: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1343: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1352: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1356: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1366: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1373: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1383: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1387: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1405: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1411: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1420: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1425: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1436: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1443: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1452: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1458: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1480: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1483: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1491: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1495: error: struct "<unnamed>" has no field "calc"

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c", line 1560: error: expected an expression

    33 errors detected in the compilation of "C:/Users/GiGa/Code_Composer/2xPM_Motors/2xPM_Motors.c".

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [C:/Users/GiGa/Code_Composer/2xPM_Motors/2802x_FLASH/2xPM_Motors.obj] Error 1

    "../DSP2802x_GlobalVariableDefs.c", line 33: error: variable "AdcMirror" was declared with a never-completed type

    "../DSP2802x_GlobalVariableDefs.c", line 93: error: variable "ECanaRegs" was declared with a never-completed type

    "../DSP2802x_GlobalVariableDefs.c", line 101: error: variable "ECanaMboxes" was declared with a never-completed type

    "../DSP2802x_GlobalVariableDefs.c", line 109: error: variable "ECanaLAMRegs" was declared with a never-completed type

    "../DSP2802x_GlobalVariableDefs.c", line 117: error: variable "ECanaMOTSRegs" was declared with a never-completed type

    "../DSP2802x_GlobalVariableDefs.c", line 126: error: variable "ECanaMOTORegs" was declared with a never-completed type

    "../DSP2802x_GlobalVariableDefs.c", line 135: error: variable "ECanbRegs" was declared with a never-completed type

    "../DSP2802x_GlobalVariableDefs.c", line 143: error: variable "ECanbMboxes" was declared with a never-completed type

    "../DSP2802x_GlobalVariableDefs.c", line 151: error: variable "ECanbLAMRegs" was declared with a never-completed type

    "../DSP2802x_GlobalVariableDefs.c", line 159: error: variable "ECanbMOTSRegs" was declared with a never-completed type

    "../DSP2802x_GlobalVariableDefs.c", line 168: error: variable "ECanbMOTORegs" was declared with a never-completed type

    "../DSP2802x_GlobalVariableDefs.c", line 260: error: variable "EQep1Regs" was declared with a never-completed type

    "../DSP2802x_GlobalVariableDefs.c", line 268: error: variable "EQep2Regs" was declared with a never-completed type

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/f2803xpwmdac.c", line 25: error: identifier "EPwm6Regs" is undefined

    "C:/Users/GiGa/Code_Composer/2xPM_Motors/f2803xpwmdac.c", line 78: error: identifier "EPwm6Regs" is undefined

  • When you imported the project into CCS, if you select "copy into workspace" I belive the linked files will be broken.  I suggest trying the import again, but not copying into your workspace.

    Regards,

    Lori

  • is what I did.
    I also tried to re-import the project without moving, he points to fewer errors but thereare still problems.

    It still does not recognize me some identifiers and fields, perhaps there are problems in the headerWhat is wrong?

     

     

    identifier "PWMDAC_DEFAULTS" is undefined 2xPM_Motors 2xPM_Motors.c line 127 1304428357396 2037

    function declared implicitly 2xPM_Motors 2xPM_Motors.c line 161 1304428357396 2038

    identifier "PWMDAC" is undefined 2xPM_Motors 2xPM_Motors.c line 127 1304428357396 2036

    identifier "PWMGEN_DEFAULTS" is undefined 2xPM_Motors 2xPM_Motors.c line 123 1304428357396 2034

    identifier "PWMGEN" is undefined 2xPM_Motors 2xPM_Motors.c line 123 1304428357379 2033

    identifier "PWMGEN" is undefined 2xPM_Motors 2xPM_Motors.c line 124 1304428357396 2035

    struct "GPB1_BITS" has no field "GPIO39" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 376 1304428357379 2023

    struct "GPB1_BITS" has no field "GPIO40" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 382 1304428357379 2025

    struct "GPB1_BITS" has no field "GPIO41" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 388 1304428357379 2027

    struct "GPB1_BITS" has no field "GPIO42" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 394 1304428357379 2028

    struct "GPB1_BITS" has no field "GPIO43" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 400 1304428357379 2029

    struct "GPB1_BITS" has no field "GPIO44" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 406 1304428357379 2031

    struct "GPBDAT_BITS" has no field "GPIO39" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 377 1304428357379 2024

    struct "GPBDAT_BITS" has no field "GPIO40" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 383 1304428357379 2026

    struct "GPBDAT_BITS" has no field "GPIO43" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 401 1304428357379 2030

    struct "GPBDAT_BITS" has no field "GPIO44" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 407 1304428357379 2032

    struct "PCLKCR0_BITS" has no field "ECANAENCLK" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 115 1304428357379 2015

    struct "PCLKCR0_BITS" has no field "LINAENCLK" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 130 1304428357379 2020

    struct "PCLKCR0_BITS" has no field "SPIBENCLK" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 137 1304428357379 2022

    struct "PCLKCR1_BITS" has no field "EPWM5ENCLK" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 123 1304428357379 2017

    struct "PCLKCR1_BITS" has no field "EPWM6ENCLK" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 124 1304428357379 2018

    struct "PCLKCR1_BITS" has no field "EPWM7ENCLK" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 125 1304428357379 2019

    struct "PCLKCR1_BITS" has no field "EQEP1ENCLK" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 117 1304428357379 2016

    struct "PCLKCR3_BITS" has no field "CLA1ENCLK" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 132 1304428357379 2021

    struct "PCLKCR3_BITS" has no field "COMP3ENCLK" 2xPM_Motors 2xPM_Motors-DevInit_F2803x.c line 111 1304428357379 2014

    variable "Cla1Regs" was declared with a never-completed type 2xPM_Motors DSP2803x_GlobalVariableDefs.c line 154 1304428357400 2047

    variable "ECanaLAMRegs" was declared with a never-completed type 2xPM_Motors DSP2803x_GlobalVariableDefs.c line 129 1304428357398 2044

    variable "ECanaMboxes" was declared with a never-completed type 2xPM_Motors DSP2803x_GlobalVariableDefs.c line 121 1304428357398 2043

    variable "ECanaMOTORegs" was declared with a never-completed type 2xPM_Motors DSP2803x_GlobalVariableDefs.c line 145 1304428357400 2046

    variable "ECanaMOTSRegs" was declared with a never-completed type 2xPM_Motors DSP2803x_GlobalVariableDefs.c line 137 1304428357398 2045

    variable "ECanaRegs" was declared with a never-completed type 2xPM_Motors DSP2803x_GlobalVariableDefs.c line 113 1304428357397 2042

    variable "EQep1Regs" was declared with a never-completed type 2xPM_Motors DSP2803x_GlobalVariableDefs.c line 226 1304428357402 2048

    variable "LinaRegs" was declared with a never-completed type 2xPM_Motors DSP2803x_GlobalVariableDefs.c line 234 1304428357402 2049

    variable "NmiIntruptRegs" was declared with a never-completed type 2xPM_Motors DSP2803x_GlobalVariableDefs.c line 274 1304428357402 2050

    function declared implicitly 2xPM_Motors 2xPM_Motors.c line 170 1304428357397 2039

    function declared implicitly 2xPM_Motors 2xPM_Motors.c line 174 1304428357397 2040

    function declared implicitly 2xPM_Motors 2xPM_Motors.c line 219 1304428357397 2041

  • Resolved.

    I was using a project for code composer 3 and my code composer 4 doesn't recognized correctly it.

    Now i've found the same project in controlSUTE for code composer 4 and it works fine