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.

[参考译文] CCStudio:在 CCS 20.1上使用 TI F2806x 示例代码时出现错误

Guru**** 2482105 points
Other Parts Discussed in Thread: C2000WARE

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1456502/ccstudio-errors-when-using-ti-f2806x-example-codes-on-ccs-20-1

器件型号:CCSTUDIO
Thread 中讨论的其他器件:C2000WARE

工具与软件:

hi champs、

我是为我们的客户提出这个问题。

用户在 CCS 12.8.1上很好地运行 TI F2806x 示例代码。

C:\ti\c2000\C2000Ware_5_04_00_00\device_support\f2806x\examples\c28\NMI_watchdog

使用最新的 CCS 20.1后、用户发现了此问题。

您能帮我澄清一下吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    根据您的屏幕截图、看起来您为项目位置打开了一个文件夹、而不是复制到工作区中。 我会推荐后者。

    您是否在项目中有目标配置文件?

    谢谢

    Ki

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Ki:

    我在这里看到了很多问题。

    1.复制项目

    导入 TI 示例工程时会出现许多错误。

    2.目标配置

    在构建项目后、我们看到了很多问题。

    [0]**** Clean-only build of configuration Debug for project Example_2806xNMIWatchdog ****
    [1]"C:\\ti\\ccs2001\\ccs\\utils\\bin\\gmake" -k clean 
     
    
    [2]**** Build Finished ****
    
    [3]**** Build of configuration Debug for project Example_2806xNMIWatchdog ****
    [4]"C:\\ti\\ccs2001\\ccs\\utils\\bin\\gmake" -k all 
     
    [5]Building file: "../Example_2806xNMIWatchdog.c"
    [6]Invoking: C2000 Compiler
    [7]"C:/ti/ccs2001/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="C:/ti/ccs2001/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="/device_support/f2806x/headers/include" --include_path="/device_support/f2806x/common/include" --include_path="/libraries/math/IQmath/c28/include" --include_path="/libraries/math/FPUfastRTS/c28/include" --define="_DEBUG" --define="LARGE_MODEL" -g --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --preproc_with_compile --preproc_dependency="Example_2806xNMIWatchdog.d_raw"  "../Example_2806xNMIWatchdog.c"
     
    [8]>> Compilation failure
    [9]subdir_rules.mk:9: recipe for target 'Example_2806xNMIWatchdog.obj' failed
    [10]"../Example_2806xNMIWatchdog.c", line 62: fatal error: cannot open source file
    [11]          "DSP28x_Project.h"
    [12]  #include "DSP28x_Project.h"     // Device Headerfile and Examples Include File
    [13]                                                                                ^
     
    [14]1 catastrophic error detected in the compilation of "../Example_2806xNMIWatchdog.c".
    [15]Compilation terminated.
    [16]gmake: *** [Example_2806xNMIWatchdog.obj] Error 1
    [17]gmake: *** No rule to make target 'C:/ti/ccs2001/ccs/eclipse/COM_TI_C2000WARE_INSTALL_DIR/device_support/f2806x/common/source/F2806x_CodeStartBranch.asm', needed by 'F2806x_CodeStartBranch.obj'.
    [18]gmake: *** No rule to make target 'C:/ti/ccs2001/ccs/eclipse/COM_TI_C2000WARE_INSTALL_DIR/device_support/f2806x/common/source/F2806x_DefaultIsr.c', needed by 'F2806x_DefaultIsr.obj'.
    [19]gmake: *** No rule to make target 'C:/ti/ccs2001/ccs/eclipse/COM_TI_C2000WARE_INSTALL_DIR/device_support/f2806x/headers/source/F2806x_GlobalVariableDefs.c', needed by 'F2806x_GlobalVariableDefs.obj'.
    [20]gmake: *** No rule to make target 'C:/ti/ccs2001/ccs/eclipse/COM_TI_C2000WARE_INSTALL_DIR/device_support/f2806x/common/source/F2806x_PieCtrl.c', needed by 'F2806x_PieCtrl.obj'.
    [21]gmake: *** No rule to make target 'C:/ti/ccs2001/ccs/eclipse/COM_TI_C2000WARE_INSTALL_DIR/device_support/f2806x/common/source/F2806x_PieVect.c', needed by 'F2806x_PieVect.obj'.
    [22]gmake: *** No rule to make target 'C:/ti/ccs2001/ccs/eclipse/COM_TI_C2000WARE_INSTALL_DIR/device_support/f2806x/common/source/F2806x_SysCtrl.c', needed by 'F2806x_SysCtrl.obj'.
    [23]gmake: *** No rule to make target 'C:/ti/ccs2001/ccs/eclipse/COM_TI_C2000WARE_INSTALL_DIR/device_support/f2806x/common/source/F2806x_usDelay.asm', needed by 'F2806x_usDelay.obj'.
    [24]gmake: *** No rule to make target 'C:/ti/ccs2001/ccs/eclipse/COM_TI_C2000WARE_INSTALL_DIR/device_support/f2806x/common/cmd/28069_RAM_lnk.cmd', needed by 'Example_2806xGpioToggle.out'.
    [25]gmake: *** No rule to make target 'C:/ti/ccs2001/ccs/eclipse/COM_TI_C2000WARE_INSTALL_DIR/device_support/f2806x/headers/cmd/F2806x_Headers_nonBIOS.cmd', needed by 'Example_2806xGpioToggle.out'.
    [26]gmake: Target 'all' not remade because of errors.
    [27]**** Build Finished ****
    

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我相信您遇到了这个已知问题:

    https://sir.ext.ti.com/jira/browse/EXT_EP-12146

    请手动将 C2000Ware 依赖项添加到工程: