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.

HV_Solar_DC_DC MPPT

Other Parts Discussed in Thread: CONTROLSUITE

从ti买的HV_Solar_DC_DC模块,把工程载入后发现有很多问题,缺少很多头文件,请问这个给的工程是完整的吗?

  • 你好,这个工程是完整的,不过它的头文件路径大多都是错误的,需要手动修改一下。打开工程中的includes目录,其中灰色的路径都是错误的,在controlsuite中找一下这些头文件的正确路径,然后重新添加上。

  • Hank Zhao 你好,我又从新按照controlsuite的路径从新添加了一遍工程,但是还有很多错误

    第一个主要错误是缺少这四个文件。

    Severity and Description Path Resource Location Creation Time Id
    [E1000] Include/Copy file not found or opened HV_Solar_DC_DC HV_Solar_DC_DC-DPL-ISR.asm line 18 1386316407728 246

    .include "ADCDRV_1ch.asm"
    .include "PWMDRV_1ch_UpDwnCnt.asm"
    .include "PWMDRV_LLC_ComplPairDB.asm"
    .include "CNTL_2P2Z.asm"
    .include "MATH_EMAVG.asm"

    第二个主要错误是

    Severity and Description Path Resource Location Creation Time Id
    [E0002] Invalid mnemonic specification HV_Solar_DC_DC HV_Solar_DC_DC-DPL-ISR.asm line 166 1386316407735 263

    ADCDRV_1ch_INIT 1 ; IL
    ADCDRV_1ch_INIT 2 ; Vb
    ADCDRV_1ch_INIT 3 ; Vp
    ADCDRV_1ch_INIT 4 ; Ics

    CNTL_2P2Z_INIT 2

    CNTL_2P2Z_INIT 1

    MATH_EMAVG_INIT 1
    MATH_EMAVG_INIT 2


    PWMDRV_1ch_UpDwnCnt_INIT 1 ; PWM1A
    PWMDRV_1ch_UpDwnCnt_INIT 2 ; PWM2A
    PWMDRV_1ch_UpDwnCnt_INIT 4 ; PWM4A
    ;PWMDRV_LLC_ComplPairDB_INIT 3 ;

    第三个是

    Severity and Description Path Resource Location Creation Time Id
    could not open source file "PeripheralHeaderIncludes.h" HV_Solar_DC_DC HV_Solar_DC_DC_DevInit_F2803x.c line 7 1386316407738 279

    #include "PeripheralHeaderIncludes.h" 头文件打不开。

  • 第一个错误还是因为还是你没把头文件路径改过来,正确的路径是这个"..\controlSUITE\libs\app_libs\digital_power\f2803x_v3.3\asm",先把所有路径都改过了,再编译试试。

  • 我按照你说的已经更改路径了,之前的错误没有了,但是还有三个文件有错误。

    第一个是HV_Solar_DC_DC-DPL-ISR.asm文件中构建3的如下错误

    Severity and Description Path Resource Location Creation Time Id
    [E0009] Missing struct/union member or tag HV_Solar_DC_DC HV_Solar_DC_DC-DPL-ISR.asm line 232 1386336800800 501

    第二个是

    Severity and Description Path Resource Location Creation Time Id
    gmake: *** No rule to make target `C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/development_kits/~SupportFiles/source/SciCommsGui.c', needed by `SciCommsGui.obj'. HV_Solar_DC_DC Unknown 1386336800802 506

    请问这怎么解决

  • 你好,注意工程中打叹号的源文件,当你双击这些文件的时候都打不开。这些源文件的路径也是错误的,先根据CCS的错误提示找到这些源文件及库文件的路径,然后删除工程中的带叹号的文件,将正确的源文件通过“add file”添加到工程中。


  • **** Build of configuration F2803x_FLASH for project HV_Solar_DC_DC ****

    C:\ti\ccsv4\utils\gmake\gmake -k all
    'Building file: ../HV_Solar_DC_DC-DPL-ISR.asm'
    'Invoking: Compiler'
    "C:/ti/ccsv4/tools/compiler/c2000/bin/cl2000" --cmd_file="" -v28 -mt -ml -g --define="_DEBUG" --define="FLASH" --define="LARGE_MODEL" --preinclude="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/HV_Solar_DC_DC-DPL-ISR.asm" --preinclude="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/HV_Solar_DC_DC-Main.c" --include_path="C:/ti/ccsv4/tools/compiler/c2000/include" --include_path="C:/ti/controlSUITE/libs/app_libs/digital_power/f2803x_v3.3/asm" --include_path="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/head" --diag_warning=225 --preproc_with_compile --preproc_dependency="HV_Solar_DC_DC-DPL-ISR.pp" "../HV_Solar_DC_DC-DPL-ISR.asm"
    error: option --cmd_file is missing its parameter 'filename'
    gmake: *** [HV_Solar_DC_DC-DPL-ISR.obj] Error 1
    'Building file: ../HV_Solar_DC_DC-Main.c'
    'Invoking: Compiler'
    "C:/ti/ccsv4/tools/compiler/c2000/bin/cl2000" --cmd_file="" -v28 -mt -ml -g --define="_DEBUG" --define="FLASH" --define="LARGE_MODEL" --preinclude="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/HV_Solar_DC_DC-DPL-ISR.asm" --preinclude="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/HV_Solar_DC_DC-Main.c" --include_path="C:/ti/ccsv4/tools/compiler/c2000/include" --include_path="C:/ti/controlSUITE/libs/app_libs/digital_power/f2803x_v3.3/asm" --include_path="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/head" --diag_warning=225 --preproc_with_compile --preproc_dependency="HV_Solar_DC_DC-Main.pp" "../HV_Solar_DC_DC-Main.c"
    error: option --cmd_file is missing its parameter 'filename'
    gmake: *** [HV_Solar_DC_DC-Main.obj] Error 1
    'Building file: ../HV_Solar_DC_DC_DevInit_F2803x.c'
    'Invoking: Compiler'
    "C:/ti/ccsv4/tools/compiler/c2000/bin/cl2000" --cmd_file="" -v28 -mt -ml -g --define="_DEBUG" --define="FLASH" --define="LARGE_MODEL" --preinclude="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/HV_Solar_DC_DC-DPL-ISR.asm" --preinclude="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/HV_Solar_DC_DC-Main.c" --include_path="C:/ti/ccsv4/tools/compiler/c2000/include" --include_path="C:/ti/controlSUITE/libs/app_libs/digital_power/f2803x_v3.3/asm" --include_path="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/head" --diag_warning=225 --preproc_with_compile --preproc_dependency="HV_Solar_DC_DC_DevInit_F2803x.pp" "../HV_Solar_DC_DC_DevInit_F2803x.c"
    error: option --cmd_file is missing its parameter 'filename'
    gmake: *** [HV_Solar_DC_DC_DevInit_F2803x.obj] Error 1
    'Building file: ../SolarHv_DCDC-Lin.c'
    'Invoking: Compiler'
    "C:/ti/ccsv4/tools/compiler/c2000/bin/cl2000" --cmd_file="" -v28 -mt -ml -g --define="_DEBUG" --define="FLASH" --define="LARGE_MODEL" --preinclude="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/HV_Solar_DC_DC-DPL-ISR.asm" --preinclude="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/HV_Solar_DC_DC-Main.c" --include_path="C:/ti/ccsv4/tools/compiler/c2000/include" --include_path="C:/ti/controlSUITE/libs/app_libs/digital_power/f2803x_v3.3/asm" --include_path="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/head" --diag_warning=225 --preproc_with_compile --preproc_dependency="SolarHv_DCDC-Lin.pp" "../SolarHv_DCDC-Lin.c"
    error: option --cmd_file is missing its parameter 'filename'
    gmake: *** [SolarHv_DCDC-Lin.obj] Error 1
    'Building file: ../delay.c'
    'Invoking: Compiler'
    "C:/ti/ccsv4/tools/compiler/c2000/bin/cl2000" --cmd_file="" -v28 -mt -ml -g --define="_DEBUG" --define="FLASH" --define="LARGE_MODEL" --preinclude="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/HV_Solar_DC_DC-DPL-ISR.asm" --preinclude="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/HV_Solar_DC_DC-Main.c" --include_path="C:/ti/ccsv4/tools/compiler/c2000/include" --include_path="C:/ti/controlSUITE/libs/app_libs/digital_power/f2803x_v3.3/asm" --include_path="C:/ti/controlSUITE/development_kits/HV_SOLAR_DC_DC/Solar_DCDC_MPPT_v1.0/Solar_DCDC_MPPT_v1.0/Solar_DC_DC_F2803x/head" --diag_warning=225 --preproc_with_compile --preproc_dependency="delay.pp" "../delay.c"
    error: option --cmd_file is missing its parameter 'filename'
    gmake: *** [delay.obj] Error 1
    gmake: Target `all' not remade because of errors.
    Build complete for project HV_Solar_DC_DC

    我删除了带感叹号的文件,从新添加了新文件,编译没有错误,但是console里面是这样,无法生成obj文件。

  • 我在完全修改后就没有问题了,你对比一下以下文件,看是否有忘了添加的文件,另外在properties看advanced options下的command files下是否有命令项,有的话删除掉。

  • 请问一下我相比于你缺少的那些文件的正确路径是什么,我在controlsuite里面没有找到?(新手多包涵)
  • 我已经按照你的工程把我缺少的文件添加进去了,但是编译还是报错

    error: option --cmd_file is missing its parameter 'filename'
    gmake: *** [SolarHv_DCDC-Lin.obj] Error 1
    gmake: Target `all' not remade because of errors.

    error: option --cmd_file is missing its parameter 'filename'
    gmake: *** [PWM_ComplPairDB_Cnf.obj] Error 1

    error: option --cmd_file is missing its parameter 'filename'
    gmake: *** [PWM_1ch_UpDwnCnt_Cnf.obj] Error 1

    后来我发现我的IQmath文件打开是这样的

    是不是这个函数库文件的问题导致的?我也是从controlsuite里面找到的这个文件。

  • 你好,请在properties下的command files窗口中随便添加一个名字,比如file,然后保存,编译,这个错误就会消失,跟IQmath没有关系,库文件本来就打不开。

  • 你好,能把SciCommsGui.c文件给我传一份吗?

  • 你好,SciCommsGui.c已放在附件中,请查收,其路径为:controlSUITE\development_kits\~SupportFiles\source

  • 终于编译通过了,非常感谢Hank zhao 的耐心解答。最后总结起来之前的问题是因为我的头文件路径好多没有添加正确,还有就是这个SciCommsGui.c文件我添加的是DC/AC的,所以一直报错。再次感谢Hank zhao。

  • 恭喜你!在添加正确的文件之前先不要删除原来的文件,虽然原来的文件路径是错误的,但可以把原来的路径当作一个参考提示,就很容易找到正确的路径了。

  • 您好,我正在学习ti的HV_Solar_DC_DC开发板,我从controlsuit中给的这个实例导入到ccs5.3,出现了三个错误您能帮我解决看一下吗?

    谢谢!

  • 老师你好,现在正在准备学习太阳能微型逆变器的开发板,由于先前购买设备的师兄离开了,所以一些资料不是完整的了。所以我问下在哪能够下载这个套件的完整资料和相关程序及软件。谢谢

  • 请在以下地址下载并安装controlsuite:http://www.ti.com/tool/CONTROLSUITE?keyMatch=controlsuite&tisearch=Search-EN-Everything ,太阳能微逆套件的资料和例程可以在安装后的以下路径找到:C:\ti\controlSUITE\development_kits\TMDSSOLARUINVKIT_v100

  • 感谢老师的回复。

  •         老师你好,头文件路径已经添加好,现在问题是工程中带有感叹号的源文件找不到,例如HV_Solar_DC_DC工程中的ADC_SOC_Cnf.c,双击后提示Error retrieving content description for resource '/HV_Solar_DC_DC/ADC_SOC_Cnf.c'。但是我没搜索到文件ADC_SOC_Cnf.c,希望老师指点一下。谢谢!